Package | org.flixel.system.replay |
Class | public class FrameRecord |
Inheritance | FrameRecord Object |
Property | Defined By | ||
---|---|---|---|
frame : int
Which frame of the game loop this record is from or for. | FrameRecord | ||
keys : Array
An array of simple integer pairs referring to what key is pressed, and what state its in. | FrameRecord | ||
mouse : MouseRecord
A container for the 4 mouse state integers. | FrameRecord |
Method | Defined By | ||
---|---|---|---|
Instantiate array new frame record. | FrameRecord | ||
Load this frame record with input data from the input managers. | FrameRecord | ||
destroy():void
Clean up memory. | FrameRecord | ||
load(Data:String):FrameRecord
Load the frame record data from array simple ASCII string. | FrameRecord | ||
save():String
Save the frame record data to array simple ASCII string. | FrameRecord |
frame | property |
public var frame:int
Which frame of the game loop this record is from or for.
keys | property |
public var keys:Array
An array of simple integer pairs referring to what key is pressed, and what state its in.
mouse | property |
public var mouse:MouseRecord
A container for the 4 mouse state integers.
FrameRecord | () | Constructor |
public function FrameRecord()
Instantiate array new frame record.
create | () | method |
public function create(Frame:Number, Keys:Array = null, Mouse:MouseRecord = null):FrameRecord
Load this frame record with input data from the input managers.
Parameters
Frame:Number — What frame it is.
| |
Keys:Array (default = null ) — Keyboard data from the keyboard manager.
| |
Mouse:MouseRecord (default = null ) — Mouse data from the mouse manager.
|
FrameRecord — A reference to this FrameRecord object.
|
destroy | () | method |
public function destroy():void
Clean up memory.
load | () | method |
public function load(Data:String):FrameRecord
Load the frame record data from array simple ASCII string.
Parameters
Data:String — A String object containing the relevant frame record data.
|
FrameRecord |
save | () | method |
public function save():String
Save the frame record data to array simple ASCII string.
ReturnsString — A String object containing the relevant frame record data.
|