Class ClimbThroughWindowState
java.lang.Object
zombie.ai.State
zombie.ai.states.ClimbThroughWindowState
- 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<String> static final State.Param<ClimbThroughWindowPositioningParams> static final State.Param<State> static final State.Param<Boolean> static final State.Param<Boolean> -
Method Summary
Modifier and TypeMethodDescriptionvoidanimEvent(IsoGameCharacter owner, AnimLayer layer, AnimationTrack track, AnimEvent event) booleancanRagdoll(IsoGameCharacter owner) voidenter(IsoGameCharacter owner) voidexecute(IsoGameCharacter owner) voidexit(IsoGameCharacter owner) static voidgetClimbThroughWindowPositioningParams(IsoGameCharacter climbingCharacter, IsoObject windowObject, ClimbThroughWindowPositioningParams climbParams) voidgetDeltaModifiers(IsoGameCharacter owner, MoveDeltaModifiers modifiers) static IsoGridSquaregetFreeSquareAfterObstacles(IsoGridSquare square, IsoDirections dir) getWindow(IsoGameCharacter owner) static ClimbThroughWindowStateinstance()static booleanisFreeSquare(IsoGridSquare square) booleanisIgnoreCollide(IsoGameCharacter owner, int fromX, int fromY, int fromZ, int toX, int toY, int toZ) Description copied from class: Statestatic booleanisObstacleSquare(IsoGridSquare square) booleanisPastInnerEdgeOfSquare(IsoGameCharacter owner, int x, int y, IsoDirections moveDir) booleanisPastOuterEdgeOfSquare(IsoGameCharacter owner, int x, int y, IsoDirections moveDir) booleanbooleanisWindowClosing(IsoGameCharacter owner) voidprocessOnEnter(IsoGameCharacter owner, Map<Object, Object> delegate) voidsetParams(IsoGameCharacter owner, State.Stage stage) voidsetParams(IsoGameCharacter owner, IsoObject obj) static voidslideCharacterToWindowOpening(IsoGameCharacter character, ClimbThroughWindowPositioningParams positioningParams) static voidslideX(IsoGameCharacter owner, float x) static voidslideY(IsoGameCharacter owner, float y) Methods inherited from class State
getAnimEventBroadcaster, getName, getParams, isProcessedOnExit, isSyncInIdle, isSyncOnEnter, isSyncOnExit, isSyncOnSquare, loadFrom, processOnExitMethods 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, canSlowDownVehicleWhenHit, causesDamageToVehicleWhenHit, isAttacking, isDoingActionThatCanBeCancelled, isMoving
-
Field Details
-
PARAMS
-
PREV_STATE
-
ZOMBIE_ON_FLOOR
-
OUTCOME
-
SCRATCHED
-
-
Method Details
-
instance
-
enter
-
execute
-
slideCharacterToWindowOpening
public static void slideCharacterToWindowOpening(IsoGameCharacter character, ClimbThroughWindowPositioningParams positioningParams) -
exit
-
slideX
-
slideY
-
animEvent
public void animEvent(IsoGameCharacter owner, AnimLayer layer, AnimationTrack track, AnimEvent event) - Specified by:
animEventin interfaceIAnimEventListener- Specified by:
animEventin interfaceIAnimEventWrappedBroadcaster- Overrides:
animEventin classState
-
isIgnoreCollide
public boolean isIgnoreCollide(IsoGameCharacter owner, int fromX, int fromY, int fromZ, int toX, int toY, int toZ) Description copied from class: State- Overrides:
isIgnoreCollidein classState
-
getWindow
-
isWindowClosing
-
getDeltaModifiers
- Overrides:
getDeltaModifiersin classState
-
isFreeSquare
-
isObstacleSquare
-
getFreeSquareAfterObstacles
-
isPastInnerEdgeOfSquare
-
isPastOuterEdgeOfSquare
-
setParams
-
getClimbThroughWindowPositioningParams
public static void getClimbThroughWindowPositioningParams(IsoGameCharacter climbingCharacter, IsoObject windowObject, ClimbThroughWindowPositioningParams climbParams) -
getPositioningParams
-
setParams
-
isProcessedOnEnter
public boolean isProcessedOnEnter()- Overrides:
isProcessedOnEnterin classState
-
processOnEnter
- Overrides:
processOnEnterin classState
-
canRagdoll
-