Name | Type | Description |
---|---|---|
command |
Object | Direct JSON command to parse |
Properties:
Name | Type | Description |
---|---|---|
pictureID |
SystemValue | The picture ID value |
index |
SystemValue | The index value |
centered |
SystemValue | Indicate if the picture is centered |
originX |
SystemValue | The origin X according to centered value |
originY |
SystemValue | The origin Y according to centered value |
x |
SystemValue | The x value |
y |
SystemValue | The y value |
zoom |
SystemValue | The zoom value |
opacity |
SystemValue | The opacity value |
angle |
SystemValue | The angle value |
Extends
Methods
-
update (currentState, object, state)number overrides
-
Update and check if the event is finished
Name Type Description currentState
Object The current state of the event object
MapObject The current object reacting state
number The state ID Returns:
Type Description number The number of node to pass -
Initialize the current state
Returns:
Type Description Object The current state -
First key press handle for the current stack
Name Type Description currentState
Object The current state of the event key
number The key ID pressed -
First key release handle for the current stack
Name Type Description currentState
Object The current state of the event key
number The key ID pressed -
Key pressed repeat handle for the current stack
Name Type Description currentState
Object The current state of the event key
number The key ID pressed Returns:
Type Description boolean -
Key pressed repeat handle for the current stack, but with a small wait after the first pressure (generally used for menus)
Name Type Description currentState
Object The current state of the event key
number The key ID pressed -
Draw the HUD
Name Type Description currentState
Object The current state of the event