LotsGame class final
抽签玩法策略;传感器触发由应用自行实现。
- Inheritance
-
- Object
- LuckyGame<
LotsConfig, LotsLayout, LotsFrame, LuckyResult< LotsStick> > - LotsGame
Constructors
- LotsGame()
-
创建无状态策略。
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
itemGeometry
→ LuckyItemGeometry<
LotsLayout, LotsFrame> ? -
可选条目几何;未提供时不支持条目叠加。
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wantsPanGestures → bool
-
是否启用拖动手势。
no setterinherited
Methods
-
collectImages(
LotsConfig config, LotsLayout layout) → List< LuckyImageRequest> -
返回签文卡的图片请求,解码基准为卡片尺寸。
override
-
computeLayout(
LotsConfig config, LuckyLayoutInput input) → LotsLayout -
计算签筒与签槽布局。
override
-
createController(
) → LotsController -
创建默认控制器。
override
-
createDefaultRenderer(
) → LotsCanvasRenderer -
创建 Canvas 默认后端。
override
-
handlePan(
LuckyController< LotsConfig, LotsLayout, LotsFrame, LuckyResult< controller, LotsLayout layout, LuckyPanEvent event) → voidLotsStick> > -
接收拖动事件;默认无操作。
inherited
-
hitTestAll(
LotsConfig config, LotsLayout layout, LotsFrame frame, Offset position) → List< LuckyHit> -
签筒命中按钮零,结算后的升签或可见卡片命中条目。
override
-
isStructuralChange(
LotsConfig oldConfig, LotsConfig newConfig) → bool -
签数或可见槽数改变属于结构变化。
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolveConfig(
BuildContext context, LotsConfig config) → LotsConfig -
按运行环境(例如系统减少动效)解析实际使用的配置;默认原样返回。
inherited
-
semanticsLabel(
LotsConfig config) → String -
默认无障碍标签。
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited