TankAIStrings Class Reference

#include <TankAIStrings.h>

List of all members.

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 TankAIStringsinstance ()

Protected Attributes

FileLines deathLines_
FileLines attackLines_
FileLines playerNames_
FileLines aiPlayerNames_

Static Protected Attributes

static TankAIStringsinstance_ = 0

Private Member Functions

 TankAIStrings ()
virtual ~TankAIStrings ()


Detailed Description

Definition at line 27 of file TankAIStrings.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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().


Member Data Documentation

TankAIStrings * TankAIStrings::instance_ = 0 [static, protected]

Definition at line 38 of file TankAIStrings.h.

Referenced by instance().

FileLines TankAIStrings::deathLines_ [protected]

Definition at line 39 of file TankAIStrings.h.

Referenced by getDeathLine(), and TankAIStrings().

FileLines TankAIStrings::attackLines_ [protected]

Definition at line 40 of file TankAIStrings.h.

Referenced by getAttackLine(), and TankAIStrings().

FileLines TankAIStrings::playerNames_ [protected]

Definition at line 41 of file TankAIStrings.h.

Referenced by getPlayerName(), and TankAIStrings().

FileLines TankAIStrings::aiPlayerNames_ [protected]

Definition at line 42 of file TankAIStrings.h.

Referenced by getAIPlayerName(), and TankAIStrings().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:07 2009 for Scorched3D by  doxygen 1.5.3