Class WalkTowardState
java.lang.Object
zombie.ai.State
zombie.ai.states.WalkTowardState
- All Implemented Interfaces:
IStateFlagsSource, IAnimEventListener, IAnimEventWrappedBroadcaster
-
Nested Class Summary
Nested classes/interfaces inherited from class State
State.Param<T>, State.Stage -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final State.Param<Boolean> static final State.Param<Long> static final State.Param<Long> -
Method Summary
Modifier and TypeMethodDescriptionvoidanimEvent(IsoGameCharacter owner, AnimLayer layer, AnimationTrack track, AnimEvent event) booleancalculateTargetLocation(IsoZombie zomb, Vector2 location) voidenter(IsoGameCharacter owner) voidexecute(IsoGameCharacter owner) voidexit(IsoGameCharacter owner) static WalkTowardStateinstance()booleanisMoving(IsoGameCharacter owner) Return TRUE if the owner is currently moving.Methods inherited from class State
getAnimEventBroadcaster, getDeltaModifiers, getName, getParams, isIgnoreCollide, isProcessedOnEnter, isProcessedOnExit, isSyncInIdle, isSyncOnEnter, isSyncOnExit, isSyncOnSquare, loadFrom, processOnEnter, processOnExit, setParamsMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IAnimEventWrappedBroadcaster
addAnimEventListener, addAnimEventListener, addAnimEventListener, addAnimEventListener, addAnimEventListener, addAnimEventListener, addAnimEventListener, addAnimEventListener, addAnimEventListener, addAnimEventListenerMethods inherited from interface IStateFlagsSource
canBeHitByVehicle, canRagdoll, canSlowDownVehicleWhenHit, causesDamageToVehicleWhenHit, isAttacking, isDoingActionThatCanBeCancelled
-
Field Details
-
IGNORE_OFFSET
-
IGNORE_TIME
-
TICK_COUNT
-
-
Method Details
-
instance
-
enter
-
execute
-
exit
-
animEvent
public void animEvent(IsoGameCharacter owner, AnimLayer layer, AnimationTrack track, AnimEvent event) - Specified by:
animEventin interfaceIAnimEventListener- Specified by:
animEventin interfaceIAnimEventWrappedBroadcaster- Overrides:
animEventin classState
-
isMoving
Return TRUE if the owner is currently moving. Defaults to FALSE -
calculateTargetLocation
-