EvEmu
0.8.4
11 September 2021
|
#include "Sentry.h"
Public Member Functions | |
virtual Sentry * | GetSentrySE () |
virtual bool | IsSentrySE () |
float | GetThermal () |
float | GetEM () |
float | GetKinetic () |
float | GetExplosive () |
SentryAI * | GetAIMgr () |
Sentry.cpp | |
Sentry class : Allan
| |
Sentry (InventoryItemRef self, PyServiceMgr &services, SystemManager *system, const FactionData &data) | |
virtual | ~Sentry () |
virtual void | Process () |
virtual void | TargetLost (SystemEntity *who) |
virtual void | TargetedAdd (SystemEntity *who) |
virtual void | EncodeDestiny (Buffer &into) |
virtual void | Killed (Damage &fatal_blow) |
void | SaveSentry () |
void | RemoveSentry () |
void | SetResists () |
![]() | |
ObjectSystemEntity (InventoryItemRef self, PyServiceMgr &services, SystemManager *system) | |
virtual | ~ObjectSystemEntity () |
virtual ObjectSystemEntity * | GetObjectSE () |
virtual bool | IsInanimateSE () |
virtual bool | IsObjectEntity () |
virtual void | UpdateDamage () |
virtual void | MakeDamageState (DoDestinyDamageState &into) |
virtual PyDict * | MakeSlimItem () |
virtual bool | IsInvul () |
void | SetInvul (bool invul=false) |
![]() | |
SystemEntity (InventoryItemRef self, PyServiceMgr &services, SystemManager *system) | |
virtual | ~SystemEntity () |
virtual bool | ProcessTic () |
virtual SystemEntity * | GetSE () |
virtual StaticSystemEntity * | GetStaticSE () |
virtual StationSE * | GetStationSE () |
virtual PlanetSE * | GetPlanetSE () |
virtual MoonSE * | GetMoonSE () |
virtual StargateSE * | GetGateSE () |
virtual BeltSE * | GetBeltSE () |
virtual ItemSystemEntity * | GetItemSE () |
virtual ContainerSE * | GetContSE () |
virtual WreckSE * | GetWreckSE () |
virtual AnomalySE * | GetAnomalySE () |
virtual WormholeSE * | GetWormholeSE () |
virtual FieldSE * | GetFieldSE () |
virtual ProbeSE * | GetProbeSE () |
virtual AsteroidSE * | GetAsteroidSE () |
virtual StructureSE * | GetPOSSE () |
virtual StructureSE * | GetJammerSE () |
virtual JumpBridgeSE * | GetJumpBridgeSE () |
virtual StructureSE * | GetOutpostSE () |
virtual TowerSE * | GetTowerSE () |
virtual ArraySE * | GetArraySE () |
virtual WeaponSE * | GetWeaponSE () |
virtual BatterySE * | GetBatterySE () |
virtual DeployableSE * | GetDeployableSE () |
virtual ModuleSE * | GetModuleSE () |
virtual ReactorSE * | GetReactorSE () |
virtual CustomsSE * | GetCOSE () |
virtual TCUSE * | GetTCUSE () |
virtual SBUSE * | GetSBUSE () |
virtual IHubSE * | GetIHubSE () |
virtual DynamicSystemEntity * | GetDynamicSE () |
virtual NPC * | GetNPCSE () |
virtual DroneSE * | GetDroneSE () |
virtual Missile * | GetMissileSE () |
virtual ShipSE * | GetShipSE () |
virtual Concord * | GetConcordSE () |
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 | IsItemEntity () |
virtual bool | IsAnomalySE () |
virtual bool | IsWormholeSE () |
virtual bool | IsCelestialSE () |
virtual bool | IsContainerSE () |
virtual bool | IsFieldSE () |
virtual bool | IsProbeSE () |
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 | IsFrozen () |
virtual bool | IsNPCSE () |
virtual bool | IsDroneSE () |
virtual bool | IsWreckSE () |
virtual bool | IsMissileSE () |
virtual bool | IsShipSE () |
virtual bool | IsConcord () |
PyServiceMgr & | GetServices () |
SystemBubble * | SysBubble () |
SystemManager * | SystemMgr () |
TargetManager * | TargetMgr () |
DestinyManager * | DestinyMgr () |
InventoryItemRef | GetSelf () |
uint16 | GetTypeID () |
uint32 | GetGroupID () |
uint8 | GetCategoryID () |
EVEItemFlags | GetFlag () |
uint32 | GetID () |
double | GetRadius () |
uint32 | GetLocationID () |
const char * | GetName () const |
const GPoint & | GetPosition () 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) |
PyTuple * | MakeDamageState () |
virtual void | Abandon () |
const bool | IsDead () |
const GVector & | GetVelocity () |
virtual void | MissileLaunched (Missile *pMissile) |
virtual bool | LoadExtras () |
virtual void | Delete () |
virtual void | SetPilot (Client *pClient) |
virtual bool | HasPilot () |
virtual Client * | GetPilot () |
Protected Attributes | |
SentryAI * | m_AI |
![]() | |
SystemBubble * | m_bubble |
SystemManager * | m_system |
TargetManager * | m_targMgr |
DestinyManager * | m_destiny |
PyServiceMgr & | m_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 |
Private Attributes | |
float | m_emDamage = 0 |
float | m_expDamage = 0 |
float | m_kinDamage = 0 |
float | m_therDamage = 0 |
float | m_hullDamage = 0 |
float | m_armorDamage = 0 |
float | m_shieldCharge = 0 |
float | m_shieldCapacity = 0 |
Sentry::Sentry | ( | InventoryItemRef | self, |
PyServiceMgr & | services, | ||
SystemManager * | system, | ||
const FactionData & | data | ||
) |
Definition at line 24 of file Sentry.cpp.
References FactionData::allianceID, AttrArmorDamage, AttrCapacitorCapacity, AttrCapacitorCharge, AttrCapacity, AttrDamage, AttrEmDamage, AttrExplosiveDamage, AttrInertia, AttrKineticDamage, AttrMass, AttrRadius, AttrShieldCapacity, AttrShieldCharge, AttrThermalDamage, AttrVolume, ItemType::capacity(), FactionData::corporationID, EvilOne, EvilZero, FactionData::factionID, EvilNumber::get_float(), InventoryItem::GetAttribute(), m_AI, SystemEntity::m_allyID, m_armorDamage, SystemEntity::m_corpID, m_emDamage, m_expDamage, m_hullDamage, m_kinDamage, SystemEntity::m_ownerID, SystemEntity::m_self, m_shieldCapacity, m_shieldCharge, m_therDamage, SystemEntity::m_warID, ItemType::mass(), FactionData::ownerID, ItemType::radius(), InventoryItem::SetAttribute(), SetResists(), InventoryItem::type(), and ItemType::volume().
|
virtual |
Definition at line 59 of file Sentry.cpp.
References m_AI, SystemEntity::m_destiny, and SafeDelete().
|
virtual |
Reimplemented from ObjectSystemEntity.
Definition at line 85 of file Sentry.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::GetID(), SystemEntity::GetName(), SystemEntity::GetRadius(), Destiny::MassSector::harmonic, IsAlliance, Destiny::Ball::Flag::IsMassive, SystemEntity::m_allyID, SystemEntity::m_corpID, SystemEntity::m_harmonic, SystemEntity::m_self, main(), ItemType::mass(), Destiny::MassSector::mass, Destiny::BallHeader::mode, Destiny::BallHeader::posX, Destiny::BallHeader::posY, Destiny::BallHeader::posZ, Destiny::BallHeader::radius, Destiny::Ball::Mode::STOP, InventoryItem::type(), SystemEntity::x(), SystemEntity::y(), and SystemEntity::z().
|
inline |
Definition at line 47 of file Sentry.h.
References m_emDamage.
Referenced by SentryAI::AttackTarget().
|
inline |
Definition at line 49 of file Sentry.h.
References m_expDamage.
Referenced by SentryAI::AttackTarget().
|
inline |
Definition at line 48 of file Sentry.h.
References m_kinDamage.
Referenced by SentryAI::AttackTarget().
|
inlinevirtual |
|
inline |
Definition at line 46 of file Sentry.h.
References m_therDamage.
Referenced by SentryAI::AttackTarget().
|
inlinevirtual |
|
virtual |
Reimplemented from ObjectSystemEntity.
Definition at line 139 of file Sentry.cpp.
References _log, MapDB::AddFactionKill(), MapDB::AddKill(), DBSystemDynamicEntity::allianceID, SystemEntity::AwardSecurityStatus(), SystemManager::BuildDynamicEntity(), DBSystemDynamicEntity::categoryID, EVEDB::invCategories::Celestial, DBSystemDynamicEntity::corporationID, SystemEntity::DropLoot(), DBSystemDynamicEntity::factionID, flagNone, RefPtr< X >::get(), SystemEntity::GetAllianceID(), Client::GetChar(), Client::GetCharacterID(), SystemEntity::GetCorporationID(), SystemEntity::GetID(), SystemEntity::GetLocationID(), SystemEntity::GetName(), SystemEntity::GetPilot(), DestinyManager::GetPosition(), SystemEntity::GetSelf(), SystemManager::GetSystemSecurityRating(), InventoryItem::groupID(), DBSystemDynamicEntity::groupID, SystemEntity::HasPilot(), is_log_enabled, SystemEntity::IsDroneSE(), Ga::GaVec3::isNaN(), IsWreckTypeID, InventoryItem::itemID(), DBSystemDynamicEntity::itemID, InventoryItem::itemName(), DBSystemDynamicEntity::itemName, itoa(), SystemEntity::m_allyID, SystemEntity::m_bubble, SystemEntity::m_destiny, SystemEntity::m_self, SystemEntity::m_system, SystemEntity::m_warID, MakeRandomFloat(), InventoryItem::name(), InventoryItem::ownerID(), DBSystemDynamicEntity::ownerID, DBSystemDynamicEntity::position, sConfig, sDataMgr, DestinyManager::SendJettisonPacket(), sEntityList, sItemFactory, sLog, Damage::srcSE, InventoryItem::typeID(), DBSystemDynamicEntity::typeID, EVEDB::invGroups::Wreck, Ga::GaVec3::x, SystemEntity::x(), Ga::GaVec3::y, SystemEntity::y(), Ga::GaVec3::z, and SystemEntity::z().
|
virtual |
Reimplemented from SystemEntity.
Definition at line 64 of file Sentry.cpp.
References GetTimeUSeconds(), m_AI, SystemEntity::m_killed, Profile::npc, SentryAI::Process(), SystemEntity::Process(), sConfig, and sProfiler.
void Sentry::RemoveSentry | ( | ) |
Definition at line 117 of file Sentry.cpp.
References InventoryItem::Delete(), and SystemEntity::m_self.
void Sentry::SaveSentry | ( | ) |
Definition at line 112 of file Sentry.cpp.
References SystemEntity::m_self, and InventoryItem::SaveItem().
void Sentry::SetResists | ( | ) |
Definition at line 123 of file Sentry.cpp.
References AttrArmorEmDamageResonance, AttrArmorExplosiveDamageResonance, AttrArmorKineticDamageResonance, AttrArmorThermalDamageResonance, AttrEmDamageResonance, AttrExplosiveDamageResonance, AttrKineticDamageResonance, AttrShieldEmDamageResonance, AttrShieldExplosiveDamageResonance, AttrShieldKineticDamageResonance, AttrShieldThermalDamageResonance, AttrThermalDamageResonance, EvilOne, InventoryItem::HasAttribute(), SystemEntity::m_self, and InventoryItem::SetAttribute().
Referenced by Sentry().
|
virtual |
Definition at line 81 of file Sentry.cpp.
References m_AI, and SentryAI::Targeted().
|
virtual |
Definition at line 77 of file Sentry.cpp.
References m_AI, and SentryAI::TargetLost().
|
protected |
Definition at line 54 of file Sentry.h.
Referenced by GetAIMgr(), Process(), Sentry(), TargetedAdd(), TargetLost(), and ~Sentry().
|
private |
|
private |
|
private |
Definition at line 58 of file Sentry.h.
Referenced by GetExplosive(), and Sentry().
|
private |
|
private |
Definition at line 59 of file Sentry.h.
Referenced by GetKinetic(), and Sentry().
|
private |
|
private |
|
private |
Definition at line 60 of file Sentry.h.
Referenced by GetThermal(), and Sentry().