When active is false, the io is removed from the map.
An object containing which filters are active in this IO.
Whether this IO is affected by Reveal psynergy or not.
Object that contains lists of Game Events to fired per psynergy after it finishes. Psynergy is the key, the list of events is the value of this object.
Object that contains lists of Game Events to fired per psynergy before it starts. Psynergy is the key, the list of events is the value of this object.
This IO body if available.
Whether this pushable is docked or not.
When enable is false, the io is on the map, but a char can't interact with it.
The unique label that identifies this Interactable Object.
Whether the shapes of this IO body are active (colliding) or not.
Gets the tile pos object for this interactable object.
Gets the current x tile position of this interactable object.
Gets the current y tile position of this interactable object.
Gets the x position in px.
Sets the current x position in px.
Gets the y position in px.
Sets the current y position in px.
Checks if a given char is trying to push this interactable object, if it's trying, starts the push process.
the char that is trying to push this pushable interactable object.
returns whether the char is trying to push or not.
Checks if a given char is trying to climb this interactable object, if it's trying, starts the climb process.
the char that is trying to climb this climbable interactable object.
returns whether the char is trying to climb or not.
Checks whether it's necessary to restore any custom state related to psynergy cast on this IO when restoring a snapshot.
Updates this IO properties according to current storage values.
Removes this IO snapshot reference.
Method to be overriden.
Destroys the collision body of this IO.
if true, will tell the map that this body was removed.
Starts the dust animation when this interactable object fall on the ground.
the animation end callback.
The main push related method. This actually executes the push process.
the char that is pushing this controllable object.
after moving this interactable object callback.
before moving this interactable object callback.
if true, only this interactable object will move. False means physical move.
whether you want to enable p2 physics at the end of the process or not.
the callback that is called while the push is happening.
Gets this IO body radius or similar number.
Initializes the pushable. Must be called just after instantiation.
object containing docking info.
array of game events to be fired after push.
Sets or unsets a Phaser.Filter in this char.
the filter you want to set.
whether it's to set or unset the filter.
Starts a manual push in which the char manually push it.
the char that is pushing this controllable object.
Initialize the shadow sprite of this IO.
the group where the shadow sprite is going to be inserted.
options to be set like anchor values and whether it's a world map.
Sets this IO visibility.
whether to be visible or not.
Shifts the related events of this interactable object.
the x shift amount.
the y shift amount.
Shift related events to this IO and also set according collision in tiles in the case of jump events.
the x shift tile value.
the y shift tile value.
Starts the push process in which only this interactable object move.
the char that is pushing this controllable object.
before moving this interactable object callback.
after moving this interactable object callback.
whether you want to enable p2 physics at the end of the process or not.
the callback that is called while the push is happening.
Activates or deactivates this IO.
true, if you want to activate it.
Sets whether the collision body of this IO is enable or not.
if true, activates the collision.
Method to be overriden.
The update function for the shadow sprite.
Generated using TypeDoc
An interactable object that can be pushed by a ControllableChar.