EvEmu
0.8.4
11 September 2021
|
#include "Structure.h"
Public Member Functions | |
const ItemType & | type () const |
void | SetMySE (SystemEntity *pSE) |
SystemEntity * | GetMySE () |
![]() | |
InventoryItem (uint32 _itemID, const ItemType &_type, const ItemData &_data) | |
InventoryItem (const InventoryItem &oth) | |
InventoryItem (InventoryItem &&oth) noexcept | |
InventoryItem & | operator= (const InventoryItem &oth)=delete |
InventoryItem & | operator= (InventoryItem &&oth)=delete |
virtual | ~InventoryItem () noexcept |
virtual ShipItem * | GetShipItem () |
virtual ModuleItem * | GetModuleItem () |
virtual bool | IsShipItem () |
virtual bool | IsModuleItem () |
Inventory * | GetMyInventory () |
bool | contraband () const |
bool | isSingleton () const |
int32 | quantity () const |
uint32 | itemID () const |
uint32 | ownerID () const |
uint32 | locationID () const |
EVEItemFlags | flag () const |
const GPoint & | position () const |
const ItemType & | type () const |
const std::string & | itemName () const |
const std::string & | customInfo () const |
const char * | name () |
uint16 | typeID () const |
uint16 | groupID () const |
double | radius () const |
uint8 | categoryID () const |
bool | isGlobal () const |
bool | IsOnline () |
void | SetPosition (const GPoint &pos) |
void | SetCustomInfo (const char *ci) |
void | ChangeOwner (uint32 new_owner, bool notify=false) |
void | Move (uint32 new_location=locTemp, EVEItemFlags flag=flagNone, bool notify=false) |
void | Donate (uint32 new_owner=ownerSystem, uint32 new_location=locTemp, EVEItemFlags new_flag=flagNone, bool notify=true) |
void | SendItemChange (uint32 toID, std::map< int32, PyRep * > &changes) |
void | MergeTypesInCargo (ShipItem *pShip, EVEItemFlags flag=flagNone) |
bool | ChangeSingleton (bool singleton, bool notify=false) |
bool | AlterQuantity (int32 qty, bool notify=false) |
bool | SetQuantity (int32 qty, bool notify=false, bool deleteOnZero=true) |
bool | SetFlag (EVEItemFlags flag, bool notify=false) |
void | SetOwner (uint32 ownerID) |
void | SaveItem () |
void | UpdateLocation () |
void | UpdateLocation (uint32 locID) |
virtual InventoryItemRef | Split (int32 qty=0, bool notify=true, bool silent=false) |
virtual bool | Merge (InventoryItemRef to_merge, int32 qty=0, bool notify=true) |
virtual void | Relocate (uint32 locID=0, EVEItemFlags flag=flagNone) |
double | GetPackagedVolume () |
virtual void | SetPlayer (Client *pClient) |
virtual bool | HasPilot () |
virtual Client * | GetPilot () |
void | ToVirtual (uint32 locationID) |
PyRep * | GetItem () const |
void | GetItemRow (PyPackedRow *into) const |
void | GetItemStatusRow (PyPackedRow *into) const |
void | GetChargeStatusRow (uint32 shipID, PyPackedRow *into) const |
bool | Populate (Rsp_CommonGetInfo_Entry &into) |
PyList * | GetItemInfo () const |
PyObject * | ItemGetInfo () |
PyPackedRow * | GetItemRow () const |
PyPackedRow * | GetItemStatusRow () const |
PyPackedRow * | GetChargeStatusRow (uint32 shipID) const |
bool | SkillCheck (InventoryItemRef refItem) |
void | ClearModifiers () |
void | AddModifier (fxData &data) |
void | RemoveModifier (fxData &data) |
void | ResetAttributes () |
bool | HasReqSkill (const uint16 skillID) |
AttributeMap * | GetAttributeMap () |
int64 | GetTimeStamp () |
void | SetAttribute (uint16 attrID, int num, bool notify=true) |
void | SetAttribute (uint16 attrID, uint32 num, bool notify=true) |
void | SetAttribute (uint16 attrID, int64 num, bool notify=true) |
void | SetAttribute (uint16 attrID, float num, bool notify=true) |
void | SetAttribute (uint16 attrID, double num, bool notify=true) |
void | SetAttribute (uint16 attrID, EvilNumber num, bool notify=true) |
void | MultiplyAttribute (uint16 attrID, EvilNumber num, bool notify=false) |
bool | HasAttribute (const uint16 attrID) const |
bool | HasAttribute (const uint16 attrID, EvilNumber &value) const |
bool | SaveAttributes () |
void | ResetAttribute (uint16 attrID, bool notify=false) |
void | DeleteAttribute (uint16 attrID) |
EvilNumber | GetAttribute (const uint16 attrID) const |
EvilNumber | GetDefaultAttribute (const uint16 attrID) const |
![]() | |
RefObject (size_t initRefCount) | |
Initializes reference count. More... | |
virtual | ~RefObject () |
Destructor; must be virtual. More... | |
size_t | GetCount () |
Static Protected Member Functions | |
template<class _Ty > | |
static RefPtr< _Ty > | _LoadItem (uint32 structureID, const ItemType &type, const ItemData &data) |
![]() | |
template<class _Ty > | |
static RefPtr< _Ty > | Load (uint32 itemID) |
template<class _Ty > | |
static RefPtr< _Ty > | _Load (uint32 itemID) |
template<class _Ty > | |
static RefPtr< _Ty > | _LoadItem (uint32 itemID, const ItemType &type, const ItemData &data) |
Private Attributes | |
SystemEntity * | mySE |
Friends | |
class | InventoryItem |
Structure.cpp | |
Generic Base Class for POS items and entities. : Allan
| |
static StructureItemRef | Load (uint32 structureID) |
static StructureItemRef | Spawn (ItemData &data) |
virtual void | Delete () |
virtual void | Rename (std::string name) |
virtual void | AddItem (InventoryItemRef iRef) |
virtual void | RemoveItem (InventoryItemRef iRef) |
PyObject * | StructureGetInfo () |
StructureItem (uint32 _structureID, const ItemType &_itemType, const ItemData &_data) | |
virtual | ~StructureItem () |
virtual bool | _Load () |
Additional Inherited Members | |
![]() | |
static uint32 | CreateItemID (ItemData &data) |
static uint32 | CreateTempItemID (ItemData &data) |
static InventoryItemRef | Load (uint32 itemID) |
static InventoryItemRef | SpawnItem (uint32 itemID, const ItemData &data) |
static InventoryItemRef | Spawn (ItemData &data) |
static InventoryItemRef | SpawnTemp (ItemData &data) |
![]() | |
std::multimap< int8, fxData > | m_modifiers |
![]() | |
void | IncRef () const |
Increments reference count of object by one. More... | |
void | DecRef () const |
Decrements reference count of object by one. More... | |
![]() | |
Inventory * | pInventory |
uint32 | m_itemID |
AttributeMap * | pAttributeMap |
![]() | |
size_t | mRefCount |
Reference count of instance. More... | |
bool | mDeleted |
InventoryItem which represents Structure.
Definition at line 30 of file Structure.h.
|
protected |
Definition at line 45 of file Structure.cpp.
References _log, InventoryItem::itemID(), InventoryItem::name(), and InventoryItem::pInventory.
Referenced by _LoadItem().
|
protectedvirtual |
Definition at line 53 of file Structure.cpp.
References InventoryItem::pInventory, and SafeDelete().
|
protectedvirtual |
Reimplemented from InventoryItem.
Definition at line 63 of file Structure.cpp.
References InventoryItem::_Load(), Inventory::LoadContents(), and InventoryItem::pInventory.
|
inlinestaticprotected |
Definition at line 63 of file Structure.h.
References _log, ItemType::categoryID(), EVEDB::invCategories::Orbitals, sConfig, sDataMgr, EVEDB::invCategories::SovereigntyStructure, EVEDB::invCategories::Structure, StructureItem(), EVEDB::invCategories::StructureUpgrade, and EvE::traceStack().
|
virtual |
Reimplemented from InventoryItem.
Definition at line 158 of file Structure.cpp.
References InventoryItem::AddItem(), RefPtr< X >::get(), SystemEntity::GetCOSE(), SystemEntity::IsCOSE(), mySE, and CustomsSE::VerifyAddItem().
|
virtual |
Reimplemented from InventoryItem.
Definition at line 131 of file Structure.cpp.
References InventoryItem::Delete(), Inventory::DeleteContents(), and InventoryItem::pInventory.
|
inline |
|
static |
Definition at line 58 of file Structure.cpp.
Referenced by Spawn().
|
virtual |
Reimplemented from InventoryItem.
Definition at line 171 of file Structure.cpp.
References RefPtr< X >::get(), and InventoryItem::RemoveItem().
|
virtual |
Reimplemented from InventoryItem.
Definition at line 179 of file Structure.cpp.
References SystemEntity::GetPOSSE(), StructureSE::GetState(), mySE, InventoryItem::Rename(), StructureSE::SendSlimUpdate(), and EVEPOS::EntityState::Unanchored.
|
inline |
|
static |
Definition at line 71 of file Structure.cpp.
References AttrArmorDamage, AttrArmorEmDamageResonance, AttrArmorExplosiveDamageResonance, AttrArmorKineticDamageResonance, AttrArmorMaxDamageResonance, AttrArmorThermalDamageResonance, AttrCapacity, AttrDamage, AttrEmDamageResonance, AttrExplosiveDamageResonance, AttrIsGlobal, AttrKineticDamageResonance, AttrMass, AttrRadius, AttrShieldCapacity, AttrShieldCharge, AttrShieldEmDamageResonance, AttrShieldExplosiveDamageResonance, AttrShieldKineticDamageResonance, AttrShieldMaxDamageResonance, AttrShieldThermalDamageResonance, AttrThermalDamageResonance, AttrVolume, InventoryItem::CreateItemID(), EvilOne, EvilZero, EVEDB::invTypes::InterbusCustomsOffice, Load(), EVEDB::invTypes::PlanetaryCustomsOffice, and ItemData::typeID.
Referenced by InventoryItem::Spawn(), and ItemFactory::SpawnStructure().
PyObject * StructureItem::StructureGetInfo | ( | ) |
Definition at line 139 of file Structure.cpp.
References codelog, Inventory::LoadContents(), InventoryItem::m_itemID, InventoryItem::name(), InventoryItem::pInventory, and InventoryItem::Populate().
|
inline |
Definition at line 47 of file Structure.h.
References InventoryItem::type().
|
friend |
Definition at line 33 of file Structure.h.
|
private |