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::Record Class Reference

#include <AIBase.h>

Inheritance diagram for OpenSkyNet::AI::Record:
OpenSkyNet::AI::Premise

Public Member Functions

 Record (OpenSkyNet::AI::Wrapper *n_=0, float badGoodScaleValue_=0.0f, int stateIdAtCreation_=-1)
 
 Record (const std::vector< int > &params_, OpenSkyNet::AI::Wrapper *n_=0, float badGoodScaleValue_=0.0f, int stateIdAtCreation_=-1)
 
 Record (const Premise &premise_)
 
Recordoperator= (int param_)
 
Recordoperator+= (int param_)
 
virtual ~Record ()
 empty destructor More...
 
- Public Member Functions inherited from OpenSkyNet::AI::Premise
 Premise ()
 
 Premise (const std::vector< int > &params_)
 
virtual bool operator== (const Premise &rhs_) const
 
virtual bool equals (const Premise &rhs_, unsigned int numParamsToCheck_) const
 
Premiseoperator= (int param_)
 
Premiseoperator+= (int param_)
 
virtual int serialize (std::ofstream &fout_) const
 
virtual int assemble (std::ifstream &fin_)
 
virtual ~Premise ()
 empty destructor More...
 

Public Attributes

OpenSkyNet::AI::Wrapper_n
 the target of the record (if any) More...
 
float _badGoodScaleValue
 ranking of the record for the target on a bad/good axis More...
 
int _stateIdAtCreation
 state ID of target when record is created More...
 
- Public Attributes inherited from OpenSkyNet::AI::Premise
std::vector< int > _params
 _params[0] must be the premise ID More...
 
float _entryTime
 

of secs elapsed from time program started to time entered in a KB

More...
 
bool _negated
 look for absence of this premise in a KB More...
 

Detailed Description

Record adds vars to Premise that facilitate KB operations and is the class created during gameplay to indicate that events and/or properties have changed.

Constructor & Destructor Documentation

OpenSkyNet::AI::Record::Record ( OpenSkyNet::AI::Wrapper n_ = 0,
float  badGoodScaleValue_ = 0.0f,
int  stateIdAtCreation_ = -1 
)
inline
OpenSkyNet::AI::Record::Record ( const std::vector< int > &  params_,
OpenSkyNet::AI::Wrapper n_ = 0,
float  badGoodScaleValue_ = 0.0f,
int  stateIdAtCreation_ = -1 
)
inline
OpenSkyNet::AI::Record::Record ( const Premise premise_)
inline
virtual OpenSkyNet::AI::Record::~Record ( )
inlinevirtual

empty destructor

Member Function Documentation

Record& OpenSkyNet::AI::Record::operator+= ( int  param_)
inline
Record& OpenSkyNet::AI::Record::operator= ( int  param_)
inline

NOTE: this operator does NOT reset vars unique to a Record, it merely calls the operator of its super and returns *this

Member Data Documentation

float OpenSkyNet::AI::Record::_badGoodScaleValue

ranking of the record for the target on a bad/good axis

OpenSkyNet::AI::Wrapper* OpenSkyNet::AI::Record::_n

the target of the record (if any)

int OpenSkyNet::AI::Record::_stateIdAtCreation

state ID of target when record is created


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