EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
EVE_POS.h
Go to the documentation of this file.
1 
2 /*
3  * EVE_POS.h
4  * data containers for POS items
5  *
6  */
7 
8 
9 #ifndef EVE_POS_ENUMS_H
10 #define EVE_POS_ENUMS_H
11 
12 class GVector;
13 
14 namespace EVEPOS {
15  struct CustomsData {
16  bool allowAlliance :1;;
17  bool allowStandings :1;;
18  int8 state; /* used to hold POS state (online, reinforced, operating, etc) */
19  int8 status; /* used to hold POS StructureState (online, reinforced, operating, etc) */
20  int8 selectedHour; /* determines timeframe structure will come out of reinforced mode */
21  int8 standingValue; /* used to determine allowed access. see StandingValues:: for details */
25  std::map<uint8, float> taxRateValues; /* taxRates based on standings with owner */
26  };
27 
28  struct StructureData {
32  int8 state; /* used to hold POS state (online, reinforced, operating, etc) */
33  int8 status; /* used to hold POS StructureState (online, reinforced, operating, etc) */
36  int32 anchorpointID; /* used to hold PlanetID for structures which are anchored near moons/planets/stargates */
38  };
39  struct TowerData {
40  bool allowCorp :1;
41  bool allowAlliance :1;
42  bool allyStandings :1;
43  bool statusDrop :1;
44  bool corpWar :1;
45  bool showInCalendar :1;
51  int8 selectedHour; /* determines timeframe structure will come out of reinforced mode */
52  int32 harmonic; /* this is POS ForceField status */
54  float status; /* this is different from structure.status: it is used for defense standings and needs to be renamed */
55  float standing;
56  std::string password;
57  };
58 
59  struct JumpBridgeData {
60  bool allowCorp :1;
61  bool allowAlliance :1;
70  std::string password;
71  };
72 
73  struct OrbitalData {
77  uint32 standingOwnerID; // corp/ally
79  GVector rotation; /* yaw,pitch,roll - direction to planet (for correct orientation) */
80  };
81 
82  struct POS_Connections {
85  };
86 
87  struct POS_Resource {
90  };
91 
92  namespace Harmonic {
93  enum {
94  Inactive = -1, // shows 'offline' in mgr window
95  Offline = 0, // shows 'offline' in mgr window
96  Online = 1
97  };
98  }
99 
100  namespace ProcState {
101  // these are internal only, used to determine method call on timer tic
102  enum {
103  Invalid = 0,
107  Onlining = 4,
108  Online = 5,
113  };
114  }
115 
116  namespace StructureState {
117  enum {
120  Anchored = 1,
121  Onlining = 2,
123  Online = 4,
129  };
130  }
131 
132  namespace EntityState {
133  // not totally sure what these are for....customs offices for one...these are also entityState (drones)
134  enum {
135  Offlining = -7,
136  Anchoring = -6,
137  Onlining = -5,
138  Anchored = -4,
142  Idle = 0,
143  Combat = 1,
144  Mining = 2,
148  Pursuit = 6,
149  Fleeing = 7,
152  Engage = 10,
160  };
161  }
162 
163  namespace TaxValues {
164  // used to determine tax rate on POCO based on relationship with owner
165  enum {
166  Corp = 1,
167  Alliance = 2,
173  };
174  }
175 
176  namespace StandingValues {
177  // if access by standing, these set minimum standing required, and associated tax rate.
178  enum {
184  };
185  }
186 /*
187  * typedef enum {
188  * posShieldStartLevel = 0.505f,
189  * posMaxShieldPercentageForWatch = 0.95f,
190  * posMinDamageDiffToPersist = 0.05f
191  * };
192  */
193 }
194 
195 #endif //EVE_POS_ENUMS_H
196 
197 
198 /*{'FullPath': u'UI/Inflight/MoonMining', 'messageID': 238189, 'label': u'TowerLocated'}(u'Location: <b>{moonLocation}</b>', None, {u'{moonLocation}': {'conditionalValues': [], 'variableType': 10, 'propertyName': None, 'args': 0, 'kwargs': {}, 'variableName': 'moonLocation'}})
199  * {'FullPath': u'UI/Inflight/MoonMining', 'messageID': 238190, 'label': u'TowerPowerUsage'}(u'{[numeric]currentValue}/{[numeric]totalPower} MW', None, {u'{[numeric]currentValue}': {'conditionalValues': [], 'variableType': 9, 'propertyName': None, 'args': 0, 'kwargs': {}, 'variableName': 'currentValue'}, u'{[numeric]totalPower}': {'conditionalValues': [], 'variableType': 9, 'propertyName': None, 'args': 0, 'kwargs': {}, 'variableName': 'totalPower'}})
200  * {'FullPath': u'UI/Inflight/MoonMining', 'messageID': 238191, 'label': u'TowerCPUUsage'}(u'{[numeric]currentValue}/{[numeric]totalCPU} tf', None, {u'{[numeric]currentValue}': {'conditionalValues': [], 'variableType': 9, 'propertyName': None, 'args': 0, 'kwargs': {}, 'variableName': 'currentValue'}, u'{[numeric]totalCPU}': {'conditionalValues': [], 'variableType': 9, 'propertyName': None, 'args': 0, 'kwargs': {}, 'variableName': 'totalCPU'}})
201  */
202 
203 /*
204 STRUCTURE_UNANCHORED = 0
205 STRUCTURE_ANCHORED = 1
206 STRUCTURE_ONLINING = 2
207 STRUCTURE_REINFORCED = 3
208 STRUCTURE_ONLINE = 4
209 STRUCTURE_OPERATING = 5
210 STRUCTURE_VULNERABLE = 6
211 STRUCTURE_SHIELD_REINFORCE = 7
212 STRUCTURE_ARMOR_REINFORCE = 8
213 STRUCTURE_INVULNERABLE = 9
214 
215  * entities.POS_STRUCTURE_STATE = {const.pwnStructureStateAnchored: localization.GetByLabel('Entities/States/Anchored'),
216  * const.pwnStructureStateAnchoring: localization.GetByLabel('Entities/States/Anchoring'),
217  * const.pwnStructureStateIncapacitated: localization.GetByLabel('Entities/States/Incapacitated'),
218  * const.pwnStructureStateInvulnerable: localization.GetByLabel('Entities/States/Invulnerable'),
219  * const.pwnStructureStateOnline: localization.GetByLabel('Entities/States/Online'),
220  * const.pwnStructureStateOnlining: localization.GetByLabel('Entities/States/Onlining'),
221  * const.pwnStructureStateOperating: localization.GetByLabel('Entities/States/Operating'),
222  * const.pwnStructureStateReinforced: localization.GetByLabel('Entities/States/Reinforced'),
223  * const.pwnStructureStateUnanchored: localization.GetByLabel('Entities/States/Unanchored'),
224  * const.pwnStructureStateUnanchoring: localization.GetByLabel('Entities/States/Unanchoring'),
225  * const.pwnStructureStateVulnerable: localization.GetByLabel('Entities/States/Vulnerable'),
226  * const.pwnStructureStateAnchor: localization.GetByLabel('UI/Inflight/MoonMining/Structures/Anchor'),
227  * const.pwnStructureStateUnanchor: localization.GetByLabel('UI/Inflight/MoonMining/Structures/Unanchor'),
228  * const.pwnStructureStateOffline: localization.GetByLabel('UI/Inflight/MoonMining/Structures/Offline'),
229  * const.pwnStructureStateOnlineActive: localization.GetByLabel('UI/Inflight/MoonMining/States/OnlineActive'),
230  * const.pwnStructureStateOnlineStartingUp: localization.GetByLabel('UI/Inflight/MoonMining/States/OnlineStartingUp')}
231  */
232 
233 
234 /*
235 STATE_OFFLINING = -7
236 STATE_ANCHORING = -6
237 STATE_ONLINING = -5
238 STATE_ANCHORED = -4
239 STATE_UNANCHORING = -3
240 STATE_UNANCHORED = -2
241 STATE_INCAPACITATED = -1
242 STATE_IDLE = 0
243 STATE_COMBAT = 1
244 STATE_MINING = 2
245 STATE_APPROACHING = 3
246 STATE_DEPARTING = 4
247 STATE_DEPARTING_2 = 5
248 STATE_PURSUIT = 6
249 STATE_FLEEING = 7
250 STATE_REINFORCED = 8
251 STATE_OPERATING = 9
252 STATE_ENGAGE = 10
253 STATE_VULNERABLE = 11
254 STATE_SHIELD_REINFORCE = 12
255 STATE_ARMOR_REINFORCE = 13
256 STATE_INVULNERABLE = 14
257 STATE_WARPAWAYANDDIE = 15
258 STATE_WARPAWAYANDCOMEBACK = 16
259 STATE_WARPTOPOSITION = 17
260 ENTITY_STATE_NAMES = {STATE_OFFLINING: 'State_OFFLINING',
261  STATE_ANCHORING: 'STATE_ANCHORING',
262  STATE_ONLINING: 'STATE_ONLINING',
263  STATE_ANCHORED: 'STATE_ANCHORED',
264  STATE_UNANCHORING: 'STATE_UNANCHORING',
265  STATE_UNANCHORED: 'STATE_UNANCHORED',
266  STATE_INCAPACITATED: 'STATE_INCAPACITATED',
267  STATE_IDLE: 'STATE_IDLE',
268  STATE_COMBAT: 'STATE_COMBAT',
269  STATE_MINING: 'STATE_MINING',
270  STATE_APPROACHING: 'STATE_APPROACHING',
271  STATE_DEPARTING: 'STATE_DEPARTING',
272  STATE_DEPARTING_2: 'STATE_DEPARTING_2',
273  STATE_PURSUIT: 'STATE_PURSUIT',
274  STATE_FLEEING: 'STATE_FLEEING',
275  STATE_REINFORCED: 'STATE_REINFORCED',
276  STATE_OPERATING: 'STATE_OPERATING',
277  STATE_ENGAGE: 'STATE_ENGAGE',
278  STATE_VULNERABLE: 'STATE_VULNERABLE',
279  STATE_SHIELD_REINFORCE: 'STATE_SHIELD_REINFORCE',
280  STATE_ARMOR_REINFORCE: 'STATE_ARMOR_REINFORCE',
281  STATE_INVULNERABLE: 'STATE_INVULNERABLE',
282  STATE_WARPAWAYANDDIE: 'STATE_WARPAWAYANDDIE',
283  STATE_WARPAWAYANDCOMEBACK: 'STATE_WARPAWAYANDCOMEBACK',
284  STATE_WARPTOPOSITION: 'STATE_WARPTOPOSITION'}
285 entityStateStrings = {STATE_ANCHORING: localization.GetByLabel('Entities/States/Anchoring'),
286  STATE_ONLINING: localization.GetByLabel('Entities/States/Onlining'),
287  STATE_ANCHORED: localization.GetByLabel('Entities/States/Anchored'),
288  STATE_UNANCHORING: localization.GetByLabel('Entities/States/Unanchoring'),
289  STATE_UNANCHORED: localization.GetByLabel('Entities/States/Unanchored'),
290  STATE_INCAPACITATED: localization.GetByLabel('Entities/States/Incapacitated'),
291  STATE_IDLE: localization.GetByLabel('Entities/States/Idle'),
292  STATE_COMBAT: localization.GetByLabel('Entities/States/Fighting'),
293  STATE_MINING: localization.GetByLabel('Entities/States/Mining'),
294  STATE_APPROACHING: localization.GetByLabel('Entities/States/Approaching'),
295  STATE_FLEEING: localization.GetByLabel('Entities/States/Fleeing'),
296  STATE_REINFORCED: localization.GetByLabel('Entities/States/Reinforced'),
297  STATE_OPERATING: localization.GetByLabel('Entities/States/Operating'),
298  STATE_VULNERABLE: localization.GetByLabel('Entities/States/Vulnerable'),
299  STATE_INVULNERABLE: localization.GetByLabel('Entities/States/Invulnerable'),
300  STATE_SHIELD_REINFORCE: localization.GetByLabel('Entities/States/ShieldReinforced'),
301  STATE_ARMOR_REINFORCE: localization.GetByLabel('Entities/States/ArmorReinforced')}
302 
303 def GetEntityStateString(entityState):
304  return entityStateStrings.get(entityState, localization.GetByLabel('Entities/States/Unknown', entityStateID=entityState))
305 
306 
307 INCAPACITATION_DISTANCE = 250000
308 COMMAND_DISTANCE = INCAPACITATION_DISTANCE
309 */
float orbitalHackerProgress
Definition: EVE_POS.h:78
int32 standingOwnerID
Definition: EVE_POS.h:53
uint32 orbitalHackerID
Definition: EVE_POS.h:76
int32 harmonic
Definition: EVE_POS.h:52
GVector rotation
Definition: EVE_POS.h:79
bool allowAlliance
Definition: EVE_POS.h:41
bool sendFuelNotifications
Definition: EVE_POS.h:46
signed __int8 int8
Definition: eve-compat.h:45
signed __int32 int32
Definition: eve-compat.h:49
std::string password
Definition: EVE_POS.h:56
Definition: EVE_Corp.h:15
float standing
Definition: EVE_POS.h:55
uint32 standingOwnerID
Definition: EVE_POS.h:77
std::map< uint8, float > taxRateValues
Definition: EVE_POS.h:25
int8 selectedHour
Definition: EVE_POS.h:51
std::string password
Definition: EVE_POS.h:70
unsigned __int32 uint32
Definition: eve-compat.h:50
signed __int64 int64
Definition: eve-compat.h:51
bool showInCalendar
Definition: EVE_POS.h:45
bool allyStandings
Definition: EVE_POS.h:42
Definition: gpoint.h:70
Definition: EVE_POS.h:14