EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
CrimeWatch.cpp
Go to the documentation of this file.
1 
10 #include "CrimeWatch.h"
11 #include "EVEServerConfig.h"
12 
13 /*
14  * each client(character) will have it's own cw code.
15 the cw system will consist of the following:
16 
17  criminal flags
18  aggression timers
19  weapon timers
20  jump/dock timers
21  kill rights
22  */
23 
26 : t_crimFlag(sConfig.crime.CrimFlagTime *1000),
27 t_aggression(sConfig.crime.AggFlagTime *1000),
28 t_weapon(sConfig.crime.WeaponFlagTime *1000),
29 t_session(sConfig.crime.CWSessionTime *1000),
30 t_killRight(sConfig.crime.KillRightTime *1000)
31 {
34  t_weapon.Disable();
37 }
38 
40 
41 }
#define sConfig
A macro for easier access to the singleton.
void Init()
Definition: CrimeWatch.cpp:39
void Disable()
Definition: timer.h:39
Timer t_session
Definition: CrimeWatch.h:29
Timer t_crimFlag
Definition: CrimeWatch.h:26
Timer t_aggression
Definition: CrimeWatch.h:27
Timer t_killRight
Definition: CrimeWatch.h:30
Timer t_weapon
Definition: CrimeWatch.h:28