E - is the type of the entity handled by this state machinepublic interface State<E>
| Modifier and Type | Method and Description |
|---|---|
void |
enter(E entity)
This method will execute when the state is entered.
|
void |
exit(E entity)
This method will execute when the state is exited.
|
boolean |
onMessage(E entity,
Telegram telegram)
This method executes if the
entity receives a telegram from the message dispatcher while it is in this
state. |
void |
update(E entity)
This is the state's normal update function.
|
void enter(E entity)
entity - the entity entering the statevoid update(E entity)
entity - the entity lasting the statevoid exit(E entity)
entity - the entity exiting the stateboolean onMessage(E entity, Telegram telegram)
entity receives a telegram from the message dispatcher while it is in this
state.entity - the entity that received the messagetelegram - the message sent to the entityCopyright © 2017. All rights reserved.