Package zombie.ai
Class StateMachine
java.lang.Object
zombie.ai.StateMachine
public class StateMachine
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description booleanLock -
Constructor Summary
Constructors Constructor Description StateMachine(IsoGameCharacter owner) -
Method Summary
Modifier and Type Method Description voidchangeState(State newState)voidchangeState(State newState, State nextState)StategetCurrent()StategetGlobal()StategetPrevious()voidRevertToPrevious()voidsetCurrent(State state)voidsetGlobal(State state)voidsetPrevious(State state)voidupdate()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
Lock
public boolean Lock
-
-
Constructor Details
-
StateMachine
-
-
Method Details
-
changeState
-
changeState
-
getCurrent
-
getGlobal
-
getPrevious
-
RevertToPrevious
public void RevertToPrevious() -
setCurrent
-
setGlobal
-
setPrevious
-
update
public void update()
-