#include <TankAIStore.h>
Public Member Functions | |
| TankAIStore () | |
| virtual | ~TankAIStore () |
| bool | loadAIs (bool shallow=false) |
| void | clearAIs () |
| std::list< TankAI * > & | getAis () |
| TankAI * | getAIByName (const char *name) |
Protected Member Functions | |
| void | addAI (TankAI *ai) |
Protected Attributes | |
| std::list< TankAI * > | ais_ |
Definition at line 27 of file TankAIStore.h.
| TankAIStore::TankAIStore | ( | ) |
Definition at line 29 of file TankAIStore.cpp.
| TankAIStore::~TankAIStore | ( | ) | [virtual] |
Definition at line 34 of file TankAIStore.cpp.
| bool TankAIStore::loadAIs | ( | bool | shallow = false |
) |
Definition at line 49 of file TankAIStore.cpp.
References addAI(), TankAIRandom::addTankAI(), ais_, TankAI::availableForRandom(), S3D::dialogMessage(), file, S3D::formatStringBuffer(), XMLNode::getChildren(), S3D::getDataFile(), XMLNode::getName(), XMLFile::getParserError(), XMLFile::getRootNode(), TankAI::parseConfig(), XMLFile::readFile(), and LangStringUtil::strcmp().
Referenced by PlayerDialog::display().
| void TankAIStore::clearAIs | ( | ) |
| std::list<TankAI*>& TankAIStore::getAis | ( | ) | [inline] |
Definition at line 36 of file TankAIStore.h.
References ais_.
Referenced by PlayerDialog::display(), and ServerWebHandler::PlayerHandler::processRequest().
| TankAI * TankAIStore::getAIByName | ( | const char * | name | ) |
Definition at line 127 of file TankAIStore.cpp.
References ais_, and LangStringUtil::strcmp().
Referenced by TankAIAdder::addTankAI(), TankDefinition::createTank(), and ServerMessageHandler::destroyPlayer().
| void TankAIStore::addAI | ( | TankAI * | ai | ) | [protected] |
std::list<TankAI *> TankAIStore::ais_ [protected] |
Definition at line 40 of file TankAIStore.h.
Referenced by addAI(), clearAIs(), getAIByName(), getAis(), and loadAIs().
1.5.3