EvEmu
0.8.4
11 September 2021
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
CivilianMgr.cpp
Go to the documentation of this file.
1
12
#include "
eve-server.h
"
13
14
#include "
EVEServerConfig.h
"
15
#include "
PyServiceMgr.h
"
16
#include "
system/cosmicMgrs/CivilianMgr.h
"
17
18
/* this class will be in charge of all non-combatant npcs ingame, hereinafter refered to as NC.
19
* the purpose here is to simulate civilian actions by having ships travel from station to station.
20
* this will also include jumping systems
21
*
22
* mostly, it's simple AI to run an NC from point A to point B to simulate normal system traffic.
23
* Process() will check for player activity before creating/moving NCs.
24
* NCs jumping into empty system will be deleted. (no reason to simulate traffic in empty system)
25
* any NCs in system are 'paused' if last player jumps out. processing will continue if a player enters system.
26
* system creation will create NCs, configure their routing and begin processing
27
* system unloading will delete any NCs in that system and remove their routing
28
*
29
* as the system matures, it may be possible for 'shadier' npcs to travel to unknown areas (to do their deeds in secret locations)
30
* (the astute capsuleer will notice the ship NOT traveling to a planet, gate, or station, and will then know the general area to scan)
31
*
32
* this will be a singleton class, in order for ships to correctly span multiple systems.
33
*/
34
35
36
CivilianMgr::CivilianMgr
()
37
: m_services(nullptr)
38
{
39
m_initalized
=
false
;
40
}
41
42
void
CivilianMgr::Initialize
(
PyServiceMgr
* svc) {
43
m_services
= svc;
44
m_initalized
=
true
;
45
sLog
.Blue(
" Civilian Manager"
,
"Civilian Manager Initialized."
);
46
/* load current data, start timers, process current data, and create new items, if needed */
47
}
48
49
void
CivilianMgr::Process
() {
50
if
(!
m_initalized
)
return
;
51
52
/* do something useful here */
53
}
54
PyServiceMgr.h
EVEServerConfig.h
CivilianMgr::Process
void Process()
Definition:
CivilianMgr.cpp:49
CivilianMgr::m_services
PyServiceMgr * m_services
Definition:
CivilianMgr.h:38
CivilianMgr::m_initalized
bool m_initalized
Definition:
CivilianMgr.h:40
PyServiceMgr
Definition:
PyServiceMgr.h:47
sLog
#define sLog
Evaluates to a NewLog instance.
Definition:
LogNew.h:250
CivilianMgr::Initialize
void Initialize(PyServiceMgr *svc)
Definition:
CivilianMgr.cpp:42
CivilianMgr.h
eve-server.h
CivilianMgr::CivilianMgr
CivilianMgr()
Definition:
CivilianMgr.cpp:36
backups
local
src
eve
EvEmu_Crucible
src
eve-server
system
cosmicMgrs
CivilianMgr.cpp
Generated on Sat Oct 16 2021 01:21:05 for EvEmu by
1.8.8