SimpleStateStack
public class SimpleStateStack
Constructor Summary | |
---|---|
SimpleStateStack(string start) Constructor. |
Method Summary | |
---|---|
void | enter(string state) Adds a state to the stack and sets it to be the current state. |
string | Accessor for current state. |
boolean | leave() Leaves the current state and reverts to the previous one. |
public SimpleStateStack(string start)
Constructor. Starts in named state.
public void enter(string state)
Adds a state to the stack and sets it to be the current state.
public string getCurrent()
Accessor for current state.
public boolean leave()
Leaves the current state and reverts to the previous one.
States for a stack machine.