EvEmu
0.8.4
11 September 2021
|
#include "MiningLaser.h"
Private Attributes | |
bool | m_rMiner |
bool | m_dcMiner |
bool | m_iMiner |
bool | m_gMiner |
bool | m_IsInitialCycle |
float | m_crystalDmg |
float | m_crystalDmgAmount |
float | m_crystalDmgChance |
uint16 | m_crystalRoidGrp |
EVEItemFlags | m_holdFlag |
MiningLaser.cpp | |
| |
MiningLaser (ModuleItemRef mRef, ShipItemRef sRef) | |
virtual void | DeactivateCycle (bool abort=false) |
virtual uint32 | DoCycle () |
virtual void | LoadCharge (InventoryItemRef charge) |
virtual void | UnloadCharge () |
virtual bool | CanActivate () |
float | GetMiningVolume () |
void | Depleted (std::multimap< float, MiningLaser * > &mMap) |
void | AddOreAndDeactivate (uint16 typeID, float amt, bool slave=true) |
void | ProcessCycle (bool abort=false) |
Definition at line 17 of file MiningLaser.h.
MiningLaser::MiningLaser | ( | ModuleItemRef | mRef, |
ShipItemRef | sRef | ||
) |
Definition at line 24 of file MiningLaser.cpp.
References _log, AttrDuration, flagCargoHold, EVEDB::invGroups::Frequency_Mining_Laser, EVEDB::invGroups::Gas_Cloud_Harvester, EvilNumber::get_int(), GenericModule::GetAttribute(), InventoryItem::groupID(), m_crystalDmg, m_crystalDmgAmount, m_crystalDmgChance, m_crystalRoidGrp, m_dcMiner, m_gMiner, m_holdFlag, m_iMiner, m_IsInitialCycle, GenericModule::m_modRef, ActiveModule::m_reloadTime, m_rMiner, EVEDB::invGroups::Mining_Laser, InventoryItem::name(), EVEDB::invGroups::Strip_Miner, and InventoryItem::typeID().
|
inlinevirtual |
Definition at line 21 of file MiningLaser.h.
void MiningLaser::AddOreAndDeactivate | ( | uint16 | typeID, |
float | amt, | ||
bool | slave = true |
||
) |
Definition at line 366 of file MiningLaser.cpp.
References _log, ShipItem::AddItemByFlag(), ActiveModule::DeactivateCycle(), flagNone, ShipItem::GetPilot(), InventoryItem::itemID(), locTemp, m_holdFlag, GenericModule::m_modRef, GenericModule::m_shipRef, InventoryItem::name(), Stat::oreMined, InventoryItem::ownerID(), Client::SendNotifyMsg(), sItemFactory, and sStatMgr.
Referenced by Depleted().
|
virtual |
Reimplemented from ActiveModule.
Definition at line 78 of file MiningLaser.cpp.
References _log, EVEDB::invCategories::Asteroid, AttrCrystalVolatilityChance, AttrCrystalVolatilityDamage, AttrDamage, AttrGasHoldCapacity, AttrOreHoldCapacity, AttrSpecialisationAsteroidGroup, ActiveModule::CanActivate(), InventoryItem::categoryID(), flagGasHold, flagOreHold, RefPtr< X >::get(), EvilNumber::get_float(), InventoryItem::GetAttribute(), SystemManager::GetBeltMgr(), SystemBubble::GetID(), GetMiningVolume(), SystemEntity::GetName(), ShipItem::GetPilot(), ShipItem::GetRemainingVolumeByFlag(), SystemEntity::GetSelf(), InventoryItem::groupID(), EVEDB::invGroups::Harvestable_Cloud, InventoryItem::HasAttribute(), ShipItem::HasPilot(), EVEDB::invGroups::Ice, GenericModule::m_chargeLoaded, GenericModule::m_chargeRef, m_crystalDmg, m_crystalDmgAmount, m_crystalDmgChance, m_crystalRoidGrp, m_dcMiner, m_gMiner, m_holdFlag, m_iMiner, m_IsInitialCycle, m_rMiner, GenericModule::m_shipRef, ActiveModule::m_targetSE, EVEDB::invGroups::Mercoxit, Client::SendNotifyMsg(), BeltMgr::SetActive(), SystemEntity::SysBubble(), and SystemEntity::SystemMgr().
|
inline |
Definition at line 45 of file MiningLaser.h.
References ActiveModule::DeactivateCycle().
|
virtual |
Reimplemented from ActiveModule.
Definition at line 166 of file MiningLaser.cpp.
References FX::State::Active, ActiveModule::ApplyEffect(), ActiveModule::Clear(), Module::State::Deactivating, flagCargoHold, m_holdFlag, GenericModule::m_ModuleState, Module::State::Online, ProcessCycle(), GenericModule::SetModuleState(), and ActiveModule::ShowEffect().
void MiningLaser::Depleted | ( | std::multimap< float, MiningLaser * > & | mMap | ) |
Definition at line 304 of file MiningLaser.cpp.
References _log, AddOreAndDeactivate(), AttrQuantity, AttrVolume, SystemEntity::GetID(), GetMiningVolume(), SystemEntity::GetSelf(), InventoryItem::itemID(), GenericModule::m_modRef, ActiveModule::m_targetSE, InventoryItem::name(), PyTuple::SetItem(), and PyDict::SetItemString().
Referenced by TargetManager::Depleted().
|
virtual |
Reimplemented from ActiveModule.
Definition at line 152 of file MiningLaser.cpp.
References ActiveModule::DoCycle(), m_IsInitialCycle, and ProcessCycle().
|
inlinevirtual |
float MiningLaser::GetMiningVolume | ( | ) |
Definition at line 388 of file MiningLaser.cpp.
References AttrMiningAmount, AttrSpecialtyMiningAmount, EvilNumber::get_float(), GenericModule::GetAttribute(), SystemEntity::GetGroupID(), ShipItem::GetPilot(), Client::GetShipSE(), GenericModule::m_chargeLoaded, m_crystalRoidGrp, GenericModule::m_shipRef, and ActiveModule::m_targetSE.
Referenced by CanActivate(), Depleted(), and ProcessCycle().
|
inlinevirtual |
|
virtual |
Reimplemented from ActiveModule.
Definition at line 52 of file MiningLaser.cpp.
References AttrCrystalVolatilityChance, AttrCrystalVolatilityDamage, AttrDamage, AttrSpecialisationAsteroidGroup, RefPtr< X >::get(), EvilNumber::get_float(), InventoryItem::GetAttribute(), ActiveModule::LoadCharge(), GenericModule::m_chargeRef, m_crystalDmg, m_crystalDmgAmount, m_crystalDmgChance, and m_crystalRoidGrp.
|
protected |
Definition at line 183 of file MiningLaser.cpp.
References _log, AttrDamage, AttrDuration, AttrQuantity, AttrRadius, AttrVolume, ShipItem::CargoFull(), ActiveModule::DeactivateCycle(), InventoryItem::Delete(), SystemEntity::Delete(), TargetManager::Depleted(), flagNone, RefPtr< X >::get(), EvilNumber::get_float(), GenericModule::GetAttribute(), SystemEntity::GetID(), GetMiningVolume(), InventoryItem::GetMyInventory(), ShipItem::GetPilot(), ActiveModule::GetRemainingCycleTimeMS(), ShipItem::GetRemainingVolumeByFlag(), SystemEntity::GetSelf(), Inventory::HasAvailableSpace(), InventoryItem::itemID(), locTemp, GenericModule::m_chargeLoaded, GenericModule::m_chargeRef, m_crystalDmg, m_crystalDmgAmount, m_crystalDmgChance, m_gMiner, m_holdFlag, m_iMiner, GenericModule::m_modRef, GenericModule::m_shipRef, ActiveModule::m_targetSE, MakeRandomFloat(), InventoryItem::name(), Stat::oreMined, InventoryItem::ownerID(), ShipItem::RemoveItem(), ActiveModule::RemoveTarget(), SafeDelete(), sDataMgr, Client::SendNotifyMsg(), InventoryItem::SetAttribute(), sItemFactory, sStatMgr, and SystemEntity::TargetMgr().
Referenced by DeactivateCycle(), and DoCycle().
|
virtual |
Reimplemented from ActiveModule.
Definition at line 66 of file MiningLaser.cpp.
References _log, m_crystalDmg, m_crystalDmgAmount, m_crystalDmgChance, m_crystalRoidGrp, GenericModule::m_modRef, InventoryItem::name(), and ActiveModule::UnloadCharge().
|
private |
Definition at line 57 of file MiningLaser.h.
Referenced by CanActivate(), LoadCharge(), MiningLaser(), ProcessCycle(), and UnloadCharge().
|
private |
Definition at line 58 of file MiningLaser.h.
Referenced by CanActivate(), LoadCharge(), MiningLaser(), ProcessCycle(), and UnloadCharge().
|
private |
Definition at line 59 of file MiningLaser.h.
Referenced by CanActivate(), LoadCharge(), MiningLaser(), ProcessCycle(), and UnloadCharge().
|
private |
Definition at line 61 of file MiningLaser.h.
Referenced by CanActivate(), GetMiningVolume(), LoadCharge(), MiningLaser(), and UnloadCharge().
|
private |
Definition at line 54 of file MiningLaser.h.
Referenced by CanActivate(), and MiningLaser().
|
private |
Definition at line 54 of file MiningLaser.h.
Referenced by CanActivate(), MiningLaser(), and ProcessCycle().
|
private |
Definition at line 63 of file MiningLaser.h.
Referenced by AddOreAndDeactivate(), CanActivate(), DeactivateCycle(), MiningLaser(), and ProcessCycle().
|
private |
Definition at line 54 of file MiningLaser.h.
Referenced by CanActivate(), MiningLaser(), and ProcessCycle().
|
private |
Definition at line 55 of file MiningLaser.h.
Referenced by CanActivate(), DoCycle(), and MiningLaser().
|
private |
Definition at line 54 of file MiningLaser.h.
Referenced by CanActivate(), and MiningLaser().