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

#include "Celestial.h"

Inheritance diagram for AnomalySE:
Collaboration diagram for AnomalySE:

Public Member Functions

 AnomalySE (CelestialObjectRef self, PyServiceMgr &services, SystemManager *system)
 
virtual ~AnomalySE ()
 
virtual AnomalySEGetAnomalySE ()
 
virtual bool IsAnomalySE ()
 
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 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 isGlobal ()
 
virtual bool IsSystemEntity ()
 
virtual bool IsStaticEntity ()
 
virtual bool IsBeltSE ()
 
virtual bool IsGateSE ()
 
virtual bool IsPlanetSE ()
 
virtual bool IsMoonSE ()
 
virtual bool IsStationSE ()
 
virtual bool IsWormholeSE ()
 
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 ()
 

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

Constructor & Destructor Documentation

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

Definition at line 121 of file Celestial.cpp.

122 : CelestialSE(self, services, system)
123 {
124 
125 }
CelestialSE(InventoryItemRef self, PyServiceMgr &services, SystemManager *system)
Definition: Celestial.cpp:95
virtual AnomalySE::~AnomalySE ( )
inlinevirtual

Definition at line 131 of file Celestial.h.

131 { /* Do nothing here */ }

Member Function Documentation

void AnomalySE::EncodeDestiny ( Buffer into)
virtual

Reimplemented from ItemSystemEntity.

Definition at line 127 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().

128 {
129  using namespace Destiny;
130  BallHeader head = BallHeader();
131  head.entityID = m_self->itemID();
132  head.mode = Ball::Mode::STOP;
133  head.radius = m_radius;
134  head.posX = x();
135  head.posY = y();
136  head.posZ = z();
137  head.flags = 0;
138  into.Append( head );
139  MassSector mass = MassSector();
140  mass.mass = 10000000000; // as seen in packets
141  mass.cloak = 0;
142  mass.harmonic = m_harmonic;
143  mass.corporationID = -1;
144  mass.allianceID = -1;
145  into.Append( mass );
147  main.formationID = 0xFF;
148  into.Append( main );
149 
150  _log(SE__DESTINY, "AnomalySE::EncodeDestiny(): %s - id:%li, mode:%u, flags:0x%X", GetName(), head.entityID, head.mode, head.flags);
151 }
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 AnomalySE* AnomalySE::GetAnomalySE ( )
inlinevirtual

Reimplemented from SystemEntity.

Definition at line 134 of file Celestial.h.

134 { return this; }
virtual bool AnomalySE::IsAnomalySE ( )
inlinevirtual

Reimplemented from SystemEntity.

Definition at line 137 of file Celestial.h.

137 { return true; }
PyDict * AnomalySE::MakeSlimItem ( )
virtual

Reimplemented from ItemSystemEntity.

Definition at line 153 of file Celestial.cpp.

References _log, SystemEntity::GetName(), InventoryItem::itemID(), SystemEntity::m_ownerID, SystemEntity::m_self, and InventoryItem::typeID().

154 {
155  _log(SE__SLIMITEM, "MakeSlimItem for AnomalySE %s(%u)", GetName(), m_self->itemID());
156  PyDict *slim = new PyDict();
157  slim->SetItemString("itemID", new PyLong(m_self->itemID()));
158  slim->SetItemString("typeID", new PyInt(m_self->typeID()));
159  slim->SetItemString("dungeonDataID", new PyInt(0)); //? seen 2990651
160  slim->SetItemString("ownerID", new PyInt(m_ownerID));
161  return slim;
162 }
#define _log(type, fmt,...)
Definition: logsys.h:124
Python's dictionary.
Definition: PyRep.h:719
uint32 m_ownerID
Definition: SystemEntity.h:283
InventoryItemRef m_self
Definition: SystemEntity.h:269
Python integer.
Definition: PyRep.h:231
const char * GetName() const
Definition: SystemEntity.h:210
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:


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