Tactics: Western Philosophers Vs. Musicians  0.12
A turn-based tactical game combining rules and gameplay elements inspired by Final Fantasy Tactics and the Mayfair Exponential Game System. Unlike most games of this type, motion is in full, grid-less 3D.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
OpenSkyNet::AI::State Class Reference

#include <AIFSM.h>

Public Member Functions

 State (int stateId_=-1)
 
 State (int stateId_, const std::vector< Action > &actions_)
 
StategetNextState (int input_)
 
int serialize (std::ofstream &fout_) const
 
int assemble (std::ifstream &fin_, std::vector< int > &nextStateIds_)
 

Public Attributes

int _stateId
 
std::vector< Action_actions
 
std::vector< int > _inputs
 
std::vector< State * > _next
 

Detailed Description

State contains the actions that an AI::Wrapper 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 State of "_next" with the same index. The size of "_inputs" and "_next" are the same, and their contents are unique.

Constructor & Destructor Documentation

OpenSkyNet::AI::State::State ( int  stateId_ = -1)
inline
OpenSkyNet::AI::State::State ( int  stateId_,
const std::vector< Action > &  actions_ 
)
inline

Member Function Documentation

int State::assemble ( std::ifstream &  fin_,
std::vector< int > &  nextStateIds_ 
)
State * State::getNextState ( int  input_)
int State::serialize ( std::ofstream &  fout_) const

Member Data Documentation

std::vector<Action> OpenSkyNet::AI::State::_actions
std::vector<int> OpenSkyNet::AI::State::_inputs
std::vector<State*> OpenSkyNet::AI::State::_next
int OpenSkyNet::AI::State::_stateId

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