Constructor and Description |
---|
StateHandler(StateFactory factory)
Create the handler.
|
Modifier and Type | Method and Description |
---|---|
void |
addInput(InputDevice input)
Set the input device used.
|
void |
changeState(Enum<?> next)
Change the current state.
|
boolean |
isState(Enum<?> state)
Check the current state.
|
void |
start(Enum<?> state)
Start with the first state.
|
void |
update(double extrp) |
public StateHandler(StateFactory factory)
factory
- The state factory reference.public void start(Enum<?> state)
state
- The first state used.public void addInput(InputDevice input)
input
- The input device reference.LionEngineException
- If input is null
.public void changeState(Enum<?> next)
next
- The next state.public boolean isState(Enum<?> state)
state
- The state to check.true
if it is this state, false
else.Copyright © 2016 Byron 3D Games Studio. All rights reserved.