#include <AIBase.h>
Premise is the base class for all game related statements.
OpenSkyNet::AI::Premise::Premise |
( |
| ) |
|
|
inline |
OpenSkyNet::AI::Premise::Premise |
( |
const std::vector< int > & |
params_ | ) |
|
|
inline |
constructor
- Parameters
-
params_ | parameters to initialize with |
virtual OpenSkyNet::AI::Premise::~Premise |
( |
| ) |
|
|
inlinevirtual |
int Premise::assemble |
( |
std::ifstream & |
fin_ | ) |
|
|
virtual |
assigns this object to one read from a binary file and returns the number of bytes read
- Parameters
-
fin_ | the file stream to read from (opened for binary input) |
- See Also
- serialize()
bool Premise::equals |
( |
const Premise & |
rhs_, |
|
|
unsigned int |
numParamsToCheck_ |
|
) |
| const |
|
virtual |
use equals rather than operator== to check a certain # of parameters
- See Also
- operator==()
Premise& OpenSkyNet::AI::Premise::operator+= |
( |
int |
param_ | ) |
|
|
inline |
Premise& OpenSkyNet::AI::Premise::operator= |
( |
int |
param_ | ) |
|
|
inline |
clears all parameters, resets all class vars, and sets the first parameter (the ID) to param_
- See Also
- operator+=()
bool Premise::operator== |
( |
const Premise & |
rhs_ | ) |
const |
|
virtual |
must have same number and all equal parameters to return true
- See Also
- equals()
int Premise::serialize |
( |
std::ofstream & |
fout_ | ) |
const |
|
virtual |
writes this object to a binary file and returns the number of bytes written
- Parameters
-
fout_ | the file stream to write to (opened for binary output) |
- See Also
- assemble()
float OpenSkyNet::AI::Premise::_entryTime |
of secs elapsed from time program started to time entered in a KB
bool OpenSkyNet::AI::Premise::_negated |
look for absence of this premise in a KB
std::vector<int> OpenSkyNet::AI::Premise::_params |
_params[0] must be the premise ID
The documentation for this class was generated from the following files: