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

#include "IHub.h"

Inheritance diagram for IHubSE:
Collaboration diagram for IHubSE:

Public Member Functions

virtual ~IHubSE ()
 
virtual IHubSEGetIHubSE ()
 
virtual bool isGlobal ()
 
virtual bool IsOperSE ()
 
virtual bool IsIHubSE ()
 
IHub.cpp

Class for Infrastructure Hubs.

: James

Date
: 8 April 2021
 IHubSE (StructureItemRef structure, PyServiceMgr &services, SystemManager *system, const FactionData &fData)
 
virtual void Process ()
 
virtual void SetOnline ()
 
virtual void SetOffline ()
 
virtual void Init ()
 
- Public Member Functions inherited from StructureSE
virtual ~StructureSE ()
 
virtual StructureSEGetPOSSE ()
 
virtual StructureSEGetOutpostSE ()
 
virtual TowerSEGetTowerSE ()
 
virtual ArraySEGetArraySE ()
 
virtual BatterySEGetBatterySE ()
 
virtual WeaponSEGetWeaponSE ()
 
virtual ReactorSEGetReactorSE ()
 
virtual TCUSEGetTCUSE ()
 
virtual SBUSEGetSBUSE ()
 
virtual JumpBridgeSEGetJumpBridgeSE ()
 
virtual bool IsPOSSE ()
 
virtual bool IsTCUSE ()
 
virtual bool IsSBUSE ()
 
virtual bool IsJammerSE ()
 
virtual bool IsCynoGeneratorSE ()
 
virtual bool IsMoonMiner ()
 
virtual bool IsOutpostSE ()
 
virtual bool IsJumpBridgeSE ()
 
virtual bool IsTowerSE ()
 
virtual bool IsArraySE ()
 
virtual bool IsBatterySE ()
 
virtual bool IsWeaponSE ()
 
virtual bool IsReactorSE ()
 
virtual void MissileLaunched (Missile *pMissile)
 
virtual void Reinforced ()
 
uint8 GetState () const
 
int8 GetProcState ()
 
float GetStatus ()
 
MoonSEGetMoonSE ()
 
PlanetSEGetPlanetSE ()
 
StargateSEGetGateSE ()
 
void SetPOSState (uint8 state)
 
void SetTimer (uint32 time)
 
int8 CanUse ()
 
int8 CanView ()
 
int8 CanTake ()
 
void SetPlanet (uint32 planetID)
 
uint32 GetPlanetID ()
 
void UpdateTimeStamp ()
 
void UpdateUsageFlags ()
 
bool IsReinforced ()
 
 StructureSE (StructureItemRef structure, PyServiceMgr &services, SystemManager *system, const FactionData &data)
 
virtual void EncodeDestiny (Buffer &into)
 
virtual PyDictMakeSlimItem ()
 
virtual void Killed (Damage &fatal_blow)
 
virtual void InitData ()
 
virtual void Scoop ()
 
virtual void SetInvulnerable ()
 
virtual void SetVulnerable ()
 
virtual void Online ()
 
virtual void SetOperating ()
 
virtual void Operating ()
 
void Drop (SystemBubble *pBubble)
 
void Anchor ()
 
void Offline ()
 
void PullAnchor ()
 
void SetAnchor (Client *pClient, GPoint &pos)
 
void Activate (int32 effectID)
 
void Deactivate (int32 effectID)
 
void GetEffectState (PyList &into)
 
void SetUsageFlags (int8 view=0, int8 take=0, int8 use=0)
 
void SendSlimUpdate ()
 
- Public Member Functions inherited from DynamicSystemEntity
 DynamicSystemEntity (InventoryItemRef self, PyServiceMgr &services, SystemManager *system)
 
virtual ~DynamicSystemEntity ()
 
virtual DynamicSystemEntityGetDynamicSE ()
 
virtual bool IsDynamicEntity ()
 
virtual void UpdateDamage ()
 
virtual void MakeDamageState (DoDestinyDamageState &into)
 
virtual bool Load ()
 
virtual bool IsInvul ()
 
virtual bool IsFrozen ()
 
void AwardBounty (Client *pClient)
 
void SetInvul (bool invul=false)
 
void SetFrozen (bool frozen=false)
 
- Public Member Functions inherited from SystemEntity
 SystemEntity (InventoryItemRef self, PyServiceMgr &services, SystemManager *system)
 
virtual ~SystemEntity ()
 
virtual bool ProcessTic ()
 
virtual SystemEntityGetSE ()
 
virtual StaticSystemEntityGetStaticSE ()
 
virtual StationSEGetStationSE ()
 
virtual BeltSEGetBeltSE ()
 
virtual ItemSystemEntityGetItemSE ()
 
virtual ContainerSEGetContSE ()
 
virtual WreckSEGetWreckSE ()
 
virtual AnomalySEGetAnomalySE ()
 
virtual WormholeSEGetWormholeSE ()
 
virtual FieldSEGetFieldSE ()
 
virtual ProbeSEGetProbeSE ()
 
virtual ObjectSystemEntityGetObjectSE ()
 
virtual AsteroidSEGetAsteroidSE ()
 
virtual StructureSEGetJammerSE ()
 
virtual DeployableSEGetDeployableSE ()
 
virtual SentryGetSentrySE ()
 
virtual ModuleSEGetModuleSE ()
 
virtual CustomsSEGetCOSE ()
 
virtual NPCGetNPCSE ()
 
virtual DroneSEGetDroneSE ()
 
virtual MissileGetMissileSE ()
 
virtual ShipSEGetShipSE ()
 
virtual ConcordGetConcordSE ()
 
virtual bool IsSystemEntity ()
 
virtual bool IsInanimateSE ()
 
virtual bool IsStaticEntity ()
 
virtual bool IsBeltSE ()
 
virtual bool IsGateSE ()
 
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 IsCOSE ()
 
virtual bool IsModuleSE ()
 
virtual bool IsAsteroidSE ()
 
virtual bool IsDeployableSE ()
 
virtual bool IsLogin ()
 
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 bool LoadExtras ()
 
virtual void Delete ()
 
virtual void SetPilot (Client *pClient)
 
virtual bool HasPilot ()
 
virtual ClientGetPilot ()
 

Additional Inherited Members

- Protected Member Functions inherited from StructureSE
void SendEffectUpdate (int16 effectID, bool active)
 
- Protected Attributes inherited from StructureSE
PosMgrDB m_db
 
MoonSEm_moonSE
 
PlanetSEm_planetSE
 
TowerSEm_towerSE
 
TCUSEm_tcuSE
 
SBUSEm_sbuSE
 
IHubSEm_ihubSE
 
JumpBridgeSEm_bridgeSE
 
StargateSEm_gateSE
 
EVEPOS::StructureData m_data
 
int8 m_procState
 
uint32 m_delayTime
 
GVector m_rotation
 
uint32 m_anchorPointID
 
- 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 15 of file IHub.h.

Constructor & Destructor Documentation

IHubSE::IHubSE ( StructureItemRef  structure,
PyServiceMgr services,
SystemManager system,
const FactionData fData 
)

Definition at line 33 of file IHub.cpp.

34 : StructureSE(structure, services, system, fData)
35 {
36 }
StructureSE(StructureItemRef structure, PyServiceMgr &services, SystemManager *system, const FactionData &data)
Definition: Structure.cpp:193
virtual IHubSE::~IHubSE ( )
inlinevirtual

Definition at line 20 of file IHub.h.

20 { /* do nothing here */ }

Member Function Documentation

virtual IHubSE* IHubSE::GetIHubSE ( )
inlinevirtual

Reimplemented from StructureSE.

Definition at line 23 of file IHub.h.

23 { return this; }
void IHubSE::Init ( )
virtual

Reimplemented from StructureSE.

Definition at line 39 of file IHub.cpp.

References _log, AttrIsGlobal, EvilOne, StructureSE::Init(), InventoryItem::itemID(), SystemEntity::m_bubble, SystemEntity::m_self, InventoryItem::name(), InventoryItem::SetAttribute(), and SystemBubble::SetIHubSE().

40 {
41  _log(SE__TRACE, "IHubSE %s(%u) is being initialised", m_self->name(), m_self->itemID());
43 
44  // check for valid bubble
45  if (m_bubble == nullptr)
46  assert(0);
47  m_bubble->SetIHubSE(this);
48 
49  // set global attribute
51 }
#define _log(type, fmt,...)
Definition: logsys.h:124
void SetIHubSE(IHubSE *pIHub)
Definition: SystemBubble.h:156
SystemBubble * m_bubble
Definition: SystemEntity.h:262
const char * name()
InventoryItemRef m_self
Definition: SystemEntity.h:269
void SetAttribute(uint16 attrID, int num, bool notify=true)
EvilNumber EvilOne
Definition: EvilNumber.cpp:34
virtual void Init()
Definition: Structure.cpp:275
uint32 itemID() const
Definition: InventoryItem.h:98

Here is the call graph for this function:

virtual bool IHubSE::isGlobal ( )
inlinevirtual

Reimplemented from SystemEntity.

Definition at line 24 of file IHub.h.

24 { return true; }
virtual bool IHubSE::IsIHubSE ( )
inlinevirtual

Reimplemented from StructureSE.

Definition at line 28 of file IHub.h.

28 { return true; }
virtual bool IHubSE::IsOperSE ( )
inlinevirtual

Reimplemented from SystemEntity.

Definition at line 25 of file IHub.h.

25 { return true; }
void IHubSE::Process ( )
virtual

Reimplemented from StructureSE.

Definition at line 53 of file IHub.cpp.

References StructureSE::Process().

54 {
56 }
virtual void Process()
Definition: Structure.cpp:458

Here is the call graph for this function:

void IHubSE::SetOffline ( )
virtual

Reimplemented from StructureSE.

Definition at line 65 of file IHub.cpp.

References _log, InventoryItem::locationID(), SystemEntity::m_self, StructureSE::SetOffline(), and svDataMgr.

66 {
67  _log(SOV__DEBUG, "Offlining IHub... Resetting claim's hubID.");
68  svDataMgr.UpdateSystemHubID(m_self->locationID(), 0);
70 }
#define _log(type, fmt,...)
Definition: logsys.h:124
InventoryItemRef m_self
Definition: SystemEntity.h:269
uint32 locationID() const
virtual void SetOffline()
Definition: Structure.cpp:888
#define svDataMgr

Here is the call graph for this function:

void IHubSE::SetOnline ( )
virtual

Reimplemented from StructureSE.

Definition at line 58 of file IHub.cpp.

References _log, InventoryItem::itemID(), InventoryItem::locationID(), SystemEntity::m_self, StructureSE::SetOnline(), and svDataMgr.

59 {
60  _log(SOV__DEBUG, "Onlining IHub... Updating claim'd hubID.");
62  svDataMgr.UpdateSystemHubID(m_self->locationID(), m_self->itemID());
63 }
#define _log(type, fmt,...)
Definition: logsys.h:124
virtual void SetOnline()
Definition: Structure.cpp:869
InventoryItemRef m_self
Definition: SystemEntity.h:269
uint32 locationID() const
#define svDataMgr
uint32 itemID() const
Definition: InventoryItem.h:98

Here is the call graph for this function:


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