|
EvEmu
0.8.4
11 September 2021
|
#include "SolarSystem.h"


Public Member Functions | |
| const GPoint & | minPosition () const |
| const GPoint & | maxPosition () const |
| double | luminosity () const |
| bool | border () const |
| bool | fringe () const |
| bool | corridor () const |
| bool | hub () const |
| bool | international () const |
| bool | regional () const |
| bool | constellation () const |
| double | security () const |
| uint32 | factionID () const |
| double | radius () const |
| const std::string & | securityClass () const |
| void | AddItemToInventory (InventoryItemRef iRef) |
| void | RemoveItemFromInventory (InventoryItemRef iRef) |
Public Member Functions inherited from CelestialObject | |
| CelestialObject (uint32 _celestialID, const ItemType &_type, const ItemData &_data) | |
| CelestialObject (uint32 _celestialID, const ItemType &_type, const ItemData &_data, const CelestialObjectData &_cData) | |
| virtual | ~CelestialObject () |
| void | Delete () |
| double | radius () const |
| double | security () const |
| uint8 | celestialIndex () const |
| uint8 | orbitIndex () const |
Public Member Functions inherited from InventoryItem | |
| 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) |
| virtual void | RemoveItem (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 |
Public Member Functions inherited from RefObject | |
| RefObject (size_t initRefCount) | |
| Initializes reference count. More... | |
| virtual | ~RefObject () |
| Destructor; must be virtual. More... | |
| size_t | GetCount () |
Static Public Member Functions | |
| static SolarSystemRef | Load (uint32 solarSystemID) |
Static Public Member Functions inherited from CelestialObject | |
| static CelestialObjectRef | Load (uint32 celestialID) |
| static CelestialObjectRef | Spawn (ItemData &data) |
Static Public Member Functions inherited from InventoryItem | |
| 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 | |
| SolarSystem (uint32 _solarSystemID, const ItemType &_type, const ItemData &_data, const CelestialObjectData &_cData, const SolarSystemData &_ssData) | |
| virtual | ~SolarSystem () |
| virtual bool | _Load () |
Protected Member Functions inherited from RefObject | |
| 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 solarSystemID, const ItemType &type, const ItemData &data) |
Static Protected Member Functions inherited from CelestialObject | |
| template<class _Ty > | |
| static RefPtr< _Ty > | _LoadItem (uint32 celestialID, const ItemType &type, const ItemData &data) |
| static uint32 | CreateItemID (ItemData &data) |
Static Protected Member Functions inherited from InventoryItem | |
| 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) |
Protected Attributes | |
| bool | m_border:1 |
| bool | m_fringe:1 |
| bool | m_corridor:1 |
| bool | m_hub:1 |
| bool | m_international:1 |
| bool | m_regional:1 |
| bool | m_constellation:1 |
| uint32 | m_factionID |
| double | m_security |
| double | m_radius |
| double | m_luminosity |
| std::string | m_securityClass |
| GPoint | m_minPosition |
| GPoint | m_maxPosition |
Protected Attributes inherited from CelestialObject | |
| double | m_radius |
| double | m_security |
| uint8 | m_celestialIndex |
| uint8 | m_orbitIndex |
Protected Attributes inherited from InventoryItem | |
| Inventory * | pInventory |
| uint32 | m_itemID |
| AttributeMap * | pAttributeMap |
Protected Attributes inherited from RefObject | |
| size_t | mRefCount |
| Reference count of instance. More... | |
| bool | mDeleted |
Friends | |
| class | InventoryItem |
| class | CelestialObject |
Additional Inherited Members | |
Public Attributes inherited from InventoryItem | |
| std::multimap< int8, fxData > | m_modifiers |
CelestialObject which represents solar system.
Definition at line 80 of file SolarSystem.h.
|
protected |
Definition at line 86 of file SolarSystem.cpp.
References _log, InventoryItem::m_itemID, InventoryItem::name(), and InventoryItem::pInventory.
Referenced by _LoadItem().


|
protectedvirtual |
Definition at line 113 of file SolarSystem.cpp.
References InventoryItem::pInventory, SafeDelete(), and Inventory::Unload().

|
protectedvirtual |
Reimplemented from InventoryItem.
Definition at line 124 of file SolarSystem.cpp.
References InventoryItem::_Load().

|
inlinestaticprotected |
Definition at line 140 of file SolarSystem.h.
References _log, ItemType::categoryID(), ItemType::groupID(), sConfig, sDataMgr, sItemFactory, EVEDB::invGroups::Solar_System, SolarSystem(), and EvE::traceStack().

| void SolarSystem::AddItemToInventory | ( | InventoryItemRef | iRef | ) |
Definition at line 129 of file SolarSystem.cpp.
References _log, InventoryItem::AddItem(), InventoryItem::itemID(), InventoryItem::m_itemID, and InventoryItem::name().
Referenced by SystemManager::AddEntity(), and SystemManager::AddItemToInventory().


|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
Loads solar system from DB.
| [in] | factory | |
| [in] | solarSystemID | ID of solar system to load. |
Definition at line 119 of file SolarSystem.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void SolarSystem::RemoveItemFromInventory | ( | InventoryItemRef | iRef | ) |
Definition at line 136 of file SolarSystem.cpp.
References _log, InventoryItem::itemID(), InventoryItem::m_itemID, InventoryItem::name(), and InventoryItem::RemoveItem().
Referenced by SystemManager::RemoveItemFromInventory().


|
inline |
|
inline |
|
friend |
Definition at line 84 of file SolarSystem.h.
|
friend |
Definition at line 83 of file SolarSystem.h.
|
protected |
Definition at line 165 of file SolarSystem.h.
Referenced by border().
|
protected |
Definition at line 171 of file SolarSystem.h.
Referenced by constellation().
|
protected |
Definition at line 167 of file SolarSystem.h.
Referenced by corridor().
|
protected |
Definition at line 173 of file SolarSystem.h.
Referenced by factionID().
|
protected |
Definition at line 166 of file SolarSystem.h.
Referenced by fringe().
|
protected |
Definition at line 168 of file SolarSystem.h.
Referenced by hub().
|
protected |
Definition at line 169 of file SolarSystem.h.
Referenced by international().
|
protected |
Definition at line 177 of file SolarSystem.h.
Referenced by luminosity().
|
protected |
Definition at line 181 of file SolarSystem.h.
Referenced by maxPosition().
|
protected |
Definition at line 180 of file SolarSystem.h.
Referenced by minPosition().
|
protected |
Definition at line 176 of file SolarSystem.h.
Referenced by radius().
|
protected |
Definition at line 170 of file SolarSystem.h.
Referenced by regional().
|
protected |
Definition at line 175 of file SolarSystem.h.
Referenced by security().
|
protected |
Definition at line 179 of file SolarSystem.h.
Referenced by securityClass().