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

#include "SystemEntity.h"

Inheritance diagram for StargateSE:
Collaboration diagram for StargateSE:

Public Member Functions

 StargateSE (InventoryItemRef self, PyServiceMgr &services, SystemManager *system)
 
virtual ~StargateSE ()
 
virtual StargateSEGetGateSE ()
 
virtual bool IsGateSE ()
 
virtual PyDictMakeSlimItem ()
 
virtual bool LoadExtras ()
 
StructureSEGetMySBU ()
 
bool HasSBU ()
 
void SetSBU (StructureSE *pSE)
 
- 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)
 
- 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 MoonSEGetMoonSE ()
 
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 IsPlanetSE ()
 
virtual bool IsMoonSE ()
 
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 ()
 

Protected Attributes

PyRepm_jumps
 
StructureSEm_sbuSE
 
- 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 340 of file SystemEntity.h.

Constructor & Destructor Documentation

StargateSE::StargateSE ( InventoryItemRef  self,
PyServiceMgr services,
SystemManager system 
)

Definition at line 313 of file SystemEntity.cpp.

314 : StaticSystemEntity(self, services, system),
315 m_sbuSE(nullptr)
316 {
317 }
StaticSystemEntity(InventoryItemRef self, PyServiceMgr &services, SystemManager *system)
StructureSE * m_sbuSE
Definition: SystemEntity.h:365
virtual StargateSE::~StargateSE ( )
inlinevirtual

Definition at line 345 of file SystemEntity.h.

345 { /* Do nothing here */ }

Member Function Documentation

virtual StargateSE* StargateSE::GetGateSE ( )
inlinevirtual

Reimplemented from SystemEntity.

Definition at line 348 of file SystemEntity.h.

348 { return this; }
StructureSE* StargateSE::GetMySBU ( )
inline

Definition at line 359 of file SystemEntity.h.

References m_sbuSE.

359 { return m_sbuSE; }
StructureSE * m_sbuSE
Definition: SystemEntity.h:365
bool StargateSE::HasSBU ( )
inline

Definition at line 360 of file SystemEntity.h.

References m_sbuSE.

360 { return (m_sbuSE != nullptr); }
StructureSE * m_sbuSE
Definition: SystemEntity.h:365
virtual bool StargateSE::IsGateSE ( )
inlinevirtual

Reimplemented from SystemEntity.

Definition at line 350 of file SystemEntity.h.

350 { return true; }
bool StargateSE::LoadExtras ( )
virtual

Reimplemented from StaticSystemEntity.

Definition at line 319 of file SystemEntity.cpp.

References _log, SystemBubble::GetID(), InventoryItem::itemID(), SystemDB::ListJumps(), StaticSystemEntity::LoadExtras(), SystemEntity::m_bubble, m_jumps, SystemEntity::m_self, sBubbleMgr, and SystemBubble::SetGate().

319  {
321  return false;
322 
323  if (m_bubble == nullptr)
324  sBubbleMgr.Add(this);
325 
326  m_bubble->SetGate(true);
327  _log(DESTINY__BUBBLE_DEBUG, "StargateSE::LoadExtras() - IsGate set to true for bubble %u.", m_bubble->GetID() );
329  if (m_jumps != nullptr)
330  return true;
331 
332  return false;
333 }
#define _log(type, fmt,...)
Definition: logsys.h:124
static PyObject * ListJumps(uint32)
Definition: SystemDB.cpp:41
SystemBubble * m_bubble
Definition: SystemEntity.h:262
InventoryItemRef m_self
Definition: SystemEntity.h:269
void SetGate(uint32 gateID)
PyRep * m_jumps
Definition: SystemEntity.h:364
uint16 GetID()
Definition: SystemBubble.h:91
virtual bool LoadExtras()
#define sBubbleMgr
uint32 itemID() const
Definition: InventoryItem.h:98

Here is the call graph for this function:

PyDict * StargateSE::MakeSlimItem ( )
virtual
Todo:
finish gate rotation data PyTuple* rotation = new PyTuple(3); rotation->SetItem(0, new PyFloat(0)); rotation->SetItem(1, new PyFloat(0)); rotation->SetItem(2, new PyFloat(0));
Todo:
(allan) make function to lookup controlling faction id for this

Reimplemented from StaticSystemEntity.

Definition at line 335 of file SystemEntity.cpp.

References _log, PyRep::Clone(), SystemEntity::GetName(), InventoryItem::itemID(), InventoryItem::itemName(), m_jumps, SystemEntity::m_self, PyStatic, and InventoryItem::typeID().

335  {
336  _log(SE__SLIMITEM, "MakeSlimItem for StargateSE %s(%u)", GetName(), m_self->itemID());
342  PyDict *slim = new PyDict();
343  //slim->SetItemString("dunRotation", rotation);
344  slim->SetItemString("typeID", new PyInt(m_self->typeID()));
346  // NOTE: maybe not...logs show this is "1" for all items.
347  slim->SetItemString("ownerID", PyStatic.NewOne());
348  slim->SetItemString("itemID", new PyLong(m_self->itemID()));
349  slim->SetItemString("name", new PyString(m_self->itemName()));
350  slim->SetItemString("nameID", PyStatic.NewNone());
351  if (m_jumps != nullptr)
352  slim->SetItemString("jumps", m_jumps->Clone());
353  return slim;
354 }
#define _log(type, fmt,...)
Definition: logsys.h:124
Python string.
Definition: PyRep.h:430
Python's dictionary.
Definition: PyRep.h:719
virtual PyRep * Clone() const =0
Clones object.
InventoryItemRef m_self
Definition: SystemEntity.h:269
PyRep * m_jumps
Definition: SystemEntity.h:364
Python integer.
Definition: PyRep.h:231
#define PyStatic
Definition: PyRep.h:1209
const char * GetName() const
Definition: SystemEntity.h:210
const std::string & itemName() const
uint16 typeID() const
uint32 itemID() const
Definition: InventoryItem.h:98
Python long integer.
Definition: PyRep.h:261

Here is the call graph for this function:

void StargateSE::SetSBU ( StructureSE pSE)
inline

Definition at line 361 of file SystemEntity.h.

References m_sbuSE.

Referenced by StructureSE::Process().

361 { m_sbuSE = pSE; }
StructureSE * m_sbuSE
Definition: SystemEntity.h:365

Here is the caller graph for this function:

Member Data Documentation

PyRep* StargateSE::m_jumps
protected

Definition at line 364 of file SystemEntity.h.

Referenced by LoadExtras(), and MakeSlimItem().

StructureSE* StargateSE::m_sbuSE
protected

Definition at line 365 of file SystemEntity.h.

Referenced by GetMySBU(), HasSBU(), and SetSBU().


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