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
MarketBotMgr.cpp
Go to the documentation of this file.
1
11
#include "
eve-server.h
"
12
#include "
EVEServerConfig.h
"
13
#include "
market/MarketBotConf.h
"
14
#include "
market/MarketBotMgr.h
"
15
#include "
market/MarketMgr.h
"
16
#include "
market/MarketProxyService.h
"
17
18
19
static
const
char
*
const
BOT_CONFIG_FILE
= EVEMU_ROOT
"/etc/MarketBot.xml"
;
20
21
22
MarketBotDataMgr::MarketBotDataMgr
()
23
{
24
m_initalized
=
false
;
25
}
26
27
int
MarketBotDataMgr::Initialize
()
28
{
29
m_initalized
=
true
;
30
31
/* load current data */
32
33
sLog
.Blue(
" MarketBotDataMgr"
,
"Market Bot Data Manager Initialized."
);
34
return
1;
35
}
36
37
38
39
MarketBotMgr::MarketBotMgr
()
40
: m_updateTimer(20 *60 *1000)
// arbitrary 20m default
41
{
42
m_initalized
=
false
;
43
}
44
45
int
MarketBotMgr::Initialize
()
46
{
47
if
(!
sMBotConf
.ParseFile(
BOT_CONFIG_FILE
)) {
48
sLog
.Error(
" ServerInit"
,
"Loading Market Bot Config file '%s' failed."
,
BOT_CONFIG_FILE
);
49
return
0;
50
}
51
52
m_initalized
=
true
;
53
sMktBotDataMgr
.Initialize();
54
55
/* start timers, process current data, and create new orders, if needed */
56
57
sLog
.Blue(
" MarketBotMgr"
,
"Market Bot Manager Initialized."
);
58
return
1;
59
}
60
61
// this is called on a minute timer from EntityList
62
void
MarketBotMgr::Process
()
63
{
64
if
(!
m_initalized
)
65
return
;
66
67
if
(
m_updateTimer
.
Check
()) {
68
/* process current data, process orders, xfer funds, reset timers, create new orders */
69
70
}
71
}
72
73
74
void
MarketBotMgr::AddSystem
()
75
{
76
77
}
78
79
void
MarketBotMgr::RemoveSystem
()
80
{
81
82
}
83
MarketBotMgr::RemoveSystem
void RemoveSystem()
Definition:
MarketBotMgr.cpp:79
sMBotConf
#define sMBotConf
Definition:
MarketBotConf.h:73
MarketBotMgr::AddSystem
void AddSystem()
Definition:
MarketBotMgr.cpp:74
EVEServerConfig.h
MarketBotMgr::MarketBotMgr
MarketBotMgr()
Definition:
MarketBotMgr.cpp:39
sLog
#define sLog
Evaluates to a NewLog instance.
Definition:
LogNew.h:250
MarketBotMgr::Process
void Process()
Definition:
MarketBotMgr.cpp:62
Timer::Check
bool Check(bool reset=true)
Definition:
timer.cpp:62
MarketBotDataMgr::MarketBotDataMgr
MarketBotDataMgr()
Definition:
MarketBotMgr.cpp:22
sMktBotDataMgr
#define sMktBotDataMgr
Definition:
MarketBotMgr.h:34
BOT_CONFIG_FILE
static const char *const BOT_CONFIG_FILE
Definition:
MarketBotMgr.cpp:19
MarketBotMgr::m_updateTimer
Timer m_updateTimer
Definition:
MarketBotMgr.h:52
MarketBotMgr::Initialize
int Initialize()
Definition:
MarketBotMgr.cpp:45
MarketBotMgr::m_initalized
bool m_initalized
Definition:
MarketBotMgr.h:54
MarketProxyService.h
MarketBotMgr.h
MarketMgr.h
MarketBotDataMgr::m_initalized
bool m_initalized
Definition:
MarketBotMgr.h:30
eve-server.h
MarketBotConf.h
MarketBotDataMgr::Initialize
int Initialize()
Definition:
MarketBotMgr.cpp:27
backups
local
src
eve
EvEmu_Crucible
src
eve-server
market
MarketBotMgr.cpp
Generated on Sat Oct 16 2021 01:20:53 for EvEmu by
1.8.8