class Mover extends Trigger (client-side)
Available since version: 0.3.4
This class represents world mover.
Constructor
Mover()
Parameters:
No parameters.
Constructor
Mover(userpointer ptr)
Parameters:
userpointerptr: the pointer to the object from the game.
Properties
int moverState (read-only)
Represents current mover state. For more information see MoverState constants.
int advanceDir
Represents advance direction (used only when mover behaviour is set to MOVER_BEHAVIOR_NSTATE_SINGLE_KEYS).
zarray& keyframeList
Represents array of mover keyframes. For more information see MoverKeyframe class.
float moveSpeed
Represents mover move speed.
float stayOpenTimeSec
Represents how many sec mover will stay open.
float touchBlockerDamage
Represents mover touch blocker damage.
bool moverLocked
Represents mover locked.
bool autoLinkEnabled
Represents mover auto link enabled.
bool autoRotate
Represents mover auto rotate.
int moverAniType
Represents mover animation type. For more information see MoverAniType constants.
int moverAniType
Represents mover behavior. For more information see MoverBehavior constants.
int touchBehavior
Represents mover touch behavior. For more information see MoverTouchBehavior constants.
int posLerpType
Represents mover position lerp type. For more information see MoverPosLerpType constants.
int speedType
Represents mover speed type. For more information see MoverSpeedType constants.
string soundOpenStart
Represents mover sound open start. Example: "GATE_START"
string soundOpenEnd
Represents mover sound open end. Example: "GATE_STOP"
string soundMoving
Represents mover sound moving. Example: "GATE_LOOP"
string soundCloseStart
Represents mover sound close start. Example: "GATE_START"
string soundCloseEnd
Represents mover sound close end. Example: "GATE_STOP"
string soundLock
Represents mover sound lock.
string soundUnlock
Represents mover sound unlock.
string soundUseLocked
Represents mover sound use unlock.
Methods
moveToKeyframe
This method will set mover to specific keyframe.
void moveToKeyframe(int the)
Parameters:
intthe: idx of keyframe.
doOpen
This method will set mover to opening state.
void doOpen()
finishedOpening
This method will set mover to open state.
void finishedOpening()
doClose
This method will set mover to closing state.
void doClose()
finishedClosing
This method will set mover to close state.
void finishedClosing()
Callbacks
No callbacks.