|
AI for Games 1.1.1
|
Public Member Functions | |
| abstract void | enter (BaseEntity user) |
| abstract void | execute (BaseEntity user, double deltaTime, World world) |
| abstract void | exit (BaseEntity user) |
| abstract boolean | onMessage (BaseEntity user, Telegram tgram) |
Public Attributes | |
| String | name = "" |
This is the base class for all 'finite states'. <br<
It is recommended that child classes have no instance variables in which case they can be implemented as singleton classes. Since entities are changing state frequently this will enable entities to share a state object and reduce object creation and garbage collection.