Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

AIState Class Reference

#include <AIFSM.h>

List of all members.

Public Member Functions

 AIState (int stateID_=-1, std::vector< AIAction > theactions_=std::vector< AIAction >())
AIStatereturnNextState (int input_)
int serialize (std::ofstream &fout_) const
int assemble (std::ifstream &fin_, std::vector< int > &nextStateIDs_)

Public Attributes

int stateID
std::vector< AIActiontheactions
std::vector< int > inputs
std::vector< AIState * > next


Detailed Description

AIState contains the actions that an AIWrapped object performs. It also stores all the states that it transitions to (but not from), and the inputs that cause those transitions. Each index of "inputs" leads to the AIState of "next" with the same index. The size of "inputs" and "next" are the same, and their contents are unique.


The documentation for this class was generated from the following file:
Generated on Sun Apr 11 05:05:56 2004 for FSM_API by doxygen 1.3.6