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

#include "Moon.h"

Inheritance diagram for MoonSE:
Collaboration diagram for MoonSE:

Public Member Functions

virtual ~MoonSE ()
 
virtual MoonSEGetMoonSE ()
 
virtual bool IsMoonSE ()
 
StructureSEGetMyTower ()
 
bool HasTower ()
 
void SetTower (StructureSE *pSE)
 
std::map< uint16, uint8 >::iterator GooEnd ()
 
std::map< uint16, uint8 >::iterator GooBegin ()
 
Moon.cpp

Specific Class for individual moons. this class will hold all moon data and relative info for each moon.

: Allan

Date
: 30 April 2016
 MoonSE (InventoryItemRef self, PyServiceMgr &services, SystemManager *system)
 
virtual bool LoadExtras ()
 
- Public Member Functions inherited from StaticSystemEntity
 StaticSystemEntity (InventoryItemRef self, PyServiceMgr &services, SystemManager *system)
 
virtual ~StaticSystemEntity ()
 
virtual StaticSystemEntityGetStaticSE ()
 
virtual bool isGlobal ()
 
virtual bool IsInanimateSE ()
 
virtual bool IsStaticEntity ()
 
virtual void EncodeDestiny (Buffer &into)
 
virtual PyDictMakeSlimItem ()
 
- Public Member Functions inherited from SystemEntity
 SystemEntity (InventoryItemRef self, PyServiceMgr &services, SystemManager *system)
 
virtual ~SystemEntity ()
 
virtual void Process ()
 
virtual bool ProcessTic ()
 
virtual SystemEntityGetSE ()
 
virtual StationSEGetStationSE ()
 
virtual PlanetSEGetPlanetSE ()
 
virtual StargateSEGetGateSE ()
 
virtual BeltSEGetBeltSE ()
 
virtual ItemSystemEntityGetItemSE ()
 
virtual ContainerSEGetContSE ()
 
virtual WreckSEGetWreckSE ()
 
virtual AnomalySEGetAnomalySE ()
 
virtual WormholeSEGetWormholeSE ()
 
virtual FieldSEGetFieldSE ()
 
virtual ProbeSEGetProbeSE ()
 
virtual ObjectSystemEntityGetObjectSE ()
 
virtual AsteroidSEGetAsteroidSE ()
 
virtual StructureSEGetPOSSE ()
 
virtual StructureSEGetJammerSE ()
 
virtual JumpBridgeSEGetJumpBridgeSE ()
 
virtual StructureSEGetOutpostSE ()
 
virtual TowerSEGetTowerSE ()
 
virtual ArraySEGetArraySE ()
 
virtual WeaponSEGetWeaponSE ()
 
virtual BatterySEGetBatterySE ()
 
virtual DeployableSEGetDeployableSE ()
 
virtual SentryGetSentrySE ()
 
virtual ModuleSEGetModuleSE ()
 
virtual ReactorSEGetReactorSE ()
 
virtual CustomsSEGetCOSE ()
 
virtual TCUSEGetTCUSE ()
 
virtual SBUSEGetSBUSE ()
 
virtual IHubSEGetIHubSE ()
 
virtual DynamicSystemEntityGetDynamicSE ()
 
virtual NPCGetNPCSE ()
 
virtual DroneSEGetDroneSE ()
 
virtual MissileGetMissileSE ()
 
virtual ShipSEGetShipSE ()
 
virtual ConcordGetConcordSE ()
 
virtual bool IsSystemEntity ()
 
virtual bool IsBeltSE ()
 
virtual bool IsGateSE ()
 
virtual bool IsPlanetSE ()
 
virtual bool IsStationSE ()
 
virtual bool IsItemEntity ()
 
virtual bool IsAnomalySE ()
 
virtual bool IsWormholeSE ()
 
virtual bool IsCelestialSE ()
 
virtual bool IsContainerSE ()
 
virtual bool IsFieldSE ()
 
virtual bool IsProbeSE ()
 
virtual bool IsObjectEntity ()
 
virtual bool IsSentrySE ()
 
virtual bool IsPOSSE ()
 
virtual bool IsCOSE ()
 
virtual bool IsTCUSE ()
 
virtual bool IsSBUSE ()
 
virtual bool IsIHubSE ()
 
virtual bool IsTowerSE ()
 
virtual bool IsArraySE ()
 
virtual bool IsJammerSE ()
 
virtual bool IsWeaponSE ()
 
virtual bool IsBatterySE ()
 
virtual bool IsModuleSE ()
 
virtual bool IsMoonMiner ()
 
virtual bool IsOutpostSE ()
 
virtual bool IsAsteroidSE ()
 
virtual bool IsDeployableSE ()
 
virtual bool IsJumpBridgeSE ()
 
virtual bool IsReactorSE ()
 
virtual bool IsOperSE ()
 
virtual bool IsDynamicEntity ()
 
virtual bool IsLogin ()
 
virtual bool IsInvul ()
 
virtual bool IsFrozen ()
 
virtual bool IsNPCSE ()
 
virtual bool IsDroneSE ()
 
virtual bool IsWreckSE ()
 
virtual bool IsMissileSE ()
 
virtual bool IsShipSE ()
 
virtual bool IsConcord ()
 
PyServiceMgrGetServices ()
 
SystemBubbleSysBubble ()
 
SystemManagerSystemMgr ()
 
TargetManagerTargetMgr ()
 
DestinyManagerDestinyMgr ()
 
InventoryItemRef GetSelf ()
 
uint16 GetTypeID ()
 
uint32 GetGroupID ()
 
uint8 GetCategoryID ()
 
EVEItemFlags GetFlag ()
 
uint32 GetID ()
 
double GetRadius ()
 
uint32 GetLocationID ()
 
const char * GetName () const
 
const GPointGetPosition () const
 
void SetPosition (const GPoint &pos)
 
double x ()
 
double y ()
 
double z ()
 
int32 GetAllianceID ()
 
int32 GetWarFactionID ()
 
uint32 GetCorporationID ()
 
uint32 GetOwnerID ()
 
uint32 GetFleetID ()
 
void SetFleetID (uint32 set)
 
int8 GetHarmonic ()
 
void SetHarmonic (int8 set)
 
void DropLoot (WreckContainerRef wreckRef, uint32 groupID, uint32 owner)
 
void AwardSecurityStatus (InventoryItemRef iRef, Character *pChar)
 
void SendDamageStateChanged ()
 
bool ApplyDamage (Damage &d)
 
double DistanceTo2 (const SystemEntity *other)
 
PyTupleMakeDamageState ()
 
virtual void Abandon ()
 
const bool IsDead ()
 
const GVectorGetVelocity ()
 
virtual void Killed (Damage &fatal_blow)
 
virtual void MakeDamageState (DoDestinyDamageState &into)
 
virtual void MissileLaunched (Missile *pMissile)
 
virtual void UpdateDamage ()
 
virtual void Delete ()
 
virtual void SetPilot (Client *pClient)
 
virtual bool HasPilot ()
 
virtual ClientGetPilot ()
 

Private Attributes

StructureSEm_towerSE
 
std::map< uint16, uint8m_resources
 

Additional Inherited Members

- Protected Attributes inherited from SystemEntity
SystemBubblem_bubble
 
SystemManagerm_system
 
TargetManagerm_targMgr
 
DestinyManagerm_destiny
 
PyServiceMgrm_services
 
InventoryItemRef m_self
 
bool m_killed
 
double m_radius
 
int32 m_harmonic
 
int32 m_warID
 
int32 m_allyID
 
uint32 m_corpID
 
uint32 m_fleetID
 
uint32 m_ownerID
 

Detailed Description

Definition at line 28 of file Moon.h.

Constructor & Destructor Documentation

MoonSE::MoonSE ( InventoryItemRef  self,
PyServiceMgr services,
SystemManager system 
)
Todo:
finish moon resources...this is hacked

Definition at line 55 of file Moon.cpp.

References m_resources.

56 : StaticSystemEntity(self, services, system),
57 m_towerSE(nullptr)
58 {
60  m_resources.clear();
61 /*
62  [PyTuple 2 items]
63  [PyInt 40126701]
64  [PyList 20 items]
65  [PyTuple 2 items]
66  [PyInt 16633]
67  [PyInt 4]
68  [PyTuple 2 items]
69  [PyInt 16634]
70  [PyInt 4]
71  [PyTuple 2 items]
72  [PyInt 16635]
73  [PyInt 4]
74  [PyTuple 2 items]
75  [PyInt 16636]
76  [PyInt 4]
77  [PyTuple 2 items]
78  [PyInt 16637]
79  [PyInt 4]
80  [PyTuple 2 items]
81  [PyInt 16638]
82  [PyInt 4]
83  [PyTuple 2 items]
84  [PyInt 16639]
85  [PyInt 4]
86  [PyTuple 2 items]
87  [PyInt 16640]
88  [PyInt 4]
89  [PyTuple 2 items]
90  [PyInt 16641]
91  [PyInt 4]
92  [PyTuple 2 items]
93  [PyInt 16642]
94  [PyInt 4]
95  [PyTuple 2 items]
96  [PyInt 16643]
97  [PyInt 4]
98  [PyTuple 2 items]
99  [PyInt 16644]
100  [PyInt 4]
101  [PyTuple 2 items]
102  [PyInt 16646]
103  [PyInt 4]
104  [PyTuple 2 items]
105  [PyInt 16647]
106  [PyInt 4]
107  [PyTuple 2 items]
108  [PyInt 16648]
109  [PyInt 4]
110  [PyTuple 2 items]
111  [PyInt 16649]
112  [PyInt 4]
113  [PyTuple 2 items]
114  [PyInt 16650]
115  [PyInt 4]
116  [PyTuple 2 items]
117  [PyInt 16651]
118  [PyInt 4]
119  [PyTuple 2 items]
120  [PyInt 16652]
121  [PyInt 4]
122  [PyTuple 2 items]
123  [PyInt 16653]
124  [PyInt 4]
125  */
126 }
StructureSE * m_towerSE
Definition: Moon.h:54
StaticSystemEntity(InventoryItemRef self, PyServiceMgr &services, SystemManager *system)
std::map< uint16, uint8 > m_resources
Definition: Moon.h:56
virtual MoonSE::~MoonSE ( )
inlinevirtual

Definition at line 33 of file Moon.h.

33 { /* Do nothing here */ }

Member Function Documentation

virtual MoonSE* MoonSE::GetMoonSE ( )
inlinevirtual

Reimplemented from SystemEntity.

Definition at line 36 of file Moon.h.

36 { return this; }
StructureSE* MoonSE::GetMyTower ( )
inline

Definition at line 45 of file Moon.h.

References m_towerSE.

45 { return m_towerSE; }
StructureSE * m_towerSE
Definition: Moon.h:54
std::map<uint16, uint8>::iterator MoonSE::GooBegin ( )
inline

Definition at line 50 of file Moon.h.

References m_resources.

50 { return m_resources.begin(); }
std::map< uint16, uint8 > m_resources
Definition: Moon.h:56
std::map<uint16, uint8>::iterator MoonSE::GooEnd ( )
inline

Definition at line 49 of file Moon.h.

References m_resources.

49 { return m_resources.end(); }
std::map< uint16, uint8 > m_resources
Definition: Moon.h:56
bool MoonSE::HasTower ( )
inline

Definition at line 46 of file Moon.h.

References m_towerSE.

Referenced by StructureSE::SetAnchor().

46 { return (m_towerSE != nullptr); }
StructureSE * m_towerSE
Definition: Moon.h:54

Here is the caller graph for this function:

virtual bool MoonSE::IsMoonSE ( )
inlinevirtual

Reimplemented from SystemEntity.

Definition at line 38 of file Moon.h.

38 { return true; }
bool MoonSE::LoadExtras ( )
virtual
Todo:
use this to initialize moongoo data, create planet manager for moon, or whatever else i decide is needed for moon management this is called after SE is created.

Reimplemented from StaticSystemEntity.

Definition at line 128 of file Moon.cpp.

References StaticSystemEntity::LoadExtras(), m_resources, and sDataMgr.

128  {
130  return false;
131 
137  /* moon goo data (notes for me)
138  * goo rarity 4/8/16/32/64
139  *
140  *
141 
142 Moon materials have different rarity classes, starting with R4 being the most common and R64 being the most rare.
143 
144  R4 (Gases) : Atmospheric Gases, Evaporite, Hydrocarbons, Silicates.
145  R8 (Metals): Cobalt, Scandium, Titanium, Tungsten
146  R16 (Metals): Cadmium, Chromium, Platinum, Vanadium
147  R32 (Metals): Caesium, Hafnium, Mercury, Technetium
148  R64 (Metals): Dysprosium, Neodymium, Promethium, Thulium
149 
150  Intermediate Materials include:
151 
152  Caesarium Cadmide
153  Carbon Polymers
154  Ceramic Powder
155  Crystallite Alloy
156  Dysporite
157  Fernite Alloy
158  Ferrofluid
159  Fluxed Condensates
160  Hexite
161  Hyperflurite
162  Neo Mercurite
163  Platinum Technite
164  Prometium
165  Rolled Tungsten Alloy
166  Silicon Diborite
167  Solerium
168  Sulfuric Acid
169  Titanium Chromide
170  Vanadium Hafnite
171  */
172  std::map<uint16, uint8> data;
173  sDataMgr.GetMoonResouces(data);
174 
175  for (auto cur : data)
176  switch (cur.second) {
177  case 1: {
178  m_resources.insert(std::pair<uint16, uint8>(cur.first, 6));
179  } break;
180  case 4: {
181  m_resources.insert(std::pair<uint16, uint8>(cur.first, 4));
182  } break;
183  case 6:{
184  m_resources.insert(std::pair<uint16, uint8>(cur.first, 3));
185  } break;
186  case 8:{
187  m_resources.insert(std::pair<uint16, uint8>(cur.first, 2));
188  } break;
189  case 10:{
190  m_resources.insert(std::pair<uint16, uint8>(cur.first, 1));
191  } break;
192  }
193 
194  return true;
195 }
std::map< uint16, uint8 > m_resources
Definition: Moon.h:56
virtual bool LoadExtras()
#define sDataMgr

Here is the call graph for this function:

void MoonSE::SetTower ( StructureSE pSE)
inline

Definition at line 47 of file Moon.h.

References m_towerSE.

Referenced by TowerSE::Init(), StructureSE::Process(), and TowerSE::Scoop().

47 { m_towerSE = pSE; }
StructureSE * m_towerSE
Definition: Moon.h:54

Here is the caller graph for this function:

Member Data Documentation

std::map<uint16, uint8> MoonSE::m_resources
private

Definition at line 56 of file Moon.h.

Referenced by GooBegin(), GooEnd(), LoadExtras(), and MoonSE().

StructureSE* MoonSE::m_towerSE
private

Definition at line 54 of file Moon.h.

Referenced by GetMyTower(), HasTower(), and SetTower().


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