EvEmu  0.8.4
11 September 2021
 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"
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 
37 : m_services(nullptr)
38 {
39  m_initalized = false;
40 }
41 
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 
50  if (!m_initalized) return;
51 
52  /* do something useful here */
53 }
54 
void Process()
Definition: CivilianMgr.cpp:49
PyServiceMgr * m_services
Definition: CivilianMgr.h:38
bool m_initalized
Definition: CivilianMgr.h:40
#define sLog
Evaluates to a NewLog instance.
Definition: LogNew.h:250
void Initialize(PyServiceMgr *svc)
Definition: CivilianMgr.cpp:42