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

#include "Celestial.h"

Inheritance diagram for WormholeSE:
Collaboration diagram for WormholeSE:

Public Member Functions

 WormholeSE (CelestialObjectRef self, PyServiceMgr &services, SystemManager *system)
 
virtual ~WormholeSE ()
 
virtual WormholeSEGetWormholeSE ()
 
virtual bool IsWormholeSE ()
 
virtual void EncodeDestiny (Buffer &into)
 
virtual PyDictMakeSlimItem ()
 
- Public Member Functions inherited from CelestialSE
 CelestialSE (InventoryItemRef self, PyServiceMgr &services, SystemManager *system)
 
virtual ~CelestialSE ()
 
virtual const CelestialSEGetCelestialSE ()
 
virtual bool IsCelestialSE ()
 
virtual void MakeDamageState (DoDestinyDamageState &into)
 
- Public Member Functions inherited from ItemSystemEntity
 ItemSystemEntity (InventoryItemRef self, PyServiceMgr &services, SystemManager *system)
 
virtual ~ItemSystemEntity ()
 
virtual ItemSystemEntityGetItemSE ()
 
virtual bool IsInanimateSE ()
 
virtual bool IsItemEntity ()
 
- Public Member Functions inherited from SystemEntity
 SystemEntity (InventoryItemRef self, PyServiceMgr &services, SystemManager *system)
 
virtual ~SystemEntity ()
 
virtual void Process ()
 
virtual bool ProcessTic ()
 
virtual SystemEntityGetSE ()
 
virtual StaticSystemEntityGetStaticSE ()
 
virtual StationSEGetStationSE ()
 
virtual PlanetSEGetPlanetSE ()
 
virtual MoonSEGetMoonSE ()
 
virtual StargateSEGetGateSE ()
 
virtual BeltSEGetBeltSE ()
 
virtual ContainerSEGetContSE ()
 
virtual WreckSEGetWreckSE ()
 
virtual AnomalySEGetAnomalySE ()
 
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 isGlobal ()
 
virtual bool IsSystemEntity ()
 
virtual bool IsStaticEntity ()
 
virtual bool IsBeltSE ()
 
virtual bool IsGateSE ()
 
virtual bool IsPlanetSE ()
 
virtual bool IsMoonSE ()
 
virtual bool IsStationSE ()
 
virtual bool IsAnomalySE ()
 
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 MissileLaunched (Missile *pMissile)
 
virtual void UpdateDamage ()
 
virtual bool LoadExtras ()
 
virtual void Delete ()
 
virtual void SetPilot (Client *pClient)
 
virtual bool HasPilot ()
 
virtual ClientGetPilot ()
 

Private Attributes

int8 m_wormholeAge
 
float m_wormholeSize
 
int64 m_expiryDate
 
uint16 m_count
 
uint16 m_dunSpawnID
 
uint16 m_nebulaType
 

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 145 of file Celestial.h.

Constructor & Destructor Documentation

WormholeSE::WormholeSE ( CelestialObjectRef  self,
PyServiceMgr services,
SystemManager system 
)

Definition at line 164 of file Celestial.cpp.

References WormHole::Age::Adolescent, EvE::Time::Day, WormHole::Size::Full, m_count, m_dunSpawnID, m_expiryDate, m_nebulaType, m_wormholeAge, m_wormholeSize, and Win32TimeNow().

165 : CelestialSE(self, services, system)
166 {
167  m_count = 0;
170  // just guessing here....
172  m_nebulaType = 11785; // data found in eveGraphics table. yes. 11781 - 11786 (class 1-6) -3715 doesnt work
173  // no clue what this is...may not be used. seen 33, 263, 27 in logs
174  m_dunSpawnID = 0;
175 
176 }
uint16 m_count
Definition: Celestial.h:165
float m_wormholeSize
Definition: Celestial.h:163
uint16 m_nebulaType
Definition: Celestial.h:167
uint16 m_dunSpawnID
Definition: Celestial.h:166
int64 Win32TimeNow()
Definition: utils_time.cpp:70
CelestialSE(InventoryItemRef self, PyServiceMgr &services, SystemManager *system)
Definition: Celestial.cpp:95
int64 m_expiryDate
Definition: Celestial.h:164
int8 m_wormholeAge
Definition: Celestial.h:162

Here is the call graph for this function:

virtual WormholeSE::~WormholeSE ( )
inlinevirtual

Definition at line 148 of file Celestial.h.

148 { /* Do nothing here */ }

Member Function Documentation

void WormholeSE::EncodeDestiny ( Buffer into)
virtual

Reimplemented from ItemSystemEntity.

Definition at line 178 of file Celestial.cpp.

References _log, Destiny::MassSector::allianceID, Buffer::Append(), Destiny::MassSector::cloak, Destiny::MassSector::corporationID, Destiny::BallHeader::entityID, Destiny::BallHeader::flags, Destiny::STOP_Struct::formationID, SystemEntity::GetName(), Destiny::MassSector::harmonic, InventoryItem::itemID(), SystemEntity::m_harmonic, SystemEntity::m_radius, SystemEntity::m_self, main(), Destiny::MassSector::mass, Destiny::BallHeader::mode, Destiny::BallHeader::posX, Destiny::BallHeader::posY, Destiny::BallHeader::posZ, Destiny::BallHeader::radius, Destiny::Ball::Mode::STOP, SystemEntity::x(), SystemEntity::y(), and SystemEntity::z().

179 {
180  using namespace Destiny;
181  BallHeader head = BallHeader();
182  head.entityID = m_self->itemID();
183  head.mode = Ball::Mode::STOP;
184  head.radius = m_radius;
185  head.posX = x();
186  head.posY = y();
187  head.posZ = z();
188  head.flags = 0;
189  into.Append( head );
190  MassSector mass = MassSector();
191  mass.mass = 10000000000; // as seen in packets
192  mass.cloak = 0;
193  mass.harmonic = m_harmonic;
194  mass.corporationID = -1;
195  mass.allianceID = -1;
196  into.Append( mass );
198  main.formationID = 0xFF;
199  into.Append( main );
200  _log(SE__DESTINY, "WormholeSE::EncodeDestiny(): %s - id:%li, mode:%u, flags:0x%X", GetName(), head.entityID, head.mode, head.flags);
201 }
void Append(const T &value)
Appends a single value to buffer.
Definition: Buffer.h:437
#define _log(type, fmt,...)
Definition: logsys.h:124
double y()
Definition: SystemEntity.h:214
int32 m_harmonic
Definition: SystemEntity.h:276
InventoryItemRef m_self
Definition: SystemEntity.h:269
double z()
Definition: SystemEntity.h:215
const char * GetName() const
Definition: SystemEntity.h:210
double x()
Definition: SystemEntity.h:213
int main(int argc, char *argv[])
double m_radius
Definition: SystemEntity.h:273
uint32 itemID() const
Definition: InventoryItem.h:98

Here is the call graph for this function:

virtual WormholeSE* WormholeSE::GetWormholeSE ( )
inlinevirtual

Reimplemented from SystemEntity.

Definition at line 151 of file Celestial.h.

151 { return this; }
virtual bool WormholeSE::IsWormholeSE ( )
inlinevirtual

Reimplemented from SystemEntity.

Definition at line 154 of file Celestial.h.

154 { return true; }
PyDict * WormholeSE::MakeSlimItem ( )
virtual

Reimplemented from ItemSystemEntity.

Definition at line 203 of file Celestial.cpp.

References _log, SystemManager::GetID(), SystemEntity::GetName(), InventoryItem::itemID(), m_count, m_dunSpawnID, m_expiryDate, m_nebulaType, SystemEntity::m_ownerID, SystemEntity::m_self, SystemEntity::m_system, m_wormholeAge, m_wormholeSize, sDataMgr, and InventoryItem::typeID().

204 {
205  _log(SE__SLIMITEM, "MakeSlimItem for WormholeSE %s(%u)", GetName(), m_self->itemID());
206  PyDict *slim = new PyDict();
207  slim->SetItemString("itemID", new PyLong(m_self->itemID()));
208  slim->SetItemString("typeID", new PyInt(m_self->typeID()));
209  slim->SetItemString("ownerID", new PyInt(m_ownerID));
210  slim->SetItemString("otherSolarSystemClass", new PyInt(sDataMgr.GetWHSystemClass(m_system->GetID())));
211  slim->SetItemString("wormholeSize", new PyFloat(m_wormholeSize));
212  slim->SetItemString("wormholeAge", new PyInt(m_wormholeAge));
213  slim->SetItemString("count", new PyInt(m_count)); //ships jumped thru?
214  slim->SetItemString("dunSpawnID", new PyInt(m_dunSpawnID));
215  slim->SetItemString("nebulaType", new PyInt(m_nebulaType));
216  slim->SetItemString("expiryDate", new PyLong(m_expiryDate));
217  return slim;
218 }
#define _log(type, fmt,...)
Definition: logsys.h:124
Python's dictionary.
Definition: PyRep.h:719
uint32 m_ownerID
Definition: SystemEntity.h:283
uint16 m_count
Definition: Celestial.h:165
Python floating point number.
Definition: PyRep.h:292
uint32 GetID() const
Definition: SystemManager.h:80
float m_wormholeSize
Definition: Celestial.h:163
uint16 m_nebulaType
Definition: Celestial.h:167
InventoryItemRef m_self
Definition: SystemEntity.h:269
uint16 m_dunSpawnID
Definition: Celestial.h:166
Python integer.
Definition: PyRep.h:231
SystemManager * m_system
Definition: SystemEntity.h:263
const char * GetName() const
Definition: SystemEntity.h:210
int64 m_expiryDate
Definition: Celestial.h:164
int8 m_wormholeAge
Definition: Celestial.h:162
uint16 typeID() const
uint32 itemID() const
Definition: InventoryItem.h:98
Python long integer.
Definition: PyRep.h:261
#define sDataMgr

Here is the call graph for this function:

Member Data Documentation

uint16 WormholeSE::m_count
private

Definition at line 165 of file Celestial.h.

Referenced by MakeSlimItem(), and WormholeSE().

uint16 WormholeSE::m_dunSpawnID
private

Definition at line 166 of file Celestial.h.

Referenced by MakeSlimItem(), and WormholeSE().

int64 WormholeSE::m_expiryDate
private

Definition at line 164 of file Celestial.h.

Referenced by MakeSlimItem(), and WormholeSE().

uint16 WormholeSE::m_nebulaType
private

Definition at line 167 of file Celestial.h.

Referenced by MakeSlimItem(), and WormholeSE().

int8 WormholeSE::m_wormholeAge
private

Definition at line 162 of file Celestial.h.

Referenced by MakeSlimItem(), and WormholeSE().

float WormholeSE::m_wormholeSize
private

Definition at line 163 of file Celestial.h.

Referenced by MakeSlimItem(), and WormholeSE().


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