CutsceneHandler
| Kind | class |
| Package | play |
| Full name | play.CutsceneHandler |
| Source | source/play/CutsceneHandler.hx |
| Extends | FlxBasic |
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
timedEvents | Array<CutsceneEvent> | no | [] | — |
skipCallback | Void->Void = null | no | — | — |
onStart | Void->Void = null | no | — | — |
endTime | Float | no | 0 | — |
objects | Array<FlxSprite> | no | [] | — |
music | String | no | null | — |
holdingTime | Float | no | 0 | — |
skipSprite | FlxPieDial | no | — | — |
finishCallback | Void->Void = null | no | — | — |
Public methods
new (constructor)
function new(canSkip:Bool = true)
| Parameter | Type | Default |
|---|---|---|
canSkip (optional) | Bool | true |
destroy
override function destroy():Void
push
function push(spr:FlxSprite)
| Parameter | Type | Default |
|---|---|---|
spr | FlxSprite | — |
timer
function timer(time:Float, func:Void->Void)
| Parameter | Type | Default |
|---|---|---|
time | Float | — |
func | Void->Void | — |
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
_timeToSkip | Float | no |
_canSkip | Bool | no |
cutsceneTime | Float | no |
firstFrame | Bool | no |
| Method |
|---|
function onGameResized(_:Int, _:Int):Void |
override function update(elapsed) |
function updateSkipAlpha() |
function sortByTime(Obj1:CutsceneEvent, Obj2:CutsceneEvent):Int |