LuckyMotion<C extends Object, L extends LuckyLayout, F extends LuckyFrame, R extends LuckyResult<Object?>> class abstract

无 Widget、Canvas、Ticker 依赖的玩法状态机。

Constructors

LuckyMotion()
创建状态机。

Properties

frame → F
跨帧复用的快照。
no setter
hashCode → int
The hash code for this object.
no setterinherited
isSimulating → bool
阶段不在运动、但物理模拟仍未休眠时为真,宿主据此保持时钟运行;默认没有模拟。
no setter
maxFrameDelta → Duration
时间轴单帧上限;玩法覆写为当前已应用的 motion 配置值。
no setter
passedIndex → int
最近跨过条目的下标。
no setter
passedReel → int
最近跨过条目的列,非多列玩法为零。
no setter
phase → LuckyPhase
当前阶段。
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel() → bool
作废当前局;返回是否接受。
cancelWith(void apply(bool reportsResult)) → bool
取消骨架:当前阶段不可取消返回 false,否则调用 apply 并返回 true。
configure(C config, L? layout) → void
应用配置和可选布局;缺必要布局时保持静止。
drainPassed(void emit(int reel, int index)) → void
派发本 tick 跨过的全部条目;默认只派发 passedReel 与 passedIndex 这一项。
idleSpin() → bool
开始待机慢转;返回是否接受。
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
回到初始状态。
start() → bool
开始抽奖;返回是否接受。
takeResult() → R?
取走一次性结果,无结果时返回 null。
tick(double tMs, double dtMs) → int
按有效毫秒时间推进,返回 LuckyMotionEvents 位。
toString() → String
A string representation of this object.
inherited

Operators

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