EvEmu
0.8.4
11 September 2021
|
#include "CustomsOffice.h"
Private Attributes | |
PosMgrDB | m_db |
EVEPOS::CustomsData | m_cData |
EVEPOS::OrbitalData | m_oData |
SystemManager * | m_system |
PlanetSE * | m_planetSE |
CustomsOffice.h | |
: Allan
| |
CustomsSE (StructureItemRef sRef, PyServiceMgr &services, SystemManager *system, const FactionData &data) | |
virtual void | Process () |
virtual void | EncodeDestiny (Buffer &into) |
virtual PyDict * | MakeSlimItem () |
virtual void | Killed (Damage &fatal_blow) |
virtual void | InitData () |
virtual void | Init () |
void | SetAnchor (Client *pClient, GPoint &pos) |
void | PullAnchor () |
void | GetEffectState (PyList &into) |
float | GetTaxRate (Client *pClient) |
PyRep * | GetSettingsInfo () |
void | UpdateSettings (int8 selectedHour, int8 standingValue, bool ally, bool standings, Call_TaxRateValuesDict &taxRateValues) |
void | VerifyAddItem (InventoryItemRef iRef) |
void | SendSlimUpdate () |
void | SendEffectUpdate (int16 effectID, bool active) |
Additional Inherited Members | |
![]() | |
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 |
Definition at line 23 of file CustomsOffice.h.
CustomsSE::CustomsSE | ( | StructureItemRef | sRef, |
PyServiceMgr & | services, | ||
SystemManager * | system, | ||
const FactionData & | data | ||
) |
Definition at line 38 of file CustomsOffice.cpp.
References _log, FactionData::allianceID, FactionData::corporationID, InventoryItem::customInfo(), FactionData::factionID, SystemManager::GetPlanet(), SystemEntity::GetPlanetSE(), SystemEntity::m_allyID, m_cData, SystemEntity::m_corpID, m_oData, SystemEntity::m_ownerID, m_planetSE, SystemEntity::m_self, m_system, SystemEntity::m_warID, FactionData::ownerID, and EVEPOS::OrbitalData::planetID.
|
inlinevirtual |
Definition at line 28 of file CustomsOffice.h.
|
virtual |
Reimplemented from ObjectSystemEntity.
Definition at line 350 of file CustomsOffice.cpp.
References _log, Buffer::Append(), Destiny::BallHeader::entityID, Destiny::BallHeader::flags, Destiny::RIGID_Struct::formationID, SystemEntity::GetName(), SystemEntity::GetRadius(), Destiny::Ball::Flag::IsGlobal, EVEPOS::CustomsData::itemID, m_cData, main(), Destiny::BallHeader::mode, Destiny::BallHeader::posX, Destiny::BallHeader::posY, Destiny::BallHeader::posZ, Destiny::BallHeader::radius, Destiny::Ball::Mode::RIGID, SystemEntity::x(), SystemEntity::y(), and SystemEntity::z().
|
inlinevirtual |
void CustomsSE::GetEffectState | ( | PyList & | into | ) |
Definition at line 237 of file CustomsOffice.cpp.
|
inline |
Definition at line 63 of file CustomsOffice.h.
References m_oData, and EVEPOS::OrbitalData::planetID.
|
inlinevirtual |
Reimplemented from SystemEntity.
Definition at line 54 of file CustomsOffice.h.
References m_planetSE.
PyRep * CustomsSE::GetSettingsInfo | ( | ) |
Definition at line 174 of file CustomsOffice.cpp.
References EVEPOS::TaxValues::Alliance, EVEPOS::CustomsData::allowAlliance, EVEPOS::CustomsData::allowStandings, EVEPOS::TaxValues::Corp, m_cData, EVEPOS::CustomsData::selectedHour, PyTuple::SetItem(), PyDict::SetItemString(), EVEPOS::TaxValues::StandingBad, EVEPOS::TaxValues::StandingGood, EVEPOS::TaxValues::StandingHigh, EVEPOS::TaxValues::StandingHorrible, EVEPOS::TaxValues::StandingNeutral, EVEPOS::CustomsData::standingValue, and EVEPOS::CustomsData::taxRateValues.
|
inline |
|
inline |
|
inline |
float CustomsSE::GetTaxRate | ( | Client * | pClient | ) |
Definition at line 222 of file CustomsOffice.cpp.
References EVEPOS::TaxValues::Corp, m_cData, and EVEPOS::CustomsData::taxRateValues.
|
virtual |
Definition at line 59 of file CustomsOffice.cpp.
References _log, AttrIsGlobal, EvilOne, flagStructureActive, PosMgrDB::GetCustomsData(), InitData(), EVEPOS::CustomsData::itemID, InventoryItem::itemID(), m_cData, m_db, m_oData, SystemEntity::m_self, InventoryItem::name(), PosMgrDB::SaveCustomsData(), InventoryItem::SetAttribute(), and InventoryItem::SetFlag().
Referenced by DynamicEntityFactory::BuildEntity(), and PlanetSE::CreateCustomsOffice().
|
virtual |
Definition at line 77 of file CustomsOffice.cpp.
References _log, EVEPOS::TaxValues::Alliance, EVEPOS::CustomsData::allowAlliance, EVEPOS::CustomsData::allowStandings, EVEPOS::EntityState::Anchored, EVEPOS::TaxValues::Corp, SystemEntity::GetPosition(), EVEPOS::OrbitalData::level, m_cData, m_oData, m_planetSE, SystemEntity::m_self, EVEPOS::StructureState::Online, EVEPOS::CustomsData::ownerID, InventoryItem::ownerID(), InventoryItem::position(), EvE::Trig::Rad2Deg(), EVEPOS::OrbitalData::rotation, EVEPOS::CustomsData::selectedHour, EVEPOS::TaxValues::StandingBad, EVEPOS::TaxValues::StandingGood, EVEPOS::TaxValues::StandingHigh, EVEPOS::TaxValues::StandingHorrible, EVEPOS::TaxValues::StandingNeutral, EVEPOS::StandingValues::StandingNeutral, EVEPOS::OrbitalData::standingOwnerID, EVEPOS::CustomsData::standingValue, EVEPOS::CustomsData::state, EVEPOS::CustomsData::status, EVEPOS::CustomsData::taxRateValues, EVEPOS::CustomsData::timestamp, Ga::GaVec3::x, SystemEntity::x(), Ga::GaVec3::y, SystemEntity::y(), Ga::GaVec3::z, and SystemEntity::z().
Referenced by Init().
|
inlinevirtual |
|
inline |
Definition at line 59 of file CustomsOffice.h.
|
virtual |
Reimplemented from ObjectSystemEntity.
Definition at line 430 of file CustomsOffice.cpp.
References _log, MapDB::AddFactionKill(), MapDB::AddKill(), DBSystemDynamicEntity::allianceID, AttrArmorHP, AttrHP, AttrShieldCapacity, SystemEntity::AwardSecurityStatus(), EVEDB::invCategories::Blueprint, SystemManager::BuildDynamicEntity(), DBSystemDynamicEntity::categoryID, EVEDB::invCategories::Celestial, DBSystemDynamicEntity::corporationID, SystemEntity::DropLoot(), DBSystemDynamicEntity::factionID, CharKillData::finalAllianceID, CharKillData::finalCharacterID, CharKillData::finalCorporationID, CharKillData::finalDamageDone, CharKillData::finalFactionID, CharKillData::finalSecurityStatus, CharKillData::finalShipTypeID, CharKillData::finalWeaponTypeID, flagNone, RefPtr< X >::get(), EvilNumber::get_int(), SystemEntity::GetAllianceID(), InventoryItem::GetAttribute(), Client::GetChar(), Client::GetCharacterID(), SystemEntity::GetCorporationID(), GetFileTimeNow(), SystemManager::GetID(), SystemEntity::GetID(), Inventory::GetInventoryMap(), SystemEntity::GetLocationID(), InventoryItem::GetMyInventory(), SystemEntity::GetName(), SystemEntity::GetPilot(), DestinyManager::GetPosition(), SystemEntity::GetSelf(), SystemManager::GetSystemSecurityRating(), Damage::GetTotal(), SystemEntity::GetTypeID(), SystemEntity::GetWarFactionID(), InventoryItem::groupID(), DBSystemDynamicEntity::groupID, SystemEntity::HasPilot(), is_log_enabled, SystemEntity::IsDroneSE(), IsEven(), InventoryItem::itemID(), DBSystemDynamicEntity::itemID, InventoryItem::itemName(), DBSystemDynamicEntity::itemName, itoa(), CharKillData::killBlob, CharKillData::killTime, SystemEntity::m_allyID, SystemEntity::m_bubble, SystemEntity::m_corpID, SystemEntity::m_destiny, m_oData, SystemEntity::m_self, m_system, SystemEntity::m_warID, MakeRandomInt(), CharKillData::moonID, InventoryItem::ownerID(), DBSystemDynamicEntity::ownerID, EVEPOS::OrbitalData::planetID, DBSystemDynamicEntity::position, ServiceDB::SaveKillOrLoss(), DestinyManager::SendJettisonPacket(), sEntityList, sItemFactory, sLog, CharKillData::solarSystemID, Damage::srcSE, RefPtr< X >::StaticCast(), InventoryItem::typeID(), DBSystemDynamicEntity::typeID, CharKillData::victimAllianceID, CharKillData::victimCharacterID, CharKillData::victimCorporationID, CharKillData::victimDamageTaken, CharKillData::victimFactionID, CharKillData::victimShipTypeID, Damage::weaponRef, EVEDB::invGroups::Wreck, Ga::GaVec3::x, SystemEntity::x(), Ga::GaVec3::y, SystemEntity::y(), Ga::GaVec3::z, and SystemEntity::z().
|
virtual |
Reimplemented from ObjectSystemEntity.
Definition at line 397 of file CustomsOffice.cpp.
References _log, PyRep::Dump(), SystemEntity::GetName(), is_log_enabled, IsAlliance, IsCorp, IsFaction, EVEPOS::CustomsData::itemID, InventoryItem::itemName(), EVEPOS::OrbitalData::level, SystemEntity::m_allyID, m_cData, SystemEntity::m_corpID, m_oData, SystemEntity::m_ownerID, SystemEntity::m_self, SystemEntity::m_warID, EVEPOS::OrbitalData::orbitalHackerID, EVEPOS::OrbitalData::orbitalHackerProgress, EVEPOS::OrbitalData::planetID, PyStatic, EVEPOS::OrbitalData::rotation, PyTuple::SetItem(), PyDict::SetItemString(), EVEPOS::CustomsData::state, EVEPOS::CustomsData::timestamp, InventoryItem::typeID(), Ga::GaVec3::x, Ga::GaVec3::y, and Ga::GaVec3::z.
|
inlinevirtual |
Reimplemented from SystemEntity.
Definition at line 49 of file CustomsOffice.h.
|
virtual |
Reimplemented from SystemEntity.
Definition at line 168 of file CustomsOffice.cpp.
References SystemEntity::Process().
void CustomsSE::PullAnchor | ( | ) |
Definition at line 333 of file CustomsOffice.cpp.
References EVEPOS::StructureState::Anchored, GetFileTimeNow(), EVEPOS::CustomsData::itemID, m_cData, SystemEntity::m_destiny, SystemEntity::m_self, SendSlimUpdate(), DestinyManager::SendSpecialEffect(), EVEPOS::CustomsData::state, EVEPOS::CustomsData::status, EVEPOS::CustomsData::timestamp, InventoryItem::typeID(), EVEPOS::StructureState::Unanchored, and EVEPOS::EntityState::Unanchoring.
|
inline |
Definition at line 55 of file CustomsOffice.h.
|
protected |
Definition at line 242 of file CustomsOffice.cpp.
References PyList::AddItem(), GetFileTimeNow(), EVEPOS::CustomsData::itemID, m_cData, SystemEntity::m_destiny, SystemEntity::m_ownerID, PyStatic, and DestinyManager::SendSingleDestinyEvent().
|
protected |
Definition at line 270 of file CustomsOffice.cpp.
References IsAlliance, IsCorp, IsFaction, EVEPOS::CustomsData::itemID, InventoryItem::itemName(), SystemEntity::m_allyID, m_cData, SystemEntity::m_corpID, SystemEntity::m_destiny, SystemEntity::m_ownerID, SystemEntity::m_self, SystemEntity::m_warID, PyStatic, DestinyManager::SendSingleDestinyUpdate(), PyTuple::SetItem(), PyDict::SetItemString(), EVEPOS::CustomsData::state, EVEPOS::CustomsData::timestamp, and InventoryItem::typeID().
Referenced by PullAnchor(), and SetAnchor().
Definition at line 294 of file CustomsOffice.cpp.
References _log, EVEPOS::StructureState::Anchored, EVEPOS::EntityState::Anchoring, GetFileTimeNow(), SystemEntity::GetName(), is_log_enabled, EVEPOS::CustomsData::itemID, InventoryItem::itemID(), m_cData, SystemEntity::m_destiny, SystemEntity::m_self, InventoryItem::name(), InventoryItem::radius(), InventoryItem::SaveItem(), sBubbleMgr, DestinyManager::SendDestinyUpdate(), Client::SendErrorMsg(), SendSlimUpdate(), DestinyManager::SendSpecialEffect(), DestinyManager::SetPosition(), EVEPOS::CustomsData::state, EVEPOS::CustomsData::status, EVEPOS::CustomsData::timestamp, InventoryItem::typeID(), EVEPOS::StructureState::Unanchored, Ga::GaVec3::x, Ga::GaVec3::y, and Ga::GaVec3::z.
|
inline |
Definition at line 62 of file CustomsOffice.h.
References m_oData, and EVEPOS::OrbitalData::planetID.
Referenced by DynamicEntityFactory::BuildEntity().
void CustomsSE::UpdateSettings | ( | int8 | selectedHour, |
int8 | standingValue, | ||
bool | ally, | ||
bool | standings, | ||
Call_TaxRateValuesDict & | taxRateValues | ||
) |
Definition at line 202 of file CustomsOffice.cpp.
References Calendar::Flag::Alliance, EVEPOS::CustomsData::allowAlliance, EVEPOS::CustomsData::allowStandings, Calendar::Flag::Corp, m_cData, m_db, m_oData, EVEPOS::CustomsData::selectedHour, EVEPOS::TaxValues::StandingBad, EVEPOS::TaxValues::StandingGood, EVEPOS::TaxValues::StandingHigh, EVEPOS::TaxValues::StandingHorrible, EVEPOS::TaxValues::StandingNeutral, EVEPOS::CustomsData::standingValue, EVEPOS::CustomsData::taxRateValues, and PosMgrDB::UpdateCustomsData().
void CustomsSE::VerifyAddItem | ( | InventoryItemRef | iRef | ) |
Definition at line 229 of file CustomsOffice.cpp.
References InventoryItem::categoryID(), SystemEntity::m_self, InventoryItem::name(), EVEDB::invCategories::PlanetaryCommodities, and EVEDB::invCategories::PlanetaryResources.
Referenced by StructureItem::AddItem().
|
private |
Definition at line 80 of file CustomsOffice.h.
Referenced by CustomsSE(), EncodeDestiny(), GetSettingsInfo(), GetState(), GetStatus(), GetTaxRate(), Init(), InitData(), MakeSlimItem(), PullAnchor(), SendEffectUpdate(), SendSlimUpdate(), SetAnchor(), and UpdateSettings().
|
private |
Definition at line 78 of file CustomsOffice.h.
Referenced by Init(), and UpdateSettings().
|
private |
Definition at line 81 of file CustomsOffice.h.
Referenced by CustomsSE(), GetPlanetID(), Init(), InitData(), Killed(), MakeSlimItem(), SetPlanet(), and UpdateSettings().
|
private |
Definition at line 84 of file CustomsOffice.h.
Referenced by CustomsSE(), GetPlanetSE(), and InitData().
|
private |
Definition at line 83 of file CustomsOffice.h.
Referenced by CustomsSE(), and Killed().