Class State
java.lang.Object
zombie.ai.State
- All Implemented Interfaces:
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
,GrappledThrownOutWindowState
,IdleState
,LungeNetworkState
,LungeState
,OpenWindowState
,PathFindState
,PathFindState2
,PlayerActionsState
,PlayerAimState
,PlayerEmoteState
,PlayerExtState
,PlayerFallDownState
,PlayerFallingState
,PlayerGetUpState
,PlayerHitReactionPVPState
,PlayerHitReactionState
,PlayerKnockedDown
,PlayerMilkAnimalState
,PlayerMovementState
,PlayerOnBedState
,PlayerOnGroundState
,PlayerPetAnimalState
,PlayerShearAnimalState
,PlayerSitOnFurnitureState
,PlayerSitOnGroundState
,PlayerStrafeState
,SmashWindowState
,StaggerBackState
,SwipeStatePlayer
,ThumpState
,WalkTowardNetworkState
,WalkTowardState
,ZombieEatBodyState
,ZombieFaceTargetState
,ZombieFallDownState
,ZombieFallingState
,ZombieGetDownState
,ZombieGetUpFromCrawlState
,ZombieGetUpState
,ZombieHitReactionState
,ZombieIdleState
,ZombieOnGroundState
,ZombieReadyForGrappleNetworkState
,ZombieReanimateState
,ZombieSittingState
,ZombieTurnAlerted
public abstract class State
extends Object
implements IAnimEventListener, IAnimEventWrappedBroadcaster
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
animEvent
(IsoGameCharacter owner, AnimEvent event) void
enter
(IsoGameCharacter owner) void
execute
(IsoGameCharacter owner) void
exit
(IsoGameCharacter owner) void
getDeltaModifiers
(IsoGameCharacter owner, MoveDeltaModifiers modifiers) getName()
boolean
isAttacking
(IsoGameCharacter owner) Return TRUE if the owner is currently attacking.boolean
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.boolean
isMoving
(IsoGameCharacter owner) Return TRUE if the owner is currently moving.boolean
boolean
boolean
boolean
void
setParams
(IsoGameCharacter isoGameCharacter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface zombie.core.skinnedmodel.advancedanimation.events.IAnimEventWrappedBroadcaster
addAnimEventListener, addAnimEventListener, addAnimEventListener, addAnimEventListener, addAnimEventListener, addAnimEventListener
-
Constructor Details
-
State
public State()
-
-
Method Details
-
enter
-
execute
-
exit
-
getAnimEventBroadcaster
- Specified by:
getAnimEventBroadcaster
in interfaceIAnimEventWrappedBroadcaster
-
animEvent
- Specified by:
animEvent
in interfaceIAnimEventListener
- Specified by:
animEvent
in interfaceIAnimEventWrappedBroadcaster
-
isAttacking
Return TRUE if the owner is currently attacking. Defaults to FALSE -
isMoving
Return TRUE if the owner is currently moving. Defaults to FALSE -
isDoingActionThatCanBeCancelled
public boolean isDoingActionThatCanBeCancelled()- Returns:
- TRUE if this state handles the "Cancel Action" key or the B controller button.
-
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
-
getStatePermissions
-
setParams
-
isSyncOnEnter
public boolean isSyncOnEnter() -
isSyncOnExit
public boolean isSyncOnExit() -
isSyncOnSquare
public boolean isSyncOnSquare() -
isSyncInIdle
public boolean isSyncInIdle()
-