EvEmu
0.8.4
11 September 2021
|
#include "ItemType.h"
Public Member Functions | |
virtual | ~ItemType () |
uint16 | id () const |
uint16 | groupID () const |
const std::string & | groupName () const |
uint8 | categoryID () const |
float | radius () const |
float | mass () const |
float | volume () const |
float | capacity () const |
uint8 | race () const |
const std::string & | name () const |
const std::string & | description () const |
uint16 | portionSize () const |
double | basePrice () const |
uint32 | marketGroupID () const |
float | chanceOfDuplicating () const |
bool | published () const |
bool | refinable () const |
bool | recyclable () const |
const bool | HasAttribute (const uint16 attributeID) const |
EvilNumber | GetAttribute (const uint16 attributeID) const |
const void | CopyAttributes (InventoryItem &itemRef) const |
bool | HasReqSkill (const uint16 skillID) const |
void | GetEffectMap (const int8 state, std::map< uint16, Effect > &effectMap) const |
uint16 | GetDefaultEffect () const |
bool | HasEffect (uint16 effectID) const |
Static Public Member Functions | |
static ItemType * | Load (uint16 typeID) |
Public Attributes | |
std::unordered_multimap< int8, Effect > | m_stateFxMap |
Protected Member Functions | |
ItemType (uint16 _id, const Inv::TypeData &_data) | |
virtual bool | _Load () |
void | LoadEffects () |
Static Protected Member Functions | |
template<class _Ty > | |
static _Ty * | Load (uint16 typeID) |
template<class _Ty > | |
static _Ty * | _Load (uint16 typeID) |
template<class _Ty > | |
static _Ty * | _LoadType (uint16 typeID, const Inv::TypeData &data) |
Private Attributes | |
Inv::GrpData | m_group |
Inv::TypeData | m_type |
uint16 | m_defaultFxID |
std::map< uint16, uint8 > | m_reqSkillMap |
std::map< uint16, EvilNumber > | m_AttributeMap |
Definition at line 58 of file ItemType.h.
|
inlinevirtual |
Definition at line 60 of file ItemType.h.
|
protected |
Definition at line 39 of file ItemType.cpp.
References _log, Inv::TypeData::groupID, Inv::GrpData::id, Inv::TypeData::id, m_AttributeMap, m_group, m_type, name(), and sDataMgr.
Referenced by _LoadType().
|
inlinestaticprotected |
Definition at line 128 of file ItemType.h.
References Inv::TypeData::groupID, Inv::TypeData::id, Inv::TypeData::published, and sDataMgr.
|
protectedvirtual |
Definition at line 114 of file ItemType.cpp.
References AttrCapacity, AttrMass, AttrRaceID, AttrRadius, AttrRequiredSkill1, AttrRequiredSkill1Level, AttrRequiredSkill2, AttrRequiredSkill2Level, AttrRequiredSkill3, AttrRequiredSkill3Level, AttrRequiredSkill4, AttrRequiredSkill4Level, AttrRequiredSkill5, AttrRequiredSkill5Level, AttrRequiredSkill6, AttrRequiredSkill6Level, AttrVolume, Inv::TypeData::capacity, GetAttribute(), HasAttribute(), Inv::TypeData::id, LoadEffects(), m_AttributeMap, m_reqSkillMap, m_type, Inv::TypeData::mass, Inv::TypeData::race, Inv::TypeData::radius, sDataMgr, and Inv::TypeData::volume.
|
staticprotected |
Definition at line 58 of file ItemType.cpp.
References _log, EVEDB::invCategories::Accessories, EVEDB::invCategories::AncientRelics, EVEDB::invCategories::Asteroid, EVEDB::invCategories::Blueprint, Inv::GrpData::catID, EVEDB::invCategories::Celestial, EVEDB::invCategories::Charge, EVEDB::invCategories::Commodity, EVEDB::invCategories::Deployable, EVEDB::invCategories::Drone, EVEDB::invCategories::Entity, Inv::TypeData::groupID, Inv::GrpData::id, EVEDB::invCategories::Implant, ItemType(), EVEDB::invCategories::Material, EVEDB::invCategories::Module, EVEDB::invCategories::Orbitals, EVEDB::invCategories::Owner, EVEDB::invCategories::PlanetaryCommodities, EVEDB::invCategories::PlanetaryInteraction, EVEDB::invCategories::PlanetaryResources, sDataMgr, EVEDB::invCategories::Ship, EVEDB::invCategories::Skill, EVEDB::invCategories::Station, EVEDB::invGroups::Station, EVEDB::invCategories::Structure, and InventoryItem::typeID().
|
inline |
|
inline |
Definition at line 71 of file ItemType.h.
References Inv::TypeData::capacity, and m_type.
Referenced by Concord::Concord(), ContainerSE::ContainerSE(), DroneSE::DroneSE(), NPC::NPC(), Sentry::Sentry(), CargoContainer::Spawn(), WreckContainer::Spawn(), InventoryItem::Spawn(), and WreckSE::WreckSE().
|
inline |
Definition at line 66 of file ItemType.h.
References Inv::GrpData::catID, and m_group.
Referenced by ProbeItem::_LoadItem(), ModuleItem::_LoadItem(), AsteroidItem::_LoadItem(), StructureItem::_LoadItem(), CelestialObject::_LoadItem(), Skill::_LoadItem(), CargoContainer::_LoadItem(), SolarSystem::_LoadItem(), Blueprint::_LoadItem(), ShipItem::_LoadItem(), WreckContainer::_LoadItem(), InventoryItem::_LoadItem(), Character::_LoadItem(), Blueprint::Blueprint(), InventoryItem::categoryID(), InventoryItem::CreateTempItemID(), InventoryItem::GetItemRow(), FactoryDB::GetMultipliers(), InventoryItem::Populate(), InventoryItem::SetQuantity(), and InventoryItem::Spawn().
|
inline |
Definition at line 80 of file ItemType.h.
References Inv::TypeData::chanceOfDuplicating, and m_type.
const void ItemType::CopyAttributes | ( | InventoryItem & | itemRef | ) | const |
Definition at line 153 of file ItemType.cpp.
References m_AttributeMap, and InventoryItem::SetAttribute().
Referenced by AttributeMap::Load().
|
inline |
EvilNumber ItemType::GetAttribute | ( | const uint16 | attributeID | ) | const |
Definition at line 168 of file ItemType.cpp.
References m_AttributeMap.
Referenced by _Load(), and InventoryItem::GetDefaultAttribute().
|
inline |
Definition at line 95 of file ItemType.h.
References m_defaultFxID.
Referenced by ActiveModule::ShowEffect().
Definition at line 217 of file ItemType.cpp.
References m_stateFxMap.
Referenced by GenericModule::ProcessEffects().
|
inline |
Definition at line 64 of file ItemType.h.
References Inv::GrpData::id, and m_group.
Referenced by ProbeItem::_LoadItem(), CargoContainer::_LoadItem(), StationItem::_LoadItem(), SolarSystem::_LoadItem(), WreckContainer::_LoadItem(), InventoryItem::_LoadItem(), Character::_LoadItem(), FactoryDB::GetMultipliers(), InventoryItem::GetPackagedVolume(), InventoryItem::groupID(), SpawnMgr::MakeSpawn(), InventoryItem::Spawn(), and InventoryItem::SpawnTemp().
|
inline |
const bool ItemType::HasAttribute | ( | const uint16 | attributeID | ) | const |
Definition at line 160 of file ItemType.cpp.
References m_AttributeMap.
Referenced by _Load().
bool ItemType::HasEffect | ( | uint16 | effectID | ) | const |
Definition at line 208 of file ItemType.cpp.
References m_stateFxMap.
Referenced by ShipItem::FindAvailableModuleSlot(), GenericModule::GenericModule(), GenericModule::isLauncherFitted(), GenericModule::isTurretFitted(), and ShipItem::TryModuleLimitChecks().
bool ItemType::HasReqSkill | ( | const uint16 | skillID | ) | const |
Definition at line 176 of file ItemType.cpp.
References m_reqSkillMap.
Referenced by InventoryItem::HasReqSkill().
|
inline |
Definition at line 63 of file ItemType.h.
References Inv::TypeData::id, and m_type.
Referenced by StationOffice::_LoadItem(), InventoryItem::_LoadItem(), BlueprintType::BlueprintType(), InventoryItem::GetChargeStatusRow(), InventoryItem::GetItemRow(), InventoryItem::InventoryItem(), InventoryItem::Merge(), InventoryItem::MergeTypesInCargo(), InventoryItem::Populate(), BlueprintType::productTypeID(), InventoryItem::SaveItem(), InventoryItem::Spawn(), InventoryItem::Split(), and InventoryItem::typeID().
Definition at line 53 of file ItemType.cpp.
References InventoryItem::typeID().
|
inlinestaticprotected |
Definition at line 110 of file ItemType.h.
|
protected |
Definition at line 190 of file ItemType.cpp.
References _log, Inv::TypeData::id, m_defaultFxID, m_stateFxMap, m_type, and sFxDataMgr.
Referenced by _Load().
|
inline |
|
inline |
Definition at line 69 of file ItemType.h.
References m_type, and Inv::TypeData::mass.
Referenced by ShipItem::AddItem(), Concord::Concord(), DroneSE::DroneSE(), Sentry::EncodeDestiny(), StructureSE::EncodeDestiny(), ContainerSE::EncodeDestiny(), WreckSE::EncodeDestiny(), DestinyManager::MakeMissile(), NPC::NPC(), DestinyManager::Orbit(), ShipItem::RemoveItem(), Sentry::Sentry(), AsteroidItem::Spawn(), CargoContainer::Spawn(), WreckContainer::Spawn(), InventoryItem::Spawn(), AsteroidItem::SpawnTemp(), and StationSE::StationSE().
|
inline |
Definition at line 74 of file ItemType.h.
References m_type, and Inv::TypeData::name.
Referenced by InventoryItem::CreateItemID(), InventoryItem::CreateTempItemID(), ItemType(), AsteroidItem::Spawn(), AsteroidItem::SpawnTemp(), and ShipItem::VerifyHoldType().
|
inline |
Definition at line 77 of file ItemType.h.
References m_type, and Inv::TypeData::portionSize.
Referenced by ReprocessingServiceBound::GetQuote().
|
inline |
|
inline |
Definition at line 72 of file ItemType.h.
References m_type, and Inv::TypeData::race.
Referenced by Character::race().
|
inline |
Definition at line 68 of file ItemType.h.
References m_type, and Inv::TypeData::radius.
Referenced by DynamicEntityFactory::BuildEntity(), Concord::Concord(), DroneSE::DroneSE(), NPC::NPC(), Sentry::Sentry(), CargoContainer::Spawn(), WreckContainer::Spawn(), InventoryItem::Spawn(), and StationSE::StationSE().
|
inline |
|
inline |
|
inline |
Definition at line 70 of file ItemType.h.
References m_type, and Inv::TypeData::volume.
Referenced by Concord::Concord(), DroneSE::DroneSE(), InventoryItem::GetPackagedVolume(), NPC::NPC(), Sentry::Sentry(), AsteroidItem::Spawn(), WreckContainer::Spawn(), InventoryItem::Spawn(), AsteroidItem::SpawnTemp(), and StationSE::StationSE().
|
private |
Definition at line 162 of file ItemType.h.
Referenced by _Load(), CopyAttributes(), GetAttribute(), HasAttribute(), and ItemType().
|
private |
Definition at line 159 of file ItemType.h.
Referenced by GetDefaultEffect(), and LoadEffects().
|
private |
Definition at line 157 of file ItemType.h.
Referenced by categoryID(), groupID(), groupName(), and ItemType().
Definition at line 161 of file ItemType.h.
Referenced by _Load(), and HasReqSkill().
Definition at line 154 of file ItemType.h.
Referenced by GetEffectMap(), HasEffect(), ActiveModule::LoadCharge(), LoadEffects(), GenericModule::Offline(), GenericModule::Online(), and ActiveModule::UnloadCharge().
|
private |
Definition at line 158 of file ItemType.h.
Referenced by _Load(), basePrice(), capacity(), chanceOfDuplicating(), description(), id(), ItemType(), LoadEffects(), marketGroupID(), mass(), name(), portionSize(), published(), race(), radius(), recyclable(), refinable(), and volume().