Package zombie.ai
Class StateMachine
java.lang.Object
zombie.ai.StateMachine
public final class StateMachine
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStateMachine.SubstateSlot -
Field Summary
Fields Modifier and Type Field Description intactiveStateChanged -
Constructor Summary
Constructors Constructor Description StateMachine(IsoGameCharacter gameCharacter) -
Method Summary
Modifier and Type Method Description voidchangeState(State state, java.lang.Iterable iterable)voidchangeState(State state, java.lang.Iterable iterable, boolean boolean1)StategetCurrent()StategetPrevious()StategetSubStateAt(int int1)intgetSubStateCount()booleanisLocked()booleanisSubstate(State state)voidrevertToPreviousState(State state)voidsetLocked(boolean boolean1)voidstateAnimEvent(int int1, AnimEvent animEvent)voidupdate()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
activeStateChanged
public int activeStateChanged
-
-
Constructor Details
-
StateMachine
-
-
Method Details
-
changeState
-
changeState
-
isSubstate
-
getCurrent
-
getPrevious
-
getSubStateCount
public int getSubStateCount() -
getSubStateAt
-
revertToPreviousState
-
update
public void update() -
stateAnimEvent
-
isLocked
public boolean isLocked() -
setLocked
public void setLocked(boolean boolean1)
-