EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Blueprint Class Reference

#include "Blueprint.h"

Inheritance diagram for Blueprint:
Collaboration diagram for Blueprint:

Public Member Functions

virtual void Delete ()
 
virtual bool Merge (InventoryItemRef to_merge, uint32 qty=0, bool notify=true)
 
virtual InventoryItemRef Split (int32 qty_to_take, bool notify=true)
 
BlueprintRef SplitBlueprint (int32 qty_to_take, bool notify=true)
 
const BlueprintTypetype () const
 
const ItemTypeproductType () const
 
uint32 productTypeID () const
 
bool copy ()
 
int8 mLevel ()
 
int8 pLevel ()
 
int16 runs ()
 
float GetPE ()
 
float GetME ()
 
void SetMLevel (int8 me)
 
void SetPLevel (int8 pe)
 
void SetCopy (bool copy)
 
void SetRuns (int16 runs)
 
void UpdateMLevel (int8 me)
 
void UpdatePLevel (int8 pe)
 
void UpdateRuns (int16 runs)
 
bool infinite ()
 
PyDictGetBlueprintAttributes ()
 
- Public Member Functions inherited from InventoryItem
 InventoryItem (uint32 _itemID, const ItemType &_type, const ItemData &_data)
 
 InventoryItem (const InventoryItem &oth)
 
 InventoryItem (InventoryItem &&oth) noexcept
 
InventoryItemoperator= (const InventoryItem &oth)=delete
 
InventoryItemoperator= (InventoryItem &&oth)=delete
 
virtual ~InventoryItem () noexcept
 
virtual ShipItemGetShipItem ()
 
virtual ModuleItemGetModuleItem ()
 
virtual bool IsShipItem ()
 
virtual bool IsModuleItem ()
 
virtual void Rename (std::string name)
 
InventoryGetMyInventory ()
 
bool contraband () const
 
bool isSingleton () const
 
int32 quantity () const
 
uint32 itemID () const
 
uint32 ownerID () const
 
uint32 locationID () const
 
EVEItemFlags flag () const
 
const GPointposition () const
 
const ItemTypetype () 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 ClientGetPilot ()
 
void ToVirtual (uint32 locationID)
 
virtual bool _Load ()
 
PyRepGetItem () const
 
void GetItemRow (PyPackedRow *into) const
 
void GetItemStatusRow (PyPackedRow *into) const
 
void GetChargeStatusRow (uint32 shipID, PyPackedRow *into) const
 
bool Populate (Rsp_CommonGetInfo_Entry &into)
 
PyListGetItemInfo () const
 
PyObjectItemGetInfo ()
 
PyPackedRowGetItemRow () const
 
PyPackedRowGetItemStatusRow () const
 
PyPackedRowGetChargeStatusRow (uint32 shipID) const
 
bool SkillCheck (InventoryItemRef refItem)
 
void ClearModifiers ()
 
void AddModifier (fxData &data)
 
void RemoveModifier (fxData &data)
 
void ResetAttributes ()
 
bool HasReqSkill (const uint16 skillID)
 
AttributeMapGetAttributeMap ()
 
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 BlueprintRef Load (uint32 blueprintID)
 
static BlueprintRef Spawn (ItemData &data, EvERam::bpData &bdata)
 
- 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

 Blueprint (uint32 _blueprintID, const BlueprintType &_bpType, const ItemData &_data, EvERam::bpData &_bpData)
 
void SaveBlueprint ()
 
- 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 blueprintID, const ItemType &type, const ItemData &data)
 
static uint32 CreateItemID (ItemData &data, EvERam::bpData &bdata)
 
- 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)
 

Private Attributes

const BlueprintTypem_bpType
 
EvERam::bpData m_data
 

Friends

class InventoryItem
 

Additional Inherited Members

- Public Attributes inherited from InventoryItem
std::multimap< int8, fxDatam_modifiers
 
- Protected Attributes inherited from InventoryItem
InventorypInventory
 
uint32 m_itemID
 
AttributeMappAttributeMap
 
- Protected Attributes inherited from RefObject
size_t mRefCount
 Reference count of instance. More...
 
bool mDeleted
 

Detailed Description

Definition at line 114 of file Blueprint.h.

Constructor & Destructor Documentation

Blueprint::Blueprint ( uint32  _blueprintID,
const BlueprintType _bpType,
const ItemData _data,
EvERam::bpData _bpData 
)
protected

Definition at line 58 of file Blueprint.cpp.

References EVEDB::invCategories::Blueprint, ItemType::categoryID(), and m_data.

Referenced by _LoadItem().

59 : InventoryItem(_blueprintID, _bpType, _data),
60 m_bpType(_bpType)
61 {
62  // data consistency asserts
63  assert(_bpType.categoryID() == EVEDB::invCategories::Blueprint);
64  m_data = _bpData;
65 }
uint8 categoryID() const
Definition: ItemType.h:66
const BlueprintType & m_bpType
Definition: Blueprint.h:194
EvERam::bpData m_data
Definition: Blueprint.h:195
friend class InventoryItem
Definition: Blueprint.h:117

Here is the call graph for this function:

Here is the caller graph for this function:

Member Function Documentation

template<class _Ty >
static RefPtr<_Ty> Blueprint::_LoadItem ( uint32  blueprintID,
const ItemType type,
const ItemData data 
)
inlinestaticprotected

Definition at line 173 of file Blueprint.h.

References _log, EVEDB::invCategories::Blueprint, Blueprint(), ItemType::categoryID(), FactoryDB::GetBlueprint(), sConfig, sDataMgr, EvE::traceStack(), and type().

174  {
176  _log(ITEM__ERROR, "Trying to load %s as Blueprint.", sDataMgr.GetCategoryName(type.categoryID()));
177  if (sConfig.debug.StackTrace)
178  EvE::traceStack();
179  return RefPtr<_Ty>();
180  }
181  const BlueprintType& bpType = static_cast<const BlueprintType& >( type );
182 
183  EvERam::bpData bdata = EvERam::bpData();
184  if (!FactoryDB::GetBlueprint( blueprintID, bdata ) )
185  return RefPtr<_Ty>();
186 
187  return BlueprintRef( new Blueprint( blueprintID, bpType, data, bdata ) );
188  }
#define sConfig
A macro for easier access to the singleton.
const BlueprintType & type() const
Definition: Blueprint.h:133
#define _log(type, fmt,...)
Definition: logsys.h:124
Blueprint(uint32 _blueprintID, const BlueprintType &_bpType, const ItemData &_data, EvERam::bpData &_bpData)
Definition: Blueprint.cpp:58
static bool GetBlueprint(uint32 blueprintID, EvERam::bpData &into)
Definition: FactoryDB.cpp:140
uint8 categoryID() const
Definition: ItemType.h:66
RefPtr< Blueprint > BlueprintRef
Definition: ItemRef.h:53
void traceStack(void)
Definition: misc.cpp:169
Reference-counting-based smart pointer.
Definition: RefPtr.h:133
#define sDataMgr

Here is the call graph for this function:

bool Blueprint::copy ( )
inline

Definition at line 136 of file Blueprint.h.

References EvERam::bpData::copy, and m_data.

Referenced by SetCopy().

136 { return m_data.copy; }
EvERam::bpData m_data
Definition: Blueprint.h:195

Here is the caller graph for this function:

uint32 Blueprint::CreateItemID ( ItemData data,
EvERam::bpData bdata 
)
staticprotected

Definition at line 80 of file Blueprint.cpp.

References InventoryItem::CreateItemID(), ItemDB::DeleteItem(), FactoryDB::SaveBlueprintData(), sItemFactory, and ItemData::typeID.

Referenced by Spawn().

80  {
81  // make sure it's a blueprint type
82  const BlueprintType* bpType = sItemFactory.GetBlueprintType(data.typeID);
83  if (bpType == nullptr)
84  return 0;
85 
86  // make the blueprintID
87  uint32 blueprintID(InventoryItem::CreateItemID(data));
88  if (blueprintID == 0)
89  return 0;
90 
91  // insert blueprint data into DB
92  if (!FactoryDB::SaveBlueprintData(blueprintID, bdata)) {
93  ItemDB::DeleteItem(blueprintID);
94  return 0;
95  }
96 
97  return blueprintID;
98 }
static bool SaveBlueprintData(uint32 blueprintID, EvERam::bpData &data)
Definition: FactoryDB.cpp:120
unsigned __int32 uint32
Definition: eve-compat.h:50
uint16 typeID
Definition: ItemType.h:188
static uint32 CreateItemID(ItemData &data)
static bool DeleteItem(uint32 itemID)
Definition: ItemDB.cpp:348
#define sItemFactory
Definition: ItemFactory.h:165

Here is the call graph for this function:

Here is the caller graph for this function:

void Blueprint::Delete ( )
virtual

Reimplemented from InventoryItem.

Definition at line 100 of file Blueprint.cpp.

References InventoryItem::Delete(), FactoryDB::DeleteBlueprint(), and InventoryItem::m_itemID.

100  {
103 }
static bool DeleteBlueprint(uint32 blueprintID)
Definition: FactoryDB.cpp:94
virtual void Delete()

Here is the call graph for this function:

PyDict * Blueprint::GetBlueprintAttributes ( )

Definition at line 139 of file Blueprint.cpp.

References EvERam::bpData::copy, GetME(), m_bpType, m_data, InventoryItem::m_itemID, BlueprintType::maxProductionLimit(), EvERam::bpData::mLevel, EvERam::bpData::pLevel, BlueprintType::productionTime(), BlueprintType::productTypeID(), BlueprintType::researchCopyTime(), BlueprintType::researchMaterialTime(), BlueprintType::researchProductivityTime(), BlueprintType::researchTechTime(), and EvERam::bpData::runs.

139  {
140  Rsp_GetBlueprintAttributes rsp;
141  rsp.blueprintID = m_itemID;
142  rsp.copy = m_data.copy;
143  rsp.productivityLevel = m_data.pLevel;
144  rsp.materialLevel = m_data.mLevel;
145  rsp.licensedProductionRunsRemaining = m_data.runs;
146  rsp.wastageFactor = GetME();
147  rsp.productTypeID = m_bpType.productTypeID();
148  rsp.manufacturingTime = m_bpType.productionTime();
149  rsp.maxProductionLimit = m_bpType.maxProductionLimit();
150  rsp.researchMaterialTime = m_bpType.researchMaterialTime();
151  rsp.researchTechTime = m_bpType.researchTechTime();
152  rsp.researchProductivityTime = m_bpType.researchProductivityTime();
153  rsp.researchCopyTime = m_bpType.researchCopyTime();
154  return rsp.Encode();
155 }
uint32 researchTechTime() const
Definition: Blueprint.h:54
uint32 maxProductionLimit() const
Definition: Blueprint.h:56
uint32 researchCopyTime() const
Definition: Blueprint.h:53
uint32 productionTime() const
Definition: Blueprint.h:52
const BlueprintType & m_bpType
Definition: Blueprint.h:194
float GetME()
Definition: Blueprint.cpp:157
EvERam::bpData m_data
Definition: Blueprint.h:195
uint32 researchMaterialTime() const
Definition: Blueprint.h:57
int16 runs
Definition: EVE_RAM.h:110
uint32 researchProductivityTime() const
Definition: Blueprint.h:59
uint16 productTypeID() const
Definition: Blueprint.h:51

Here is the call graph for this function:

float Blueprint::GetME ( )

Definition at line 157 of file Blueprint.cpp.

References m_bpType, m_data, EvERam::bpData::mLevel, and BlueprintType::wasteFactor().

Referenced by GetBlueprintAttributes().

158 {
159  float bwf(m_bpType.wasteFactor());
160  if (m_data.mLevel < 0) {
161  bwf /= (-m_data.mLevel);
162  } else if (m_data.mLevel > 0) {
163  bwf /= (1 + m_data.mLevel);
164  }
165  bwf /= 100.0f;
166  return bwf;
167 }
const BlueprintType & m_bpType
Definition: Blueprint.h:194
uint16 wasteFactor() const
Definition: Blueprint.h:50
EvERam::bpData m_data
Definition: Blueprint.h:195

Here is the call graph for this function:

Here is the caller graph for this function:

float Blueprint::GetPE ( )
inline

Definition at line 140 of file Blueprint.h.

References m_data, and EvERam::bpData::pLevel.

140 { return m_data.pLevel / (1 + m_data.pLevel); }
EvERam::bpData m_data
Definition: Blueprint.h:195
bool Blueprint::infinite ( )
inline

Definition at line 155 of file Blueprint.h.

References m_data, and EvERam::bpData::runs.

155 { return (m_data.runs < 0); }
EvERam::bpData m_data
Definition: Blueprint.h:195
int16 runs
Definition: EVE_RAM.h:110
BlueprintRef Blueprint::Load ( uint32  blueprintID)
static

Definition at line 67 of file Blueprint.cpp.

Referenced by Spawn().

67  {
68  return InventoryItem::Load<Blueprint>(blueprintID);
69 }

Here is the caller graph for this function:

bool Blueprint::Merge ( InventoryItemRef  to_merge,
uint32  qty = 0,
bool  notify = true 
)
virtual

Definition at line 120 of file Blueprint.cpp.

References m_data, InventoryItem::Merge(), EvERam::bpData::mLevel, EvERam::bpData::pLevel, EvERam::bpData::runs, and RefPtr< X >::StaticCast().

120  {
121  // singleton is checked and error thrown in InventoryItem::Merge()
122  BlueprintRef bpRef = BlueprintRef::StaticCast(itemRef);
123  if (m_data.mLevel != bpRef->mLevel())
124  return false;
125  if (m_data.pLevel != bpRef->pLevel())
126  return false;
127  if (m_data.runs != bpRef->runs())
128  return false;
129  if (!InventoryItem::Merge(itemRef, qty, notify))
130  return false;
131  return true;
132 }
virtual bool Merge(InventoryItemRef to_merge, int32 qty=0, bool notify=true)
EvERam::bpData m_data
Definition: Blueprint.h:195
static RefPtr StaticCast(const RefPtr< Y > &oth)
Acts as static_cast from one RefPtr to another.
Definition: RefPtr.h:238
int16 runs
Definition: EVE_RAM.h:110
Reference-counting-based smart pointer.
Definition: RefPtr.h:133

Here is the call graph for this function:

int8 Blueprint::mLevel ( )
inline

Definition at line 137 of file Blueprint.h.

References m_data, and EvERam::bpData::mLevel.

137 { return m_data.mLevel; }
EvERam::bpData m_data
Definition: Blueprint.h:195
int8 Blueprint::pLevel ( )
inline

Definition at line 138 of file Blueprint.h.

References m_data, and EvERam::bpData::pLevel.

138 { return m_data.pLevel; }
EvERam::bpData m_data
Definition: Blueprint.h:195
const ItemType& Blueprint::productType ( ) const
inline

Definition at line 134 of file Blueprint.h.

References m_bpType, and BlueprintType::productType().

134 { return m_bpType.productType(); }
const BlueprintType & m_bpType
Definition: Blueprint.h:194
const ItemType & productType() const
Definition: Blueprint.h:48

Here is the call graph for this function:

uint32 Blueprint::productTypeID ( ) const
inline

Definition at line 135 of file Blueprint.h.

References m_bpType, and BlueprintType::productTypeID().

135 { return m_bpType.productTypeID(); }
const BlueprintType & m_bpType
Definition: Blueprint.h:194
uint16 productTypeID() const
Definition: Blueprint.h:51

Here is the call graph for this function:

int16 Blueprint::runs ( )
inline

Definition at line 139 of file Blueprint.h.

References m_data, and EvERam::bpData::runs.

Referenced by SetRuns(), and UpdateRuns().

139 { return m_data.runs; }
EvERam::bpData m_data
Definition: Blueprint.h:195
int16 runs
Definition: EVE_RAM.h:110

Here is the caller graph for this function:

void Blueprint::SaveBlueprint ( )
protected

Definition at line 134 of file Blueprint.cpp.

References _log, m_data, InventoryItem::m_itemID, and FactoryDB::SaveBlueprintData().

Referenced by SetCopy(), SetMLevel(), SetPLevel(), SetRuns(), UpdateMLevel(), UpdatePLevel(), and UpdateRuns().

134  {
135  _log( MANUF__TRACE, "Saving blueprint %u.", m_itemID );
137 }
#define _log(type, fmt,...)
Definition: logsys.h:124
static bool SaveBlueprintData(uint32 blueprintID, EvERam::bpData &data)
Definition: FactoryDB.cpp:120
EvERam::bpData m_data
Definition: Blueprint.h:195

Here is the call graph for this function:

Here is the caller graph for this function:

void Blueprint::SetCopy ( bool  copy)
inline

Definition at line 146 of file Blueprint.h.

References EvERam::bpData::copy, copy(), m_data, and SaveBlueprint().

146 { m_data.copy = copy; SaveBlueprint(); }
bool copy()
Definition: Blueprint.h:136
void SaveBlueprint()
Definition: Blueprint.cpp:134
EvERam::bpData m_data
Definition: Blueprint.h:195

Here is the call graph for this function:

void Blueprint::SetMLevel ( int8  me)
inline

Definition at line 144 of file Blueprint.h.

References m_data, EvERam::bpData::mLevel, and SaveBlueprint().

144 { m_data.mLevel = me; SaveBlueprint(); }
void SaveBlueprint()
Definition: Blueprint.cpp:134
EvERam::bpData m_data
Definition: Blueprint.h:195

Here is the call graph for this function:

void Blueprint::SetPLevel ( int8  pe)
inline

Definition at line 145 of file Blueprint.h.

References m_data, EvERam::bpData::pLevel, and SaveBlueprint().

145 { m_data.pLevel = pe; SaveBlueprint(); }
void SaveBlueprint()
Definition: Blueprint.cpp:134
EvERam::bpData m_data
Definition: Blueprint.h:195

Here is the call graph for this function:

void Blueprint::SetRuns ( int16  runs)
inline

Definition at line 147 of file Blueprint.h.

References m_data, EvERam::bpData::runs, runs(), and SaveBlueprint().

147 { m_data.runs = runs; SaveBlueprint(); }
int16 runs()
Definition: Blueprint.h:139
void SaveBlueprint()
Definition: Blueprint.cpp:134
EvERam::bpData m_data
Definition: Blueprint.h:195
int16 runs
Definition: EVE_RAM.h:110

Here is the call graph for this function:

BlueprintRef Blueprint::Spawn ( ItemData data,
EvERam::bpData bdata 
)
static

Definition at line 71 of file Blueprint.cpp.

References CreateItemID(), Load(), and sItemFactory.

Referenced by InventoryItem::Spawn().

71  {
72  uint32 blueprintID(Blueprint::CreateItemID(data, bdata));
73  if (blueprintID == 0)
74  return BlueprintRef(nullptr);
75  BlueprintRef bRef = Blueprint::Load(blueprintID);
76  sItemFactory.AddItem(bRef);
77  return bRef;
78 }
static uint32 CreateItemID(ItemData &data, EvERam::bpData &bdata)
Definition: Blueprint.cpp:80
static BlueprintRef Load(uint32 blueprintID)
Definition: Blueprint.cpp:67
RefPtr< Blueprint > BlueprintRef
Definition: ItemRef.h:53
unsigned __int32 uint32
Definition: eve-compat.h:50
#define sItemFactory
Definition: ItemFactory.h:165
Reference-counting-based smart pointer.
Definition: RefPtr.h:133

Here is the call graph for this function:

Here is the caller graph for this function:

virtual InventoryItemRef Blueprint::Split ( int32  qty_to_take,
bool  notify = true 
)
inlinevirtual

Definition at line 124 of file Blueprint.h.

References SplitBlueprint().

125  { return SplitBlueprint( qty_to_take, notify ); }
BlueprintRef SplitBlueprint(int32 qty_to_take, bool notify=true)
Definition: Blueprint.cpp:105

Here is the call graph for this function:

BlueprintRef Blueprint::SplitBlueprint ( int32  qty_to_take,
bool  notify = true 
)

Definition at line 105 of file Blueprint.cpp.

References EvERam::bpData::copy, RefPtr< X >::get(), m_data, EvERam::bpData::mLevel, EvERam::bpData::pLevel, EvERam::bpData::runs, InventoryItem::Split(), and RefPtr< X >::StaticCast().

Referenced by Split().

105  {
106  // split item
107  BlueprintRef bRef = BlueprintRef::StaticCast(InventoryItem::Split(qty_to_take, notify));
108  if (bRef.get() == nullptr)
109  return BlueprintRef(nullptr);
110 
111  // copy our attributes
112  bRef->SetCopy(m_data.copy);
113  bRef->SetMLevel(m_data.mLevel);
114  bRef->SetPLevel(m_data.pLevel);
115  bRef->SetRuns(m_data.runs);
116  bRef->SaveBlueprint();
117  return bRef;
118 }
virtual InventoryItemRef Split(int32 qty=0, bool notify=true, bool silent=false)
EvERam::bpData m_data
Definition: Blueprint.h:195
X * get() const
Definition: RefPtr.h:213
RefPtr< Blueprint > BlueprintRef
Definition: ItemRef.h:53
static RefPtr StaticCast(const RefPtr< Y > &oth)
Acts as static_cast from one RefPtr to another.
Definition: RefPtr.h:238
int16 runs
Definition: EVE_RAM.h:110
Reference-counting-based smart pointer.
Definition: RefPtr.h:133

Here is the call graph for this function:

Here is the caller graph for this function:

const BlueprintType& Blueprint::type ( ) const
inline

Definition at line 133 of file Blueprint.h.

References m_bpType.

Referenced by _LoadItem().

133 { return m_bpType; }
const BlueprintType & m_bpType
Definition: Blueprint.h:194

Here is the caller graph for this function:

void Blueprint::UpdateMLevel ( int8  me)
inline

Definition at line 150 of file Blueprint.h.

References m_data, EvERam::bpData::mLevel, and SaveBlueprint().

150 { m_data.mLevel += me; SaveBlueprint(); }
void SaveBlueprint()
Definition: Blueprint.cpp:134
EvERam::bpData m_data
Definition: Blueprint.h:195

Here is the call graph for this function:

void Blueprint::UpdatePLevel ( int8  pe)
inline

Definition at line 151 of file Blueprint.h.

References m_data, EvERam::bpData::pLevel, and SaveBlueprint().

151 { m_data.pLevel += pe; SaveBlueprint(); }
void SaveBlueprint()
Definition: Blueprint.cpp:134
EvERam::bpData m_data
Definition: Blueprint.h:195

Here is the call graph for this function:

void Blueprint::UpdateRuns ( int16  runs)
inline

Definition at line 152 of file Blueprint.h.

References m_data, EvERam::bpData::runs, runs(), and SaveBlueprint().

152 { m_data.runs += runs; SaveBlueprint(); }
int16 runs()
Definition: Blueprint.h:139
void SaveBlueprint()
Definition: Blueprint.cpp:134
EvERam::bpData m_data
Definition: Blueprint.h:195
int16 runs
Definition: EVE_RAM.h:110

Here is the call graph for this function:

Friends And Related Function Documentation

friend class InventoryItem
friend

Definition at line 117 of file Blueprint.h.

Member Data Documentation

const BlueprintType& Blueprint::m_bpType
private

Definition at line 194 of file Blueprint.h.

Referenced by GetBlueprintAttributes(), GetME(), productType(), productTypeID(), and type().


The documentation for this class was generated from the following files: