EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
CrimeWatch Class Reference

#include "CrimeWatch.h"

Collaboration diagram for CrimeWatch:

Public Member Functions

 ~CrimeWatch ()
 
CrimeWatch.cpp

EvEmu CrimeWatch code.

: Allan

Date
: 13 March 2016
 CrimeWatch ()
 
void Init ()
 

Private Attributes

Timer t_crimFlag
 
Timer t_aggression
 
Timer t_weapon
 
Timer t_session
 
Timer t_killRight
 

Detailed Description

Definition at line 16 of file CrimeWatch.h.

Constructor & Destructor Documentation

CrimeWatch::CrimeWatch ( )
Todo:
set up config variables for timers here

Definition at line 25 of file CrimeWatch.cpp.

References Timer::Disable(), t_aggression, t_crimFlag, t_killRight, t_session, and t_weapon.

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 }
#define sConfig
A macro for easier access to the singleton.
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

Here is the call graph for this function:

CrimeWatch::~CrimeWatch ( )
inline

Definition at line 20 of file CrimeWatch.h.

20 { /* do nothing here */ }

Member Function Documentation

void CrimeWatch::Init ( )

Definition at line 39 of file CrimeWatch.cpp.

39  {
40 
41 }

Member Data Documentation

Timer CrimeWatch::t_aggression
private

Definition at line 27 of file CrimeWatch.h.

Referenced by CrimeWatch().

Timer CrimeWatch::t_crimFlag
private

Definition at line 26 of file CrimeWatch.h.

Referenced by CrimeWatch().

Timer CrimeWatch::t_killRight
private

Definition at line 30 of file CrimeWatch.h.

Referenced by CrimeWatch().

Timer CrimeWatch::t_session
private

Definition at line 29 of file CrimeWatch.h.

Referenced by CrimeWatch().

Timer CrimeWatch::t_weapon
private

Definition at line 28 of file CrimeWatch.h.

Referenced by CrimeWatch().


The documentation for this class was generated from the following files: