|
| virtual | ~ModuleItem () |
| |
| virtual ModuleItem * | GetModuleItem () |
| |
| virtual bool | IsModuleItem () |
| |
| | 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 bool | IsShipItem () |
| |
| 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 void | Delete () |
| |
| 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 |
| |
| | RefObject (size_t initRefCount) |
| | Initializes reference count. More...
|
| |
| virtual | ~RefObject () |
| | Destructor; must be virtual. More...
|
| |
| size_t | GetCount () |
| |
Definition at line 19 of file ModuleItem.h.
| void ModuleItem::SetOnline |
( |
bool |
online = false, |
|
|
bool |
isRig = false |
|
) |
| |
Definition at line 57 of file ModuleItem.cpp.
References _log, PyList::AddItem(), AttrDuration, AttrOnline, AttrSpeed, EvilNumber::get_float(), InventoryItem::GetAttribute(), GetFileTimeNow(), Client::GetShipID(), InventoryItem::HasAttribute(), Client::IsUndock(), InventoryItem::m_itemID, InventoryItem::name(), InventoryItem::ownerID(), PyStatic, Client::SendNotification(), sEntityList, and InventoryItem::SetAttribute().
Referenced by GenericModule::Offline(), and GenericModule::Online().
58 _log(MODULE__DEBUG,
"ModuleItem::SetOnline() - set module %s(%u) to %s", \
65 if (pClient ==
nullptr) {
66 _log(MODULE__WARNING,
"ModuleItem::SetOnline() - No client object found using m_ownerID (%u) for module %s(%u)", \
82 Notify_OnGodmaShipEffect shipEff;
83 shipEff.itemID = ge.selfID;
84 shipEff.effectID = ge.effectID;
86 shipEff.start = online;
87 shipEff.active = online;
88 shipEff.environment = ge.Encode();
89 shipEff.startTime = shipEff.timeNow;
95 shipEff.duration = 0.0;
98 shipEff.repeat = (online ? 1 : 0);
101 events->
AddItem(shipEff.Encode());
102 Notify_OnMultiEvent multi;
103 multi.events = events;
void SendNotification(const PyAddress &dest, EVENotificationStream ¬i, bool seq=true)
#define _log(type, fmt,...)
bool HasAttribute(const uint16 attrID) const
void SetAttribute(uint16 attrID, int num, bool notify=true)
EvilNumber GetAttribute(const uint16 attrID) const