GridGame class final

九宫格玩法策略;奖品按声明顺序巡游,重叠按钮按声明顺序全部命中。

Inheritance

Constructors

GridGame()
创建无状态策略。
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
itemGeometry → LuckyItemGeometry<GridLayout, GridFrame>
返回奖品完整格子矩形;不包含按钮,不随激活态阴影改变尺寸。
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
wantsPanGestures → bool
是否启用拖动手势。
no setterinherited

Methods

collectImages(GridConfig config, GridLayout layout) → List<LuckyImageRequest>
收集普通与激活图片;解码尺寸按各状态的收缩区域解析。
override
computeLayout(GridConfig config, LuckyLayoutInput input) → GridLayout
根据配置及环境返回布局。
override
createController() → GridController
创建宿主持有的控制器。
override
createDefaultRenderer() → GridCanvasRenderer
创建默认 Canvas 后端。
override
handlePan(LuckyController<GridConfig, GridLayout, GridFrame, LuckyResult<GridPrize>> controller, GridLayout layout, LuckyPanEvent event) → void
接收拖动事件;默认无操作。
inherited
hitTestAll(GridConfig config, GridLayout layout, GridFrame frame, Offset position) → List<LuckyHit>
返回命中的全部按钮;没有按钮命中时返回首个命中奖品。
override
isStructuralChange(GridConfig oldConfig, GridConfig newConfig) → bool
奖品数量、行列或任何奖品和按钮的格子坐标变化均属于结构变化。
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveConfig(BuildContext context, GridConfig config) → GridConfig
按运行环境(例如系统减少动效)解析实际使用的配置;默认原样返回。
inherited
semanticsLabel(GridConfig config) → String
返回包含奖品数量的默认无障碍标签。
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited