abstract boolean rabbitescape.engine.Behaviour.behave |
( |
World |
world, |
|
|
Rabbit |
rabbit, |
|
|
State |
state |
|
) |
| |
|
abstract |
Move the rabbit in the world. Kill it, or record its safe exit.
abstract void rabbitescape.engine.Behaviour.cancel |
( |
| ) |
|
|
abstract |
abstract boolean rabbitescape.engine.Behaviour.checkTriggered |
( |
Rabbit |
rabbit, |
|
|
World |
world |
|
) |
| |
|
abstract |
Examine the rabbit's situation and return true if this Behaviour must take control.
Subclasses examine the rabbit's situation using BehaviourTools and return the state (see ChangeDescription) for the next time step. This method may return null indicating that a different Behaviour must take over.
Note that the state determines the animation used.
void rabbitescape.engine.Behaviour.restoreFromState |
( |
Map< String, String > |
saveState | ) |
|
void rabbitescape.engine.Behaviour.saveState |
( |
Map< String, String > |
saveState | ) |
|
boolean rabbitescape.engine.Behaviour.triggered |
The documentation for this class was generated from the following file: