EvEmu
0.8.4
11 September 2021
|
#include "StatisticMgr.h"
Public Member Functions | |
~StatisticMgr () | |
![]() | |
Singleton () | |
Primary constructor. More... | |
Private Attributes | |
StatisticData | m_data |
int8 | m_counter |
StatisticMgr.cpp | |
server information system for managing and saving trivial ingame statistical data : Allan
| |
StatisticMgr () | |
int | Initialize () |
void | Close () |
void | GetInfo () |
void | Process () |
void | PrintInfo () |
void | ClearAll () |
void | Add (uint8 key, double value) |
void | Increment (uint8 key) |
void | SaveData () |
void | CompileData () |
Additional Inherited Members | |
![]() | |
static StatisticMgr & | get () |
![]() | |
static std::shared_ptr < StatisticMgr > | mInstance |
Definition at line 37 of file StatisticMgr.h.
StatisticMgr::StatisticMgr | ( | ) |
|
inline |
Definition at line 42 of file StatisticMgr.h.
void StatisticMgr::Add | ( | uint8 | key, |
double | value | ||
) |
Definition at line 73 of file StatisticMgr.cpp.
References Stat::iskMarket, StatisticData::iskMarket, m_data, Stat::npcBounties, StatisticData::npcBounties, Stat::oreMined, StatisticData::oreMined, Stat::pcBounties, StatisticData::pcBounties, sEntityList, sLog, and StatisticData::span.
void StatisticMgr::ClearAll | ( | ) |
void StatisticMgr::Close | ( | ) |
Definition at line 22 of file StatisticMgr.cpp.
References SaveData(), and sLog.
|
protected |
Definition at line 139 of file StatisticMgr.cpp.
References DBResultRow::GetFloat(), DBResultRow::GetInt(), DBQueryResult::GetRow(), DBQueryResult::GetRowCount(), ManagerDB::GetStatisticData(), StatisticData::iskMarket, StatisticData::npcBounties, StatisticData::oreMined, StatisticData::pcBounties, StatisticData::pcMissiles, StatisticData::pcShots, StatisticData::probesLaunched, StatisticData::ramJobs, SafeDelete(), sEntityList, StatisticData::shipsSalvaged, StatisticData::sitesScanned, and ManagerDB::UpdateStatisticHistory().
Referenced by Process().
void StatisticMgr::GetInfo | ( | ) |
Definition at line 43 of file StatisticMgr.cpp.
void StatisticMgr::Increment | ( | uint8 | key | ) |
Definition at line 95 of file StatisticMgr.cpp.
References m_data, Stat::pcMissiles, StatisticData::pcMissiles, Stat::pcShots, StatisticData::pcShots, Stat::probesLaunched, StatisticData::probesLaunched, Stat::ramJobs, StatisticData::ramJobs, sEntityList, Stat::shipsSalvaged, StatisticData::shipsSalvaged, Stat::sitesScanned, StatisticData::sitesScanned, sLog, and StatisticData::span.
int StatisticMgr::Initialize | ( | ) |
Definition at line 29 of file StatisticMgr.cpp.
References m_data, sLog, and ManagerDB::UpdateStatisticHistory().
void StatisticMgr::PrintInfo | ( | ) |
Definition at line 123 of file StatisticMgr.cpp.
References StatisticData::iskMarket, m_data, StatisticData::npcBounties, StatisticData::oreMined, StatisticData::pcBounties, StatisticData::pcMissiles, StatisticData::pcShots, StatisticData::probesLaunched, StatisticData::ramJobs, sEntityList, StatisticData::shipsSalvaged, StatisticData::sitesScanned, sLog, and StatisticData::span.
void StatisticMgr::Process | ( | ) |
Definition at line 49 of file StatisticMgr.cpp.
References CompileData(), m_counter, and SaveData().
|
protected |
Definition at line 67 of file StatisticMgr.cpp.
References m_data, ManagerDB::SaveStatisticData(), sEntityList, and StatisticData::span.
Referenced by Close(), and Process().
|
private |
Definition at line 63 of file StatisticMgr.h.
Referenced by Process().
|
private |
Definition at line 61 of file StatisticMgr.h.
Referenced by Add(), ClearAll(), Increment(), Initialize(), PrintInfo(), SaveData(), and StatisticMgr().