Class StateMachine
java.lang.Object
zombie.ai.StateMachine
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
changeState
(State newState, Iterable<State> subStates) void
changeState
(State newState, Iterable<State> subStates, boolean restart) getSubStateAt
(int idx) int
boolean
isLocked()
boolean
isSubstate
(State substate) void
revertToPreviousState
(State sender) void
setLocked
(boolean lock) final void
stateAnimEvent
(int stateLayer, AnimEvent event) void
update()
-
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 lock)
-