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 boolean
Lock
-
Constructor Summary
Constructors Constructor Description StateMachine(IsoGameCharacter gameCharacter)
-
Method Summary
Modifier and Type Method Description void
changeState(State state)
void
changeState(State state, State state2)
State
getCurrent()
State
getGlobal()
State
getPrevious()
void
RevertToPrevious()
void
setCurrent(State state)
void
setGlobal(State state)
void
setPrevious(State state)
void
update()
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()
-