Class State
java.lang.Object
zombie.ai.State
- All Implemented Interfaces:
IStateFlagsSource, IAnimEventListener, IAnimEventWrappedBroadcaster
- Direct Known Subclasses:
AnimalAlertedState, AnimalAttackState, AnimalClimbOverFenceState, AnimalEatState, AnimalFalldownState, AnimalFollowWallState, AnimalHitReactionState, AnimalIdleState, AnimalOnGroundState, AnimalPathFindState, AnimalWalkState, AnimalZoneState, AttackNetworkState, AttackState, AttackVehicleState, BumpedState, BurntToDeath, ClimbDownSheetRopeState, ClimbOverFenceState, ClimbOverWallState, ClimbSheetRopeState, ClimbThroughWindowState, CloseWindowState, CollideWithWallState, CrawlingZombieTurnState, FakeDeadAttackState, FakeDeadZombieState, FishingState, FitnessState, ForecastBeatenPlayerState, GrappledThrownIntoContainerState, GrappledThrownOutWindowState, GrappledThrownOverFenceState, IdleState, LungeNetworkState, LungeState, OpenWindowState, PathFindState, PlayerActionsState, PlayerAimState, PlayerDraggingCorpse, PlayerEmoteState, PlayerExtState, PlayerFallDownState, PlayerFallingState, PlayerGetUpState, PlayerHitReactionPVPState, PlayerHitReactionState, PlayerKnockedDown, PlayerMilkAnimalState, PlayerMovementState, PlayerOnBedState, PlayerOnGroundState, PlayerPetAnimalState, PlayerShearAnimalState, PlayerSitOnFurnitureState, PlayerSitOnGroundState, PlayerStrafeState, SmashWindowState, StaggerBackState, SwipeStatePlayer, ThumpState, VehicleCollisionMinorStaggerState, VehicleCollisionOnGroundState, VehicleCollisionState, WalkTowardNetworkState, WalkTowardState, ZombieEatBodyState, ZombieFaceTargetState, ZombieFallDownState, ZombieFallingState, ZombieGetDownState, ZombieGetUpFromCrawlState, ZombieGetUpState, ZombieHitReactionState, ZombieIdleState, ZombieOnGroundState, ZombieRagdollOnGroundState, ZombieReanimateState, ZombieSittingState, ZombieTurnAlerted
public abstract class State
extends Object
implements IAnimEventListener, IAnimEventWrappedBroadcaster, IStateFlagsSource
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidanimEvent(IsoGameCharacter owner, AnimLayer layer, AnimationTrack track, AnimEvent event) voidenter(IsoGameCharacter owner) voidexecute(IsoGameCharacter owner) voidexit(IsoGameCharacter owner) voidgetDeltaModifiers(IsoGameCharacter owner, MoveDeltaModifiers modifiers) getName()Map<State.Param<?>, Object> getParams(IsoGameCharacter owner) booleanisIgnoreCollide(IsoGameCharacter owner, int fromX, int fromY, int fromZ, int toX, int toY, int toZ) Return TRUE if the owner should ignore collisions when passing between two squares.booleanbooleanfinal booleanfinal booleanfinal booleanfinal booleanvoidloadFrom(Map<Object, Object> delegate, IsoGameCharacter character) voidprocessOnEnter(IsoGameCharacter owner, Map<Object, Object> delegate) voidprocessOnExit(IsoGameCharacter owner, Map<Object, Object> delegate) voidsetParams(IsoGameCharacter owner, State.Stage stage) Methods 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, isMoving
-
Method Details
-
enter
-
execute
-
exit
-
getAnimEventBroadcaster
- Specified by:
getAnimEventBroadcasterin interfaceIAnimEventWrappedBroadcaster
-
animEvent
public void animEvent(IsoGameCharacter owner, AnimLayer layer, AnimationTrack track, AnimEvent event) - Specified by:
animEventin interfaceIAnimEventListener- Specified by:
animEventin interfaceIAnimEventWrappedBroadcaster
-
getDeltaModifiers
-
isIgnoreCollide
public boolean isIgnoreCollide(IsoGameCharacter owner, int fromX, int fromY, int fromZ, int toX, int toY, int toZ) Return TRUE if the owner should ignore collisions when passing between two squares. Defaults to FALSE -
getName
-
setParams
-
isSyncOnEnter
public final boolean isSyncOnEnter()- Specified by:
isSyncOnEnterin interfaceIStateFlagsSource
-
isSyncOnExit
public final boolean isSyncOnExit()- Specified by:
isSyncOnExitin interfaceIStateFlagsSource
-
isSyncOnSquare
public final boolean isSyncOnSquare()- Specified by:
isSyncOnSquarein interfaceIStateFlagsSource
-
isSyncInIdle
public final boolean isSyncInIdle()- Specified by:
isSyncInIdlein interfaceIStateFlagsSource
-
isProcessedOnEnter
public boolean isProcessedOnEnter() -
processOnEnter
-
isProcessedOnExit
public boolean isProcessedOnExit() -
processOnExit
-
getParams
-
loadFrom
-