EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
StatisticMgr.h
Go to the documentation of this file.
1 
12 #ifndef _EVE_SERVER_STAT_MANAGER_H__
13 #define _EVE_SERVER_STAT_MANAGER_H__
14 
15 
16 #include "eve-server.h"
17 #include "POD_containers.h"
18 
19 // this class tracks misc statistical data based on in-game events.
20 
21 namespace Stat {
22  enum {
23  pcShots = 1,
27  oreMined = 5,
28  iskMarket = 6,
32  ramJobs = 10
33  };
34 }
35 
36 
38 : public Singleton< StatisticMgr >
39 {
40 public:
41  StatisticMgr();
42  ~StatisticMgr() { /* do nothing here */ }
43 
44  int Initialize();
45 
46  void Close();
47  void GetInfo();
48  void Process();
49 
50  void PrintInfo();
51  void ClearAll();
52 
53  void Add(uint8 key, double value);
54  void Increment(uint8 key);
55 
56 protected:
57  void SaveData();
58  void CompileData();
59 
60 private:
62 
64 };
65 
66 
67 //Singleton
68 #define sStatMgr \
69  ( StatisticMgr::get() )
70 
71 #endif // _EVE_SERVER_STAT_MANAGER_H__
unsigned __int8 uint8
Definition: eve-compat.h:46
StatisticData m_data
Definition: StatisticMgr.h:61
signed __int8 int8
Definition: eve-compat.h:45
void Increment(uint8 key)
void CompileData()
Template used for singleton classes.
Definition: Singleton.h:43
void Add(uint8 key, double value)
typeID Spawn an NPC with the specified type text Search for items matching the specified query() type() key(value)-Send an OnRemoteMessage" ) COMMAND( setbpattr