AI for Games 1.1.1
Loading...
Searching...
No Matches
game2dai.fsm.State Class Referenceabstract

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 = ""
 

Detailed Description

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.

Author
Peter Lager

The documentation for this class was generated from the following file: