#include <StatsLoggerFile.h>

Public Member Functions | |
| StatsLoggerFile () | |
| virtual | ~StatsLoggerFile () |
| virtual void | gameStart (std::list< Tank * > &tanks) |
| virtual void | roundStart (std::list< Tank * > &tanks) |
| virtual int | getKillCount (const char *uniqueId) |
| virtual std::list < std::string > | getAliases (const char *unqiueId) |
| virtual std::list < std::string > | getIpAliases (const char *unqiueId) |
| virtual TankRank | tankRank (Tank *tank) |
| virtual void | updateStats (Tank *tank) |
| virtual void | periodicUpdate () |
| virtual std::string | allocateId () |
| virtual unsigned int | getStatsId (const char *uniqueId) |
| virtual std::string | getTopRanks () |
| virtual std::string | getPlayerInfo (const char *player) |
| virtual void | combinePlayers (unsigned int player1, unsigned int player2) |
| virtual void | tankConnected (Tank *tank) |
| virtual void | tankDisconnected (Tank *tank) |
| virtual void | tankJoined (Tank *tank) |
| virtual void | tankFired (Tank *firedTank, Weapon *weapon) |
| virtual void | tankResigned (Tank *resignedTank) |
| virtual void | tankKilled (Tank *firedTank, Tank *deadTank, Weapon *weapon) |
| virtual void | tankTeamKilled (Tank *firedTank, Tank *deadTank, Weapon *weapon) |
| virtual void | tankSelfKilled (Tank *firedTank, Weapon *weapon) |
| virtual void | tankWon (Tank *tank) |
| virtual void | tankOverallWinner (Tank *tank) |
| virtual void | weaponFired (Weapon *weapon, bool deathAni) |
| virtual void | weaponKilled (Weapon *weapon, bool deathAni) |
Protected Member Functions | |
| void | createLogger () |
Protected Attributes | |
| FileLogger * | statsLogger_ |
Definition at line 27 of file StatsLoggerFile.h.
| StatsLoggerFile::StatsLoggerFile | ( | ) |
Definition at line 30 of file StatsLoggerFile.cpp.
| StatsLoggerFile::~StatsLoggerFile | ( | ) | [virtual] |
Definition at line 35 of file StatsLoggerFile.cpp.
| void StatsLoggerFile::gameStart | ( | std::list< Tank * > & | tanks | ) | [virtual] |
Implements StatsLogger.
Definition at line 55 of file StatsLoggerFile.cpp.
References createLogger(), FileLogger::logMessage(), and statsLogger_.
| void StatsLoggerFile::roundStart | ( | std::list< Tank * > & | tanks | ) | [virtual] |
Implements StatsLogger.
Definition at line 69 of file StatsLoggerFile.cpp.
References createLogger(), FileLogger::logMessage(), and statsLogger_.
| int StatsLoggerFile::getKillCount | ( | const char * | uniqueId | ) | [virtual] |
| std::list< std::string > StatsLoggerFile::getAliases | ( | const char * | unqiueId | ) | [virtual] |
| std::list< std::string > StatsLoggerFile::getIpAliases | ( | const char * | unqiueId | ) | [virtual] |
| virtual TankRank StatsLoggerFile::tankRank | ( | Tank * | tank | ) | [inline, virtual] |
| void StatsLoggerFile::updateStats | ( | Tank * | tank | ) | [virtual] |
| void StatsLoggerFile::periodicUpdate | ( | ) | [virtual] |
| std::string StatsLoggerFile::allocateId | ( | ) | [virtual] |
| unsigned int StatsLoggerFile::getStatsId | ( | const char * | uniqueId | ) | [virtual] |
| std::string StatsLoggerFile::getTopRanks | ( | ) | [virtual] |
| std::string StatsLoggerFile::getPlayerInfo | ( | const char * | player | ) | [virtual] |
| void StatsLoggerFile::combinePlayers | ( | unsigned int | player1, | |
| unsigned int | player2 | |||
| ) | [virtual] |
| void StatsLoggerFile::tankConnected | ( | Tank * | tank | ) | [virtual] |
Implements StatsLogger.
Definition at line 185 of file StatsLoggerFile.cpp.
References createLogger(), Target::getCStrName(), Tank::getUniqueId(), FileLogger::logMessage(), snprintf, and statsLogger_.
| void StatsLoggerFile::tankDisconnected | ( | Tank * | tank | ) | [virtual] |
Implements StatsLogger.
Definition at line 203 of file StatsLoggerFile.cpp.
References createLogger(), Target::getCStrName(), Tank::getUniqueId(), FileLogger::logMessage(), snprintf, and statsLogger_.
| void StatsLoggerFile::tankJoined | ( | Tank * | tank | ) | [virtual] |
Implements StatsLogger.
Definition at line 167 of file StatsLoggerFile.cpp.
References createLogger(), Target::getCStrName(), Tank::getUniqueId(), FileLogger::logMessage(), snprintf, and statsLogger_.
Implements StatsLogger.
Definition at line 129 of file StatsLoggerFile.cpp.
References createLogger(), Target::getCStrName(), Accessory::getName(), AccessoryPart::getParent(), Tank::getUniqueId(), FileLogger::logMessage(), snprintf, and statsLogger_.
| void StatsLoggerFile::tankResigned | ( | Tank * | resignedTank | ) | [virtual] |
Implements StatsLogger.
Definition at line 149 of file StatsLoggerFile.cpp.
References createLogger(), Target::getCStrName(), Tank::getUniqueId(), FileLogger::logMessage(), snprintf, and statsLogger_.
Implements StatsLogger.
Definition at line 221 of file StatsLoggerFile.cpp.
References createLogger(), Target::getCStrName(), Accessory::getName(), AccessoryPart::getParent(), Tank::getUniqueId(), FileLogger::logMessage(), snprintf, and statsLogger_.
| void StatsLoggerFile::tankTeamKilled | ( | Tank * | firedTank, | |
| Tank * | deadTank, | |||
| Weapon * | weapon | |||
| ) | [virtual] |
Implements StatsLogger.
Definition at line 240 of file StatsLoggerFile.cpp.
References createLogger(), Target::getCStrName(), Accessory::getName(), AccessoryPart::getParent(), Tank::getUniqueId(), FileLogger::logMessage(), snprintf, and statsLogger_.
Implements StatsLogger.
Definition at line 259 of file StatsLoggerFile.cpp.
References createLogger(), Target::getCStrName(), Accessory::getName(), AccessoryPart::getParent(), Tank::getUniqueId(), FileLogger::logMessage(), snprintf, and statsLogger_.
| void StatsLoggerFile::tankWon | ( | Tank * | tank | ) | [virtual] |
Implements StatsLogger.
Definition at line 278 of file StatsLoggerFile.cpp.
References createLogger(), Target::getCStrName(), Tank::getUniqueId(), FileLogger::logMessage(), snprintf, and statsLogger_.
| void StatsLoggerFile::tankOverallWinner | ( | Tank * | tank | ) | [virtual] |
Implements StatsLogger.
Definition at line 295 of file StatsLoggerFile.cpp.
References createLogger(), Target::getCStrName(), Tank::getUniqueId(), FileLogger::logMessage(), snprintf, and statsLogger_.
| void StatsLoggerFile::weaponFired | ( | Weapon * | weapon, | |
| bool | deathAni | |||
| ) | [virtual] |
Implements StatsLogger.
Definition at line 312 of file StatsLoggerFile.cpp.
References createLogger(), Accessory::getName(), AccessoryPart::getParent(), FileLogger::logMessage(), snprintf, and statsLogger_.
| void StatsLoggerFile::weaponKilled | ( | Weapon * | weapon, | |
| bool | deathAni | |||
| ) | [virtual] |
Implements StatsLogger.
Definition at line 328 of file StatsLoggerFile.cpp.
References createLogger(), Accessory::getName(), AccessoryPart::getParent(), FileLogger::logMessage(), snprintf, and statsLogger_.
| void StatsLoggerFile::createLogger | ( | ) | [protected] |
Definition at line 44 of file StatsLoggerFile.cpp.
References ScorchedServer::instance(), snprintf, and statsLogger_.
Referenced by gameStart(), roundStart(), tankConnected(), tankDisconnected(), tankFired(), tankJoined(), tankKilled(), tankOverallWinner(), tankResigned(), tankSelfKilled(), tankTeamKilled(), tankWon(), weaponFired(), and weaponKilled().
FileLogger* StatsLoggerFile::statsLogger_ [protected] |
Definition at line 66 of file StatsLoggerFile.h.
Referenced by createLogger(), gameStart(), roundStart(), tankConnected(), tankDisconnected(), tankFired(), tankJoined(), tankKilled(), tankOverallWinner(), tankResigned(), tankSelfKilled(), tankTeamKilled(), tankWon(), weaponFired(), and weaponKilled().
1.5.3