EvEmu
0.8.4
11 September 2021
|
#include "Container.h"
Public Member Functions | |
WreckContainer (uint32 _containerID, const ItemType &_containerType, const ItemData &_data) | |
virtual | ~WreckContainer () |
virtual void | Delete () |
virtual void | RemoveItem (InventoryItemRef iRef) |
double | GetCapacity (EVEItemFlags flag) const |
void | ValidateAddItem (EVEItemFlags flag, InventoryItemRef item) const |
const ItemType & | type () const |
PyObject * | WreckContainerGetInfo () |
bool | IsEmpty () |
void | MakeSlimItemChange () |
void | SetMySE (SystemEntity *pSE) |
void | Salvaged () |
![]() | |
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 () |
virtual void | Rename (std::string name) |
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) |
virtual void | AddItem (InventoryItemRef iRef) |
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 Public Member Functions | |
static WreckContainerRef | Load (uint32 containerID) |
static WreckContainerRef | Spawn (ItemData &data) |
![]() | |
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) |
Protected Member Functions | |
virtual bool | _Load () |
![]() | |
void | IncRef () const |
Increments reference count of object by one. More... | |
void | DecRef () const |
Decrements reference count of object by one. More... | |
Static Protected Member Functions | |
template<class _Ty > | |
static RefPtr< _Ty > | _LoadItem (uint32 containerID, const ItemType &type, const ItemData &data) |
static uint32 | CreateItemID (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 |
bool | m_delete |
bool | m_salvaged |
Friends | |
class | InventoryItem |
Additional Inherited Members | |
![]() | |
std::multimap< int8, fxData > | m_modifiers |
![]() | |
Inventory * | pInventory |
uint32 | m_itemID |
AttributeMap * | pAttributeMap |
![]() | |
size_t | mRefCount |
Reference count of instance. More... | |
bool | mDeleted |
InventoryItem which represents wreck container. Author: Allan
Definition at line 184 of file Container.h.
WreckContainer::WreckContainer | ( | uint32 | _containerID, |
const ItemType & | _containerType, | ||
const ItemData & | _data | ||
) |
Definition at line 381 of file Container.cpp.
References _log, InventoryItem::itemID(), m_salvaged, InventoryItem::name(), and InventoryItem::pInventory.
Referenced by _LoadItem().
|
virtual |
Definition at line 391 of file Container.cpp.
References InventoryItem::pInventory, SafeDelete(), and Inventory::Unload().
|
protectedvirtual |
Reimplemented from InventoryItem.
Definition at line 403 of file Container.cpp.
References InventoryItem::_Load(), Inventory::LoadContents(), and InventoryItem::pInventory.
|
inlinestaticprotected |
Definition at line 217 of file Container.h.
References _log, ItemType::categoryID(), ItemType::groupID(), sConfig, sDataMgr, EvE::traceStack(), EVEDB::invGroups::Wreck, and WreckContainer().
Definition at line 427 of file Container.cpp.
References InventoryItem::CreateItemID().
Referenced by Spawn().
|
virtual |
Reimplemented from InventoryItem.
Definition at line 432 of file Container.cpp.
References InventoryItem::Delete(), Inventory::DeleteContents(), Inventory::LoadContents(), m_delete, and InventoryItem::pInventory.
double WreckContainer::GetCapacity | ( | EVEItemFlags | flag | ) | const |
Definition at line 441 of file Container.cpp.
References Inventory::GetCapacity(), and InventoryItem::pInventory.
|
inline |
Definition at line 206 of file Container.h.
References Inventory::IsEmpty(), and InventoryItem::pInventory.
Referenced by WreckSE::IsEmpty(), and WreckSE::MakeSlimItem().
|
static |
Definition at line 398 of file Container.cpp.
Referenced by Spawn().
void WreckContainer::MakeSlimItemChange | ( | ) |
Definition at line 490 of file Container.cpp.
References SystemBubble::BubblecastDestinyUpdate(), InventoryItem::itemID(), m_delete, SystemEntity::MakeSlimItem(), mySE, PyTuple::SetItem(), and SystemEntity::SysBubble().
Referenced by RemoveItem().
|
virtual |
Reimplemented from InventoryItem.
Definition at line 474 of file Container.cpp.
References _log, RefPtr< X >::get(), Inventory::IsEmpty(), InventoryItem::itemID(), m_salvaged, MakeSlimItemChange(), InventoryItem::name(), InventoryItem::pInventory, and InventoryItem::RemoveItem().
|
inline |
Definition at line 209 of file Container.h.
References m_salvaged.
Referenced by WreckSE::Salvaged().
|
inline |
Definition at line 208 of file Container.h.
References mySE.
Referenced by DynamicEntityFactory::BuildEntity().
|
static |
Definition at line 410 of file Container.cpp.
References AttrArmorDamage, AttrCapacity, AttrMass, AttrRadius, AttrShieldCapacity, AttrShieldCharge, AttrVolume, ItemType::capacity(), CreateItemID(), EvilZero, InventoryItem::GetAttribute(), Load(), ItemType::mass(), ItemType::radius(), InventoryItem::SetAttribute(), type(), and ItemType::volume().
Referenced by InventoryItem::Spawn(), and ItemFactory::SpawnWreckContainer().
|
inline |
Definition at line 202 of file Container.h.
References InventoryItem::type().
Referenced by Spawn().
void WreckContainer::ValidateAddItem | ( | EVEItemFlags | flag, |
InventoryItemRef | item | ||
) | const |
Definition at line 465 of file Container.cpp.
References sLog, and EvE::traceStack().
PyObject * WreckContainer::WreckContainerGetInfo | ( | ) |
Definition at line 446 of file Container.cpp.
References codelog, InventoryItem::itemID(), Inventory::LoadContents(), InventoryItem::name(), InventoryItem::pInventory, and InventoryItem::Populate().
|
friend |
Definition at line 187 of file Container.h.
|
private |
Definition at line 231 of file Container.h.
Referenced by Delete(), and MakeSlimItemChange().
|
private |
Definition at line 232 of file Container.h.
Referenced by RemoveItem(), Salvaged(), and WreckContainer().
|
private |
Definition at line 230 of file Container.h.
Referenced by MakeSlimItemChange(), and SetMySE().