zombie.ai
Class StateMachine

java.lang.Object
  extended by zombie.ai.StateMachine

public class StateMachine
extends java.lang.Object

Author:
LEMMY

Field Summary
 boolean Lock
           
 
Constructor Summary
StateMachine(IsoGameCharacter owner)
           
 
Method Summary
 void changeState(State newState)
           
 void changeState(State newState, State nextState)
           
 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Lock

public boolean Lock
Constructor Detail

StateMachine

public StateMachine(IsoGameCharacter owner)
Method Detail

changeState

public void changeState(State newState)

changeState

public void changeState(State newState,
                        State nextState)

getCurrent

public State getCurrent()

getGlobal

public State getGlobal()

getPrevious

public State getPrevious()

RevertToPrevious

public void RevertToPrevious()

setCurrent

public void setCurrent(State state)

setGlobal

public void setGlobal(State state)

setPrevious

public void setPrevious(State state)

update

public void update()