EvEmu
0.8.4
11 September 2021
|
#include "ModuleManager.h"
Private Member Functions | |
void | addModuleRef (EVEItemFlags flag, GenericModule *pMod) |
void | deleteModuleRef (EVEItemFlags flag, GenericModule *pMod) |
Private Attributes | |
bool | m_initalized |
ShipItem * | pShipItem |
uint8 | m_LowSlots |
uint8 | m_MidSlots |
uint8 | m_HighSlots |
uint8 | m_RigSlots |
uint8 | m_SubSystemSlots |
float | m_rigScanBonus |
std::map< uint16, uint8 > | m_modByGroup |
std::map< uint8, GenericModule * > | m_modules |
std::map< uint8, GenericModule * > | m_systems |
std::map< uint8, GenericModule * > | m_fittings |
std::map< EVEItemFlags, InventoryItemRef > | m_charges |
Definition at line 22 of file ModuleManager.h.
ModuleManager::ModuleManager | ( | ShipItem *const | pShip | ) |
Definition at line 37 of file ModuleManager.cpp.
ModuleManager::~ModuleManager | ( | ) |
Definition at line 50 of file ModuleManager.cpp.
References m_modules, and SafeDelete().
void ModuleManager::AbortCycle | ( | ) |
Definition at line 628 of file ModuleManager.cpp.
References m_modules.
Referenced by ShipItem::AbortCycle(), ShipItem::Eject(), and ShipJumping().
Definition at line 660 of file ModuleManager.cpp.
References _log, GenericModule::Activate(), AttrDisallowActivateOnWarp, SystemEntity::DestinyMgr(), GetModule(), Client::GetName(), SystemEntity::GetName(), ShipItem::GetPilot(), SystemManager::GetSE(), GenericModule::GetSelf(), Client::GetShipSE(), GenericModule::HasAttribute(), ShipItem::HasPilot(), DestinyManager::IsCloaked(), Client::IsJump(), GenericModule::IsLinked(), GenericModule::IsMaster(), GenericModule::isOnline(), DestinyManager::IsTractored(), DestinyManager::IsWarping(), InventoryItem::name(), GenericModule::Online(), pShipItem, Client::SendErrorMsg(), Client::SendNotifyMsg(), sFxDataMgr, and Client::SystemMgr().
Referenced by ShipItem::Activate().
bool ModuleManager::AddModule | ( | ModuleItemRef | mRef, |
EVEItemFlags | flag | ||
) |
Definition at line 500 of file ModuleManager.cpp.
References addModuleRef(), AttrOnline, Client::CanThrow(), InventoryItem::ChangeSingleton(), EvilNumber::get_bool(), InventoryItem::GetAttribute(), GetModule(), ShipItem::GetPilot(), GenericModule::GetSelf(), ShipItem::HasPilot(), Client::IsInSpace(), Client::IsLogin(), IsModuleSlot, IsSlotOccupied(), m_initalized, ModuleFactory(), InventoryItem::name(), Module::State::Offline, GenericModule::Online(), pShipItem, sDataMgr, Client::SendErrorMsg(), GenericModule::SetModuleState(), and sLog.
Referenced by ShipItem::AddItemByFlag(), Initialize(), InstallRig(), and InstallSubSystem().
|
private |
Definition at line 1501 of file ModuleManager.cpp.
References _log, AttrLauncherSlotsLeft, AttrSpeed, AttrTurretSlotsLeft, AttrUpgradeCost, AttrUpgradeLoad, AttrUpgradeSlotsLeft, EvilNumber::get_uint32(), GenericModule::GetAttribute(), InventoryItem::GetAttribute(), ShipItem::GetPilot(), GenericModule::GetSelf(), GenericModule::groupID(), IsFittingSlot, GenericModule::isHighPower(), GenericModule::isLauncherFitted(), Client::IsLogin(), GenericModule::isLowPower(), GenericModule::isMediumPower(), GenericModule::isRig(), IsRigSlot, GenericModule::isSubSystem(), IsSubSystem, GenericModule::isTurretFitted(), GenericModule::itemID(), m_fittings, m_HighSlots, m_LowSlots, m_MidSlots, m_modByGroup, m_modules, m_RigSlots, m_SubSystemSlots, m_systems, InventoryItem::MultiplyAttribute(), InventoryItem::name(), pShipItem, sConfig, sDataMgr, InventoryItem::SetAttribute(), sLog, and EvE::traceStack().
Referenced by AddModule().
void ModuleManager::CargoFull | ( | ) |
Definition at line 1269 of file ModuleManager.cpp.
References EVEDB::invGroups::Data_Miner, EVEDB::invGroups::Frequency_Mining_Laser, EVEDB::invGroups::Gas_Cloud_Harvester, m_modules, EVEDB::invGroups::Mining_Laser, EVEDB::invGroups::Salvager, and EVEDB::invGroups::Strip_Miner.
Referenced by ShipItem::CargoFull().
void ModuleManager::CharacterBoardingShip | ( | ) |
Definition at line 1211 of file ModuleManager.cpp.
References AttrOnline, GetShipRigs(), GetShipSubSystems(), Initialize(), is_log_enabled, m_initalized, sLog, and SortModulesBySlotDec().
Referenced by ShipItem::CharacterBoardingShip().
void ModuleManager::CharacterLeavingShip | ( | ) |
Definition at line 1228 of file ModuleManager.cpp.
References ShipItem::IsPopped(), and pShipItem.
Referenced by Client::BoardShip(), and ShipItem::Eject().
void ModuleManager::CheckGroupFitLimited | ( | EVEItemFlags | flag, |
InventoryItemRef | iRef | ||
) |
Definition at line 424 of file ModuleManager.cpp.
References AttrMaxGroupFitted, GetFittedModuleCountByGroup(), InventoryItem::name(), and pShipItem.
Referenced by ShipItem::TryModuleLimitChecks().
void ModuleManager::CheckSlotFitLimited | ( | EVEItemFlags | flag | ) |
Definition at line 402 of file ModuleManager.cpp.
References IsHiSlot, IsLowSlot, IsMidSlot, IsRigSlot, IsSubSystem, m_HighSlots, m_LowSlots, m_MidSlots, m_RigSlots, and m_SubSystemSlots.
Referenced by ShipItem::TryModuleLimitChecks().
void ModuleManager::DamageModule | ( | uint32 | itemID, |
float | amount | ||
) |
Definition at line 765 of file ModuleManager.cpp.
References GetModule().
Referenced by ShipItem::DamageModule(), and DamageRandModule().
void ModuleManager::DamageModule | ( | GenericModule * | pMod, |
float | amount | ||
) |
Definition at line 780 of file ModuleManager.cpp.
References _log, AttrDamage, AttrHP, GenericModule::flag(), EvilNumber::get_float(), GenericModule::GetAttribute(), ShipItem::GetPilot(), GenericModule::GetSelf(), InventoryItem::name(), GenericModule::Offline(), pShipItem, sDataMgr, Client::SendNotifyMsg(), and GenericModule::SetAttribute().
void ModuleManager::DamageRandModule | ( | ) |
Definition at line 770 of file ModuleManager.cpp.
References DamageModule(), and GetRandModule().
Referenced by ShipItem::DamageRandModule().
void ModuleManager::DamageRandModule | ( | float | amount | ) |
Definition at line 775 of file ModuleManager.cpp.
References DamageModule(), and GetRandModule().
void ModuleManager::Deactivate | ( | uint32 | itemID, |
std::string | effectName | ||
) |
Definition at line 722 of file ModuleManager.cpp.
References _log, Module::State::Activated, GenericModule::Deactivate(), GetModule(), GenericModule::GetModuleState(), GenericModule::GetSelf(), InventoryItem::name(), and GenericModule::Offline().
Referenced by ShipItem::Deactivate().
void ModuleManager::DeactivateAllModules | ( | ) |
Definition at line 653 of file ModuleManager.cpp.
References m_modules.
Referenced by ShipItem::Dock().
|
private |
Definition at line 1557 of file ModuleManager.cpp.
References _log, AttrLauncherSlotsLeft, AttrTurretSlotsLeft, AttrUpgradeCost, AttrUpgradeLoad, AttrUpgradeSlotsLeft, EvilNumber::get_uint32(), GenericModule::GetAttribute(), InventoryItem::GetAttribute(), GenericModule::GetSelf(), GenericModule::groupID(), IsFittingSlot, GenericModule::isHighPower(), GenericModule::isLauncherFitted(), GenericModule::isLowPower(), GenericModule::isMediumPower(), GenericModule::isRig(), IsRigSlot, GenericModule::isSubSystem(), IsSubSystem, GenericModule::isTurretFitted(), GenericModule::itemID(), m_fittings, m_HighSlots, m_LowSlots, m_MidSlots, m_modByGroup, m_modules, m_RigSlots, m_SubSystemSlots, m_systems, InventoryItem::name(), pShipItem, sConfig, sDataMgr, InventoryItem::SetAttribute(), sLog, and EvE::traceStack().
Referenced by UnfitModule(), and UninstallRig().
void ModuleManager::DeOverload | ( | uint32 | itemID | ) |
Definition at line 754 of file ModuleManager.cpp.
References _log, GenericModule::DeOverload(), GetModule(), GenericModule::GetSelf(), and InventoryItem::name().
Referenced by ShipItem::CancelOverloading().
void ModuleManager::GetActiveModules | ( | uint8 | rack, |
std::vector< GenericModule * > & | modVec | ||
) |
Definition at line 1423 of file ModuleManager.cpp.
References flagHiSlot0, flagLowSlot0, flagMidSlot0, GetModulesInBank(), hiPower, loPower, and medPower.
Definition at line 1469 of file ModuleManager.cpp.
References flagHiSlot0, flagLowSlot0, flagMidSlot0, GetModulesInBank(), hiPower, loPower, and medPower.
void ModuleManager::GetActiveModulesHeat | ( | uint8 | rack, |
float & | heat | ||
) |
Definition at line 1444 of file ModuleManager.cpp.
References AttrHeatAbsorbtionRateModifier, AttrHeatDamage, flagHiSlot0, flagLowSlot0, flagMidSlot0, GetModulesInBank(), hiPower, loPower, and medPower.
Referenced by ShipItem::GenerateHeat().
uint16 ModuleManager::GetAvailableSlotInBank | ( | EVEEffectID | slotBank | ) |
Definition at line 214 of file ModuleManager.cpp.
References AttrHiSlots, AttrLowSlots, AttrMedSlots, AttrRigSlots, AttrSubSystemSlot, flagHiSlot0, flagIllegal, flagLowSlot0, flagMidSlot0, flagRigSlot0, flagSubSystem0, EvilNumber::get_uint32(), InventoryItem::GetAttribute(), hiPower, loPower, m_modules, EvE::max(), medPower, pShipItem, rigSlot, and subSystem.
Referenced by ShipItem::FindAvailableModuleSlot().
Definition at line 1493 of file ModuleManager.cpp.
References m_modByGroup.
Referenced by CheckGroupFitLimited().
InventoryItemRef ModuleManager::GetLoadedChargeOnModule | ( | EVEItemFlags | flag | ) |
Definition at line 1106 of file ModuleManager.cpp.
References GenericModule::GetLoadedChargeRef(), GetModule(), and GenericModule::IsLoaded().
Referenced by ShipItem::AddItemByFlag(), FxProc::ApplyEffects(), GetLoadedChargeOnModule(), and ShipItem::MoveModuleSlot().
InventoryItemRef ModuleManager::GetLoadedChargeOnModule | ( | InventoryItemRef | moduleRef | ) |
Definition at line 1113 of file ModuleManager.cpp.
References GetLoadedChargeOnModule().
|
inline |
Definition at line 105 of file ModuleManager.h.
References m_charges.
Referenced by FxProc::ApplyEffects(), ShipItem::ClearModuleModifiers(), ShipItem::GetChargeState(), ShipItem::GetShipDNA(), ShipItem::ProcessEffects(), and ShipItem::ResetEffects().
GenericModule * ModuleManager::GetModule | ( | EVEItemFlags | flag | ) |
Definition at line 293 of file ModuleManager.cpp.
References m_modules.
Referenced by Activate(), AddModule(), FxProc::ApplyEffects(), DamageModule(), Deactivate(), DeOverload(), ShipItem::GetLinkedWeaponMods(), GetLoadedChargeOnModule(), GetModule(), ShipItem::GetModule(), ShipItem::GetModuleRef(), GetShipRigs(), GetShipSubSystems(), Initialize(), ShipItem::LinkWeapon(), LoadCharge(), ShipItem::LoadCharge(), ShipItem::LoadWeaponGroups(), ModuleRepair(), Offline(), Online(), Overload(), ShipItem::RemoveCharge(), RepairModule(), SortModulesBySlotDec(), StopModuleRepair(), UnfitModule(), UninstallRig(), ShipItem::UnlinkGroup(), ShipItem::UnlinkWeapon(), UnloadModule(), ShipItem::VerifyHoldType(), and VerifySlotExchange().
GenericModule * ModuleManager::GetModule | ( | uint32 | itemID | ) |
Definition at line 302 of file ModuleManager.cpp.
References RefPtr< X >::get(), GetModule(), and sItemFactory.
void ModuleManager::GetModuleListByReqSkill | ( | uint16 | skillID, |
std::vector< InventoryItemRef > & | modVec | ||
) |
Definition at line 1362 of file ModuleManager.cpp.
References GetModuleListOfRefsAsc().
Referenced by FxProc::ApplyEffects().
void ModuleManager::GetModuleListOfRefsAsc | ( | std::vector< InventoryItemRef > & | modVec | ) |
Definition at line 1295 of file ModuleManager.cpp.
References m_modules.
Referenced by FxProc::ApplyEffects(), ShipItem::ClearModuleModifiers(), GetModuleListByReqSkill(), ShipItem::GetModuleRefVec(), ShipItem::GetShipDNA(), ShipItem::GetShipState(), ShipItem::ProcessEffects(), ShipItem::ResetEffects(), ShipItem::ShipGetModuleList(), and ShipItem::StripFitting().
void ModuleManager::GetModuleListOfRefsDec | ( | std::vector< InventoryItemRef > & | modVec | ) |
Definition at line 1302 of file ModuleManager.cpp.
References m_modules.
void ModuleManager::GetModuleListOfRefsOrdered | ( | std::vector< InventoryItemRef > & | modVec | ) |
Definition at line 1312 of file ModuleManager.cpp.
References InventoryItem::flag(), flagFixedSlot, flagHiSlot0, flagLowSlot0, flagMidSlot0, flagRigSlot0, flagRigSlot3, flagSubSystem0, flagSubSystem5, and m_modules.
void ModuleManager::GetModuleListOfRefsOrderedRev | ( | std::vector< InventoryItemRef > & | modVec | ) |
Definition at line 1337 of file ModuleManager.cpp.
References InventoryItem::flag(), flagFixedSlot, flagHiSlot0, flagLowSlot0, flagMidSlot0, flagRigSlot0, flagRigSlot3, flagSubSystem0, flagSubSystem5, and m_modules.
void ModuleManager::GetModulesInBank | ( | EVEItemFlags | flag, |
std::vector< GenericModule * > & | modVec | ||
) |
Definition at line 251 of file ModuleManager.cpp.
References flagHiSlot0, flagHiSlot1, flagHiSlot2, flagHiSlot3, flagHiSlot4, flagHiSlot5, flagHiSlot6, flagHiSlot7, flagLowSlot0, flagLowSlot1, flagLowSlot2, flagLowSlot3, flagLowSlot4, flagLowSlot5, flagLowSlot6, flagLowSlot7, flagMidSlot0, flagMidSlot1, flagMidSlot2, flagMidSlot3, flagMidSlot4, flagMidSlot5, flagMidSlot6, flagMidSlot7, and m_modules.
Referenced by GetActiveModules(), GetActiveModulesCount(), GetActiveModulesHeat(), ShipItem::LoadChargesToBank(), and UpdateModules().
GenericModule * ModuleManager::GetRandModule | ( | ) |
Definition at line 311 of file ModuleManager.cpp.
References InventoryItem::flag(), flagFixedSlot, flagLowSlot0, m_modules, and MakeRandomInt().
Referenced by DamageRandModule().
|
inline |
Definition at line 132 of file ModuleManager.h.
References m_rigScanBonus.
Referenced by ProbeSE::ProbeSE().
void ModuleManager::GetShipRigs | ( | std::vector< uint32 > & | modVec | ) |
Definition at line 1380 of file ModuleManager.cpp.
References flagRigSlot0, flagRigSlot3, GetModule(), and GenericModule::itemID().
Referenced by CharacterBoardingShip(), and UpdateModules().
void ModuleManager::GetShipSubSystems | ( | std::vector< uint32 > & | modVec | ) |
Definition at line 1392 of file ModuleManager.cpp.
References flagSubSystem0, flagSubSystem5, GetModule(), and GenericModule::itemID().
Referenced by CharacterBoardingShip(), and UpdateModules().
void ModuleManager::GetWeapons | ( | std::list< GenericModule * > & | weaponList | ) |
Definition at line 1287 of file ModuleManager.cpp.
References InventoryItem::flag(), flagFixedSlot, flagHiSlot0, and m_modules.
Referenced by ShipItem::LinkAllWeapons(), and ShipItem::UnlinkAllWeapons().
bool ModuleManager::Initialize | ( | ) |
Definition at line 57 of file ModuleManager.cpp.
References _log, AddModule(), AttrHiSlots, AttrLowSlots, AttrMedSlots, AttrQuantity, AttrRigSlots, AttrScanStrengthBonus, AttrSubSystemSlot, EVEDB::invCategories::Charge, InventoryItem::flag(), flagCargoHold, flagFixedSlot, flagLowSlot0, flagNone, flagRigSlot0, flagRigSlot3, flagSubSystem0, flagSubSystem5, EvilNumber::get_float(), EvilNumber::get_uint32(), InventoryItem::GetAttribute(), Inventory::GetInventoryVec(), GetModule(), InventoryItem::GetMyInventory(), GenericModule::GetSelf(), InventoryItem::groupID(), GenericModule::IsLoaded(), IsModuleSlot, InventoryItem::itemID(), GenericModule::LoadCharge(), m_charges, m_fittings, m_HighSlots, m_initalized, m_LowSlots, m_MidSlots, m_modules, m_rigScanBonus, m_RigSlots, m_SubSystemSlots, m_systems, EVEDB::invCategories::Module, InventoryItem::name(), pShipItem, EVEDB::invGroups::Rig_Electronics, sDataMgr, RefPtr< X >::StaticCast(), EVEDB::invCategories::Subsystem, and InventoryItem::typeID().
Referenced by CharacterBoardingShip(), ShipItem::Init(), and ShipItem::InitPod().
bool ModuleManager::InstallRig | ( | ModuleItemRef | mRef, |
EVEItemFlags | flag | ||
) |
Definition at line 324 of file ModuleManager.cpp.
References AddModule(), AttrScanStrengthBonus, codelog, EvilNumber::get_float(), InventoryItem::GetAttribute(), Client::GetName(), ShipItem::GetPilot(), InventoryItem::groupID(), InventoryItem::itemID(), m_rigScanBonus, InventoryItem::name(), pShipItem, EVEDB::invGroups::Rig_Armor, EVEDB::invGroups::Rig_Astronautic, EVEDB::invGroups::Rig_Electronics, EVEDB::invGroups::Rig_Electronics_Superiority, and InventoryItem::typeID().
Referenced by ShipItem::AddItemByFlag().
bool ModuleManager::InstallSubSystem | ( | ModuleItemRef | mRef, |
EVEItemFlags | flag | ||
) |
Definition at line 389 of file ModuleManager.cpp.
References AddModule(), InventoryItem::categoryID(), Client::GetName(), ShipItem::GetPilot(), InventoryItem::itemID(), InventoryItem::name(), pShipItem, sDataMgr, sLog, and EVEDB::invCategories::Subsystem.
Referenced by ShipItem::AddItemByFlag().
bool ModuleManager::IsSlotOccupied | ( | EVEItemFlags | flag | ) |
Definition at line 198 of file ModuleManager.cpp.
References m_modules.
Referenced by AddModule(), ShipItem::MoveModuleSlot(), ShipItem::TryModuleLimitChecks(), and VerifySlotExchange().
void ModuleManager::LoadCharge | ( | InventoryItemRef | chargeRef, |
EVEItemFlags | flag | ||
) |
Definition at line 893 of file ModuleManager.cpp.
References _log, AttrCapacity, AttrQuantity, AttrVolume, EvilZero, InventoryItem::flag(), RefPtr< X >::get(), EvilNumber::get_float(), GenericModule::GetAttribute(), GenericModule::GetLoadedChargeRef(), GetModule(), ShipItem::GetPilot(), GenericModule::GetSelf(), ShipItem::HasPilot(), Client::IsDocked(), Client::IsInSpace(), GenericModule::IsLoaded(), InventoryItem::itemID(), GenericModule::LoadCharge(), m_charges, InventoryItem::Merge(), InventoryItem::name(), pShipItem, InventoryItem::quantity(), sDataMgr, Client::SendNotification(), Client::SendNotifyMsg(), PyTuple::SetItem(), sLog, InventoryItem::typeID(), and UnloadCharge().
Referenced by ShipItem::AddItemByFlag(), ShipItem::LoadCharge(), ShipItem::LoadLinkedWeapons(), and ShipItem::MoveModuleSlot().
void ModuleManager::LoadOnline | ( | ) |
Definition at line 161 of file ModuleManager.cpp.
References AttrOnline, m_fittings, and m_systems.
Referenced by ShipItem::ProcessShipEffects().
Definition at line 824 of file ModuleManager.cpp.
References _log, GetModule(), and PyStatic.
Referenced by ShipItem::ModuleRepair().
void ModuleManager::Offline | ( | uint32 | itemID | ) |
Definition at line 595 of file ModuleManager.cpp.
References _log, GetModule(), GenericModule::GetSelf(), GenericModule::isOnline(), InventoryItem::name(), Module::State::Offline, GenericModule::Offline(), and GenericModule::SetModuleState().
Referenced by ShipItem::Offline().
void ModuleManager::Offline | ( | EVEItemFlags | flag | ) |
Definition at line 612 of file ModuleManager.cpp.
References _log, GetModule(), GenericModule::GetSelf(), GenericModule::isOnline(), InventoryItem::name(), Module::State::Offline, GenericModule::Offline(), sDataMgr, and GenericModule::SetModuleState().
void ModuleManager::OfflineAll | ( | ) |
Definition at line 646 of file ModuleManager.cpp.
References m_modules.
Referenced by ShipItem::OfflineAll(), ShipItem::PrepForUndock(), and ShipItem::ResetEffects().
void ModuleManager::Online | ( | uint32 | itemID | ) |
Definition at line 558 of file ModuleManager.cpp.
References _log, UserError::AddTypeName(), Client::CanThrow(), GetModule(), ShipItem::GetPilot(), GenericModule::GetSelf(), ShipItem::HasPilot(), GenericModule::isOnline(), InventoryItem::name(), GenericModule::Online(), pShipItem, and InventoryItem::typeID().
Referenced by ShipItem::MoveModuleSlot(), and ShipItem::Online().
void ModuleManager::Online | ( | EVEItemFlags | flag | ) |
Definition at line 579 of file ModuleManager.cpp.
References _log, GetModule(), GenericModule::GetSelf(), GenericModule::isOnline(), InventoryItem::name(), GenericModule::Online(), and sDataMgr.
void ModuleManager::OnlineAll | ( | ) |
Definition at line 635 of file ModuleManager.cpp.
References m_modules.
Referenced by ShipItem::OnlineAll().
void ModuleManager::Overload | ( | uint32 | itemID | ) |
Definition at line 743 of file ModuleManager.cpp.
References _log, GetModule(), GenericModule::GetSelf(), InventoryItem::name(), and GenericModule::Overload().
Referenced by ShipItem::Overload().
void ModuleManager::Process | ( | ) |
Definition at line 180 of file ModuleManager.cpp.
References AttrOnline, GetTimeUSeconds(), m_fittings, Profile::modules, sConfig, and sProfiler.
Referenced by ShipItem::ProcessModules().
void ModuleManager::RemoveTarget | ( | SystemEntity * | pSE | ) |
Definition at line 203 of file ModuleManager.cpp.
References m_modules.
Referenced by ShipSE::RemoveTarget().
void ModuleManager::RepairModule | ( | uint32 | itemID, |
EvilNumber | amount | ||
) |
Definition at line 803 of file ModuleManager.cpp.
References GetModule().
Referenced by ShipItem::RepairModules().
void ModuleManager::RepairModule | ( | GenericModule * | pMod, |
EvilNumber | amount | ||
) |
Definition at line 808 of file ModuleManager.cpp.
References _log, and GenericModule::Repair().
void ModuleManager::RepairModules | ( | ) |
Definition at line 817 of file ModuleManager.cpp.
References m_modules.
Referenced by ShipItem::Heal(), and ShipItem::RepairModules().
void ModuleManager::SaveModules | ( | ) |
Definition at line 1371 of file ModuleManager.cpp.
References m_charges, and m_modules.
Referenced by ShipItem::SaveShip().
void ModuleManager::ShipJumping | ( | ) |
Definition at line 1260 of file ModuleManager.cpp.
References AbortCycle(), is_log_enabled, and sLog.
Referenced by ShipItem::Jump().
void ModuleManager::ShipWarping | ( | ) |
Definition at line 1249 of file ModuleManager.cpp.
References is_log_enabled, m_modules, and sLog.
Referenced by ShipItem::Warp().
void ModuleManager::SortModulesBySlotDec | ( | std::vector< uint32 > & | modVec, |
std::vector< GenericModule * > & | pModList | ||
) |
Definition at line 1404 of file ModuleManager.cpp.
References GenericModule::flag(), and GetModule().
Referenced by CharacterBoardingShip(), and UpdateModules().
void ModuleManager::StopModuleRepair | ( | uint32 | modID | ) |
Definition at line 882 of file ModuleManager.cpp.
References _log, and GetModule().
Referenced by ShipItem::StopModuleRepair().
void ModuleManager::UnfitModule | ( | uint32 | itemID | ) |
Definition at line 452 of file ModuleManager.cpp.
References _log, GenericModule::AbortCycle(), deleteModuleRef(), GenericModule::flag(), GetModule(), GenericModule::GetSelf(), GenericModule::IsLinked(), GenericModule::IsLoaded(), GenericModule::itemID(), InventoryItem::name(), GenericModule::Offline(), pShipItem, SafeDelete(), ShipItem::UnlinkGroup(), and UnloadCharge().
Referenced by Command_unload(), ShipItem::RemoveItem(), and ShipItem::StripFitting().
void ModuleManager::UnfitModule | ( | EVEItemFlags | flag | ) |
Definition at line 476 of file ModuleManager.cpp.
References _log, GenericModule::AbortCycle(), deleteModuleRef(), GetModule(), GenericModule::GetSelf(), GenericModule::IsLinked(), GenericModule::IsLoaded(), GenericModule::itemID(), InventoryItem::name(), GenericModule::Offline(), pShipItem, SafeDelete(), sDataMgr, ShipItem::UnlinkGroup(), and UnloadCharge().
void ModuleManager::UninstallRig | ( | uint32 | itemID | ) |
Definition at line 357 of file ModuleManager.cpp.
References _log, AttrScanStrengthBonus, deleteModuleRef(), GenericModule::flag(), EvilNumber::get_float(), GenericModule::GetAttribute(), GetModule(), GenericModule::GetSelf(), GenericModule::groupID(), GenericModule::itemID(), m_rigScanBonus, InventoryItem::name(), GenericModule::Offline(), GenericModule::RemoveRig(), EVEDB::invGroups::Rig_Electronics, sConfig, and GenericModule::typeID().
Referenced by ShipItem::RemoveItem(), and ShipItem::RemoveRig().
void ModuleManager::UnloadAllModules | ( | ) |
Definition at line 1157 of file ModuleManager.cpp.
References m_charges, m_modules, and UnloadModule().
Referenced by ShipItem::UnloadAllModules().
void ModuleManager::UnloadCharge | ( | GenericModule * | pMod | ) |
Definition at line 1016 of file ModuleManager.cpp.
References _log, AttrQuantity, EvilZero, GenericModule::flag(), flagCargoHold, flagHangar, RefPtr< X >::get(), Inventory::GetByTypeFlag(), GenericModule::GetLoadedChargeRef(), InventoryItem::GetMyInventory(), Client::GetName(), ShipItem::GetPilot(), GenericModule::GetSelf(), Inventory::HasAvailableSpace(), ShipItem::HasPilot(), GenericModule::IsLoaded(), GenericModule::itemID(), InventoryItem::itemID(), itoa(), InventoryItem::locationID(), m_charges, InventoryItem::name(), InventoryItem::ownerID(), pShipItem, sDataMgr, Client::SendNotifyMsg(), sEntityList, and GenericModule::UnloadCharge().
Referenced by ShipItem::LinkAllWeapons(), LoadCharge(), ShipItem::RemoveCharge(), UnfitModule(), UnloadModule(), and UnloadWeapons().
void ModuleManager::UnloadModule | ( | uint32 | itemID | ) |
Definition at line 1117 of file ModuleManager.cpp.
References _log, GetModule(), GenericModule::GetSelf(), GenericModule::itemID(), InventoryItem::name(), and UnloadCharge().
Referenced by ShipItem::RemoveItem(), UnloadAllModules(), and ShipItem::UnloadModule().
void ModuleManager::UnloadModule | ( | EVEItemFlags | flag | ) |
Definition at line 1129 of file ModuleManager.cpp.
References _log, GetModule(), GenericModule::GetSelf(), GenericModule::itemID(), InventoryItem::name(), sDataMgr, and UnloadCharge().
void ModuleManager::UnloadModule | ( | GenericModule * | pMod | ) |
Definition at line 1141 of file ModuleManager.cpp.
References _log, GenericModule::GetSelf(), GenericModule::itemID(), InventoryItem::name(), and UnloadCharge().
void ModuleManager::UnloadWeapons | ( | ) |
Definition at line 1147 of file ModuleManager.cpp.
References flagFixedSlot, flagHiSlot0, m_modules, and UnloadCharge().
void ModuleManager::UpdateChargeQty | ( | ) |
Definition at line 1624 of file ModuleManager.cpp.
References m_charges.
Referenced by Client::ProcessClient(), and ShipItem::Undock().
void ModuleManager::UpdateModules | ( | std::vector< uint32 > | modVec | ) |
Definition at line 1171 of file ModuleManager.cpp.
References _log, AttrCpuLoad, AttrPowerLoad, AttrUpgradeLoad, EvilZero, GetShipRigs(), GetShipSubSystems(), is_log_enabled, pShipItem, InventoryItem::SetAttribute(), sLog, and SortModulesBySlotDec().
Referenced by ShipItem::ProcessShipEffects(), and ShipItem::UpdateModules().
void ModuleManager::UpdateModules | ( | EVEItemFlags | flag | ) |
Definition at line 1195 of file ModuleManager.cpp.
References GetModulesInBank(), is_log_enabled, and sLog.
bool ModuleManager::VerifySlotExchange | ( | EVEItemFlags | slot1, |
EVEItemFlags | slot2 | ||
) |
Definition at line 1609 of file ModuleManager.cpp.
References GetModule(), and IsSlotOccupied().
Referenced by ShipItem::MoveModuleSlot().
|
private |
Definition at line 165 of file ModuleManager.h.
Referenced by GetLoadedCharges(), Initialize(), LoadCharge(), SaveModules(), UnloadAllModules(), UnloadCharge(), and UpdateChargeQty().
|
private |
Definition at line 164 of file ModuleManager.h.
Referenced by addModuleRef(), deleteModuleRef(), Initialize(), LoadOnline(), and Process().
|
private |
Definition at line 154 of file ModuleManager.h.
Referenced by addModuleRef(), CheckSlotFitLimited(), deleteModuleRef(), and Initialize().
|
private |
Definition at line 148 of file ModuleManager.h.
Referenced by AddModule(), CharacterBoardingShip(), and Initialize().
|
private |
Definition at line 152 of file ModuleManager.h.
Referenced by addModuleRef(), CheckSlotFitLimited(), deleteModuleRef(), and Initialize().
|
private |
Definition at line 153 of file ModuleManager.h.
Referenced by addModuleRef(), CheckSlotFitLimited(), deleteModuleRef(), and Initialize().
Definition at line 161 of file ModuleManager.h.
Referenced by addModuleRef(), deleteModuleRef(), and GetFittedModuleCountByGroup().
|
private |
Definition at line 162 of file ModuleManager.h.
Referenced by AbortCycle(), addModuleRef(), CargoFull(), DeactivateAllModules(), deleteModuleRef(), GetAvailableSlotInBank(), GetModule(), GetModuleListOfRefsAsc(), GetModuleListOfRefsDec(), GetModuleListOfRefsOrdered(), GetModuleListOfRefsOrderedRev(), GetModulesInBank(), GetRandModule(), GetWeapons(), Initialize(), IsSlotOccupied(), OfflineAll(), OnlineAll(), RemoveTarget(), RepairModules(), SaveModules(), ShipWarping(), UnloadAllModules(), UnloadWeapons(), and ~ModuleManager().
|
private |
Definition at line 159 of file ModuleManager.h.
Referenced by GetRigScanBonus(), Initialize(), InstallRig(), and UninstallRig().
|
private |
Definition at line 155 of file ModuleManager.h.
Referenced by addModuleRef(), CheckSlotFitLimited(), deleteModuleRef(), and Initialize().
|
private |
Definition at line 156 of file ModuleManager.h.
Referenced by addModuleRef(), CheckSlotFitLimited(), deleteModuleRef(), and Initialize().
|
private |
Definition at line 163 of file ModuleManager.h.
Referenced by addModuleRef(), deleteModuleRef(), Initialize(), and LoadOnline().
|
private |
Definition at line 150 of file ModuleManager.h.
Referenced by Activate(), AddModule(), addModuleRef(), CharacterLeavingShip(), CheckGroupFitLimited(), DamageModule(), deleteModuleRef(), GetAvailableSlotInBank(), Initialize(), InstallRig(), InstallSubSystem(), LoadCharge(), Online(), UnfitModule(), UnloadCharge(), and UpdateModules().