![]() |
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.
|
#include <AIKBSplayTree.h>
Public Member Functions | |
| KBSplayTree () | |
| KBSplayTree (int maxRecords_, unsigned int reservedRecords_, unsigned int initParamsSizeOfReservedRecords_) | |
| KBSplayTree (const KBSplayTree &rhs_) | |
| const KBSplayTree & | operator= (const KBSplayTree &rhs_) |
| virtual | ~KBSplayTree () |
KB interface methods | |
| virtual bool | add (const Record &record_, bool disallowIfPremNameExists_=false) |
| virtual void | remove (const Record &record_, bool all_, int numOfParamsToCheck_=-1) |
| virtual const std::list< Record > & | find (const Record &record_) |
| virtual bool | isEmpty () const |
| virtual void | clear () |
| virtual int | size () const |
| virtual float | calcStateScore (int stateId_) const |
Public Member Functions inherited from OpenSkyNet::AI::KB | |
| KB () | |
| KB (int maxRecords_, unsigned int reservedRecords_, unsigned int initParamsSizeOfReservedRecords_) | |
Additional Inherited Members | |
Public Attributes inherited from OpenSkyNet::AI::KB | |
| std::vector< Record > | _reservedRecords |
| for constant time (speed-critical) access of Records More... | |
Protected Attributes inherited from OpenSkyNet::AI::KB | |
| const int | _maxRecords |
Static Protected Attributes inherited from OpenSkyNet::AI::KB | |
| static const std::list< Record > | RECORDS_NOT_FOUND |
KBSplayTree is one implementation of a knowledge base. Frequently used or recently accessed nodes sit near the top of the tree, allowing fast search. All operations complexity: Expected Time O(lg N) [amortized] Worst-Case Time O(N)
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
virtual |
Implements OpenSkyNet::AI::KB.
|
virtual |
iterates through the KB, totaling the badGoodScaleValue of each Record that has _stateIdAtCreation == stateId
Implements OpenSkyNet::AI::KB.
|
virtual |
removes all entries EXCEPT for the reserved slots
Implements OpenSkyNet::AI::KB.
Implements OpenSkyNet::AI::KB.
|
virtual |
Implements OpenSkyNet::AI::KB.
| const KBSplayTree & KBSplayTree::operator= | ( | const KBSplayTree & | rhs_ | ) |
|
virtual |
Implements OpenSkyNet::AI::KB.
|
virtual |
does NOT include the reserved slots
Implements OpenSkyNet::AI::KB.
1.8.6