#include <TankAIStrings.h>
Public Member Functions | |
| const char * | getDeathLine (ScorchedContext &context) |
| const char * | getAttackLine (ScorchedContext &context) |
| const char * | getPlayerName () |
| const char * | getAIPlayerName (ScorchedContext &context) |
Static Public Member Functions | |
| static TankAIStrings * | instance () |
Protected Attributes | |
| FileLines | deathLines_ |
| FileLines | attackLines_ |
| FileLines | playerNames_ |
| FileLines | aiPlayerNames_ |
Static Protected Attributes | |
| static TankAIStrings * | instance_ = 0 |
Private Member Functions | |
| TankAIStrings () | |
| virtual | ~TankAIStrings () |
Definition at line 27 of file TankAIStrings.h.
| TankAIStrings::TankAIStrings | ( | ) | [private] |
Definition at line 38 of file TankAIStrings.cpp.
References aiPlayerNames_, attackLines_, deathLines_, DIALOG_ASSERT, S3D::getDataFile(), playerNames_, and FileLines::readFile().
| TankAIStrings::~TankAIStrings | ( | ) | [private, virtual] |
Definition at line 48 of file TankAIStrings.cpp.
| TankAIStrings * TankAIStrings::instance | ( | ) | [static] |
Definition at line 28 of file TankAIStrings.cpp.
References instance_.
Referenced by ServerConnectAuthHandler::addNextTank(), TankAIAdder::addTankAI(), TankDamage::logDeath(), and TankFired::simulate().
| const char * TankAIStrings::getDeathLine | ( | ScorchedContext & | context | ) |
Definition at line 73 of file TankAIStrings.cpp.
References deathLines_, ScorchedContext::getActionController(), FileLines::getLines(), ScorchedContext::getOptionsGame(), RandomGenerator::getRandFixed(), ActionController::getRandom(), and RandomGenerator::getRandUInt().
Referenced by TankDamage::logDeath().
| const char * TankAIStrings::getAttackLine | ( | ScorchedContext & | context | ) |
Definition at line 89 of file TankAIStrings.cpp.
References attackLines_, ScorchedContext::getActionController(), FileLines::getLines(), ScorchedContext::getOptionsGame(), RandomGenerator::getRandFixed(), ActionController::getRandom(), and RandomGenerator::getRandUInt().
Referenced by TankFired::simulate().
| const char * TankAIStrings::getPlayerName | ( | ) |
Definition at line 52 of file TankAIStrings.cpp.
References FileLines::getLines(), and playerNames_.
| const char * TankAIStrings::getAIPlayerName | ( | ScorchedContext & | context | ) |
Definition at line 60 of file TankAIStrings.cpp.
References aiPlayerNames_, FileLines::getLines(), ScorchedContext::getOptionsGame(), and int().
TankAIStrings * TankAIStrings::instance_ = 0 [static, protected] |
FileLines TankAIStrings::deathLines_ [protected] |
FileLines TankAIStrings::attackLines_ [protected] |
FileLines TankAIStrings::playerNames_ [protected] |
FileLines TankAIStrings::aiPlayerNames_ [protected] |
Definition at line 42 of file TankAIStrings.h.
Referenced by getAIPlayerName(), and TankAIStrings().
1.5.3