EvEmu
0.8.4
11 September 2021
|
#include "ActiveModule.h"
Protected Member Functions | |
uint32 | GetRemainingCycleTimeMS () |
void | StopTimer () |
![]() | |
const char * | GetModuleStateName (int8 state) |
Protected Attributes | |
SystemBubble * | m_bubble |
SystemEntity * | m_targetSE |
DestinyManager * | m_destinyMgr |
SystemManager * | m_sysMgr |
TargetManager * | m_targMgr |
uint16 | m_reloadTime |
uint16 | m_effectID |
uint32 | m_targetID |
bool | m_Stop:1 |
bool | m_usesCharge:1 |
bool | m_needsCharge:1 |
bool | m_needsTarget:1 |
![]() | |
ModuleItemRef | m_modRef |
ShipItemRef | m_shipRef |
InventoryItemRef | m_chargeRef |
int8 | m_ModuleState |
int8 | m_ChargeState |
int16 | m_repeat |
bool | m_linkMaster:1 |
bool | m_linked:1 |
bool | m_isWarpSafe:1 |
bool | m_hiPower:1 |
bool | m_medPower:1 |
bool | m_loPower:1 |
bool | m_rigSlot:1 |
bool | m_subSystem:1 |
bool | m_launcher:1 |
bool | m_turret:1 |
bool | m_overLoaded:1 |
bool | m_chargeLoaded:1 |
Private Attributes | |
Timer | m_timer |
Timer | m_reloadTimer |
ActiveModule.cpp | |
| |
ActiveModule (ModuleItemRef mRef, ShipItemRef sRef) | |
virtual void | Process () |
virtual void | LoadCharge (InventoryItemRef charge) |
virtual void | UnloadCharge () |
virtual void | Overload () |
virtual void | AbortCycle () |
virtual void | DeOverload () |
virtual void | Deactivate (std::string effect="") |
virtual void | DeactivateCycle (bool abort=false) |
virtual void | Activate (uint16 effectID, uint32 targetID=0, int16 repeat=0) |
virtual void | RemoveTarget (SystemEntity *pSE) |
virtual uint32 | DoCycle () |
virtual void | Update () |
virtual bool | CanActivate () |
virtual void | ReprocessCharge () |
void | LaunchProbe () |
void | LaunchMissile () |
void | LaunchSnowBall () |
void | ApplyEffect (int8 state, bool active=false) |
void | ShowEffect (bool active=false, bool abort=false) |
void | Clear () |
void | ProcessActiveCycle () |
void | UpdateCharge (uint16 attrID, uint16 testAttrID, uint16 srcAttrID, InventoryItemRef iRef) |
void | UpdateDamage (uint16 attrID, uint16 srcAttrID, InventoryItemRef iRef) |
void | SetSlaveData (ShipSE *pShip) |
void | ConsumeCharge () |
void | SetTimer (uint32 time) |
Definition at line 20 of file ActiveModule.h.
ActiveModule::ActiveModule | ( | ModuleItemRef | mRef, |
ShipItemRef | sRef | ||
) |
Definition at line 22 of file ActiveModule.cpp.
References _log, EVEDB::invGroups::Armor_Repair_Projector, AttrCargoScanRange, AttrChargeGroup1, AttrEnergyDestabilizationRange, AttrMaxRange, AttrPowerTransferRange, AttrReloadTime, AttrShieldTransferRange, AttrShipScanRange, AttrSurveyScanRange, EVEDB::invGroups::Cargo_Scanner, EVEDB::invGroups::Energy_Destabilizer, EVEDB::invGroups::Energy_Transfer_Array, EVEDB::invGroups::Energy_Vampire, EVEDB::invGroups::Frequency_Mining_Laser, EVEDB::invGroups::Gas_Cloud_Harvester, EvilNumber::get_float(), EvilNumber::get_uint32(), GenericModule::GetAttribute(), Client::GetChar(), ShipItem::GetPilot(), Character::GetSkillLevel(), InventoryItem::groupID(), InventoryItem::HasAttribute(), ShipItem::HasPilot(), InventoryItem::itemID(), EvESkill::LongRangeTargeting, m_needsCharge, m_reloadTime, GenericModule::m_repeat, GenericModule::m_shipRef, m_usesCharge, EVEDB::invGroups::Missile_Launcher_Assault, EVEDB::invGroups::Missile_Launcher_Bomb, EVEDB::invGroups::Missile_Launcher_Citadel, EVEDB::invGroups::Missile_Launcher_Cruise, EVEDB::invGroups::Missile_Launcher_Defender, EVEDB::invGroups::Missile_Launcher_Heavy, EVEDB::invGroups::Missile_Launcher_Heavy_Assault, EVEDB::invGroups::Missile_Launcher_Rocket, EVEDB::invGroups::Missile_Launcher_Siege, EVEDB::invGroups::Missile_Launcher_Snowball, EVEDB::invGroups::Missile_Launcher_Standard, InventoryItem::name(), EVEDB::invGroups::Projected_ECCM, EVEDB::invGroups::Projectile_Weapon, EVEDB::invGroups::Remote_Sensor_Booster, EVEDB::invGroups::Remote_Sensor_Damper, EVEDB::invGroups::Salvager, EVEDB::invGroups::Scan_Probe_Launcher, EVEDB::invGroups::Sensor_Booster, GenericModule::SetAttribute(), EVEDB::invGroups::Shield_Transporter, EVEDB::invGroups::Ship_Scanner, EVEDB::invGroups::Signal_Amplifier, EVEDB::invGroups::Survey_Scanner, EVEDB::invGroups::Target_Painter, EVEDB::invGroups::Tracking_Computer, EVEDB::invGroups::Tracking_Disruptor, EVEDB::invGroups::Tracking_Enhancer, and EVEDB::invGroups::Tracking_Link.
|
inlinevirtual |
Definition at line 24 of file ActiveModule.h.
|
virtual |
Reimplemented from GenericModule.
Definition at line 652 of file ActiveModule.cpp.
References _log, DeactivateCycle(), Module::State::Deactivating, Timer::Disable(), GenericModule::GetModuleStateName(), InventoryItem::itemID(), GenericModule::m_modRef, GenericModule::m_ModuleState, m_Stop, m_timer, InventoryItem::name(), and GenericModule::SetModuleState().
Referenced by TargetManager::ClearModules(), TargetManager::Destroyed(), Prospector::DoCycle(), DoCycle(), LaunchMissile(), GenericModule::Offline(), and ProcessActiveCycle().
Reimplemented from GenericModule.
Reimplemented in Prospector, and CynoModule.
Definition at line 319 of file ActiveModule.cpp.
References _log, Module::State::Activated, FX::State::Active, TargetManager::AddTargetModule(), EVEDB::invGroups::Afterburner, ApplyEffect(), AttrDisallowAssistance, CanActivate(), Clear(), SystemEntity::DestinyMgr(), DoCycle(), Timer::Enabled(), InventoryItem::flag(), RefPtr< X >::get(), ShipItem::GetLinkedWeaponMods(), SystemEntity::GetName(), ShipItem::GetPilot(), SystemManager::GetSE(), SystemEntity::GetSelf(), Client::GetShipSE(), GenericModule::groupID(), InventoryItem::HasAttribute(), SystemEntity::IsCOSE(), SystemEntity::IsDead(), SystemEntity::IsItemEntity(), SystemEntity::IsStaticEntity(), IsValidTarget, SystemEntity::IsWreckSE(), m_bubble, GenericModule::m_chargeLoaded, GenericModule::m_chargeRef, m_destinyMgr, m_effectID, GenericModule::m_isWarpSafe, GenericModule::m_linkMaster, GenericModule::m_modRef, m_needsCharge, m_needsTarget, GenericModule::m_repeat, GenericModule::m_shipRef, m_Stop, m_sysMgr, m_targetID, m_targetSE, m_targMgr, m_timer, EVEDB::invGroups::Microwarpdrive, Profile::modules, InventoryItem::name(), GenericModule::Online(), GenericModule::SetModuleState(), SetTimer(), sFxDataMgr, ShowEffect(), sLog, DestinyManager::SpeedBoost(), EVEDB::invGroups::Stasis_Web, SystemEntity::SysBubble(), Client::SystemMgr(), SystemEntity::SystemMgr(), FX::State::Target, SystemEntity::TargetMgr(), and DestinyManager::WebbedMe().
Referenced by CynoModule::Activate(), Prospector::Activate(), and SuperWeapon::Activate().
|
inlinevirtual |
Reimplemented in TurretModule.
Definition at line 55 of file ActiveModule.h.
Referenced by DoCycle().
void ActiveModule::ApplyEffect | ( | int8 | state, |
bool | active = false |
||
) |
Definition at line 951 of file ActiveModule.cpp.
References RefPtr< X >::get(), Client::GetChar(), ShipItem::GetPilot(), GenericModule::m_modRef, GenericModule::m_shipRef, GenericModule::ProcessEffects(), and sFxProc.
Referenced by Activate(), MiningLaser::DeactivateCycle(), and DeactivateCycle().
|
virtual |
Reimplemented in MiningLaser, CynoModule, and Prospector.
Definition at line 1004 of file ActiveModule.cpp.
References _log, UserError::AddFormatValue(), EVEDB::invGroups::Armor_Repair_Projector, AttrCargoScanRange, AttrConsumptionQuantity, AttrConsumptionType, AttrEnergyDestabilizationRange, AttrMaxRange, AttrMaxTractorVelocity, AttrPowerTransferRange, AttrShieldTransferRange, AttrShipScanRange, AttrWarpScrambleRange, EVEDB::invGroups::Cargo_Scanner, Clear(), Inventory::ContainsTypeQtyByFlag(), LSC::corp, SystemEntity::DestinyMgr(), Ga::GaVec3::distance(), EVEDB::invGroups::Energy_Destabilizer, EVEDB::invGroups::Energy_Transfer_Array, EVEDB::invGroups::Energy_Vampire, flagCargoHold, LSC::fleet, EVEDB::invGroups::Frequency_Mining_Laser, EVEDB::invGroups::Gas_Cloud_Harvester, EvilNumber::get_float(), EvilNumber::get_uint32(), Client::GetAllianceID(), SystemEntity::GetAllianceID(), GenericModule::GetAttribute(), InventoryItem::GetAttribute(), SystemEntity::GetContSE(), Client::GetCorporationID(), SystemEntity::GetCorporationID(), Client::GetFleetID(), SystemEntity::GetFleetID(), SystemEntity::GetID(), InventoryItem::GetMyInventory(), SystemEntity::GetName(), SystemEntity::GetOwnerID(), ShipItem::GetPilot(), SystemEntity::GetPosition(), SystemEntity::GetRadius(), Client::GetShipSE(), Client::GetWarFactionID(), SystemEntity::GetWarFactionID(), GenericModule::groupID(), InventoryItem::groupID(), InventoryItem::HasAttribute(), Client::InFleet(), ContainerSE::IsAnchored(), SystemEntity::IsContainerSE(), SystemEntity::IsWreckSE(), InventoryItem::itemID(), GenericModule::m_launcher, GenericModule::m_modRef, GenericModule::m_shipRef, m_targetSE, GenericModule::m_turret, EVEDB::invGroups::Mining_Laser, InventoryItem::name(), InventoryItem::ownerID(), InventoryItem::position(), EVEDB::invGroups::Remote_Sensor_Booster, EVEDB::invGroups::Remote_Sensor_Damper, EVEDB::invGroups::Salvager, Client::SendNotifyMsg(), EVEDB::invGroups::Shield_Disruptor, EVEDB::invGroups::Shield_Transporter, EVEDB::invGroups::Ship_Scanner, sItemFactory, EVEDB::invGroups::Stasis_Web, EVEDB::invGroups::Strip_Miner, EVEDB::invGroups::Target_Painter, EVEDB::invGroups::Tracking_Disruptor, EVEDB::invGroups::Tractor_Beam, DestinyManager::TractorBeamStart(), GenericModule::typeID(), and EVEDB::invGroups::Warp_Scrambler.
Referenced by Activate(), Prospector::CanActivate(), CynoModule::CanActivate(), and MiningLaser::CanActivate().
|
protected |
Definition at line 238 of file ActiveModule.cpp.
References _log, ShipItem::ClearTargetRef(), Timer::Disable(), InventoryItem::itemID(), m_bubble, m_destinyMgr, m_effectID, GenericModule::m_modRef, m_needsTarget, GenericModule::m_repeat, GenericModule::m_shipRef, m_Stop, m_sysMgr, m_targetID, m_targetSE, m_targMgr, m_timer, InventoryItem::name(), Module::State::Online, TargetManager::RemoveTargetModule(), GenericModule::SetModuleState(), and SystemEntity::TargetMgr().
Referenced by Activate(), CanActivate(), MiningLaser::DeactivateCycle(), and DeactivateCycle().
|
protected |
Definition at line 938 of file ActiveModule.cpp.
References InventoryItem::AlterQuantity(), InventoryItem::flag(), ShipItem::GetLinkedWeaponMods(), GenericModule::m_chargeRef, GenericModule::m_linkMaster, GenericModule::m_modRef, GenericModule::m_shipRef, and Profile::modules.
Referenced by TurretModule::ApplyDamage(), DoCycle(), LaunchMissile(), and LaunchProbe().
|
virtual |
Reimplemented from GenericModule.
Definition at line 458 of file ActiveModule.cpp.
References _log, Module::State::Activated, DeactivateCycle(), Module::State::Deactivating, GenericModule::GetModuleStateName(), GenericModule::GetProspectModule(), GetRemainingCycleTimeMS(), GenericModule::IsProspectModule(), InventoryItem::itemID(), m_effectID, GenericModule::m_modRef, GenericModule::m_ModuleState, m_Stop, m_targetSE, miningClouds, miningLaser, InventoryItem::name(), GenericModule::SetModuleState(), and Prospector::TargetDestroyed().
Referenced by Prospector::Activate(), TurretModule::ApplyDamage(), TargetManager::Destroyed(), RemoveTarget(), UnloadCharge(), UpdateCharge(), and UpdateDamage().
|
virtual |
Reimplemented in CynoModule, and MiningLaser.
Definition at line 670 of file ActiveModule.cpp.
References _log, Module::State::Activated, FX::State::Active, PyList::AddItem(), EVEDB::invGroups::Afterburner, ApplyEffect(), AttrQuantity, AttrSurveyScanRange, EVEDB::invGroups::Cargo_Scanner, Clear(), Module::State::Deactivating, SystemEntity::Delete(), SystemEntity::DestinyMgr(), TargetManager::Destroyed(), Ga::GaVec3::distance(), InventoryItem::flag(), EvilNumber::get_float(), GenericModule::GetAttribute(), SystemManager::GetBeltMgr(), SystemBubble::GetID(), ShipItem::GetLinkedWeaponMods(), BeltMgr::GetList(), GenericModule::GetModuleStateName(), SystemEntity::GetName(), ShipItem::GetPilot(), GenericModule::groupID(), SystemBubble::IsBelt(), SystemBubble::IsIce(), GenericModule::IsSuccess(), IsValidTarget, InventoryItem::itemID(), m_bubble, m_destinyMgr, GenericModule::m_linkMaster, GenericModule::m_modRef, GenericModule::m_ModuleState, GenericModule::m_shipRef, m_sysMgr, m_targetID, m_targetSE, m_targMgr, EVEDB::invGroups::Microwarpdrive, Profile::modules, InventoryItem::name(), InventoryItem::position(), Client::QueueDestinyEvent(), InventoryItem::radius(), TargetManager::RemoveTarget(), TargetManager::RemoveTargetModule(), SafeDelete(), EVEDB::invGroups::Salvager, sBubbleMgr, PyTuple::SetItem(), EVEDB::invGroups::Ship_Scanner, ShowEffect(), DestinyManager::SpeedBoost(), EVEDB::invGroups::Stasis_Web, EVEDB::invGroups::Survey_Scanner, FX::State::Target, SystemEntity::TargetMgr(), EvE::traceStack(), EVEDB::invGroups::Tractor_Beam, DestinyManager::TractorBeamStop(), and DestinyManager::WebbedMe().
Referenced by AbortCycle(), MiningLaser::AddOreAndDeactivate(), MiningLaser::CancelOnError(), Deactivate(), CynoModule::DeactivateCycle(), Process(), ProcessActiveCycle(), and MiningLaser::ProcessCycle().
|
virtual |
Reimplemented from GenericModule.
Definition at line 498 of file ActiveModule.cpp.
References GenericModule::DeOverload(), and GenericModule::m_overLoaded.
|
virtual |
Reimplemented in MiningLaser, Prospector, and CynoModule.
Definition at line 504 of file ActiveModule.cpp.
References AbortCycle(), InventoryItem::AlterQuantity(), ApplyDamage(), EVEDB::invGroups::Armor_Repair_Projector, EVEDB::invGroups::Armor_Repair_Unit, EVEDB::invGroups::Artifacts_and_Prototypes, AttrArmorDamage, AttrArmorDamageAmount, AttrCapacitorCapacity, AttrCapacitorCharge, AttrConsumptionQuantity, AttrConsumptionType, AttrDamage, AttrDuration, AttrPowerTransferAmount, AttrShieldBonus, AttrShieldCapacity, AttrShieldCharge, AttrSpeed, AttrStructureDamageAmount, EVEDB::invGroups::Automated_Targeting_System, EVEDB::invGroups::Capacitor_Booster, EVEDB::invGroups::Cloaking_Device, ConsumeCharge(), Inventory::ContainsTypeQtyByFlag(), EVEDB::invGroups::Countermeasure_Launcher, EVEDB::invGroups::Covert_Cynosural_Field_Generator, EVEDB::invGroups::Cynosural_Field_Generator, EVEDB::invGroups::ECCM, EVEDB::invGroups::ECM, EVEDB::invGroups::ECM_Burst, EVEDB::invGroups::Energy_Destabilizer, EVEDB::invGroups::Energy_Transfer_Array, EVEDB::invGroups::Energy_Vampire, EVEDB::invGroups::Energy_Weapon, flagCargoHold, EVEDB::invGroups::Gang_Coordinator, EvilNumber::get_int(), EvilNumber::get_uint32(), InventoryItem::GetAttribute(), Inventory::GetByTypeFlag(), InventoryItem::GetMyInventory(), ShipItem::GetPilot(), SystemEntity::GetSelf(), InventoryItem::groupID(), InventoryItem::HasAttribute(), ShipItem::HeatDamageCheck(), EVEDB::invGroups::Hull_Repair_Unit, EVEDB::invGroups::Hybrid_Weapon, EVEDB::invGroups::Interdiction_Sphere_Launcher, EVEDB::invGroups::Jump_Portal_Generator, LaunchMissile(), LaunchProbe(), LaunchSnowBall(), m_destinyMgr, GenericModule::m_modRef, GenericModule::m_overLoaded, GenericModule::m_repeat, GenericModule::m_shipRef, m_targetSE, EVEDB::invGroups::Missile_Launcher_Assault, EVEDB::invGroups::Missile_Launcher_Bomb, EVEDB::invGroups::Missile_Launcher_Citadel, EVEDB::invGroups::Missile_Launcher_Cruise, EVEDB::invGroups::Missile_Launcher_Defender, EVEDB::invGroups::Missile_Launcher_Heavy, EVEDB::invGroups::Missile_Launcher_Heavy_Assault, EVEDB::invGroups::Missile_Launcher_Rocket, EVEDB::invGroups::Missile_Launcher_Siege, EVEDB::invGroups::Missile_Launcher_Snowball, EVEDB::invGroups::Missile_Launcher_Standard, EVEDB::invGroups::Passive_Targeting_System, EVEDB::invGroups::Projected_ECCM, EVEDB::invGroups::Projectile_Weapon, EVEDB::invGroups::Remote_ECM_Burst, EVEDB::invGroups::Remote_Hull_Repairer, EVEDB::invGroups::Remote_Sensor_Booster, EVEDB::invGroups::Remote_Sensor_Damper, EVEDB::invGroups::Salvager, EVEDB::invGroups::Scan_Probe_Launcher, Client::SendNotifyMsg(), EVEDB::invGroups::Sensor_Booster, EVEDB::invGroups::Shield_Booster, EVEDB::invGroups::Shield_Transporter, EVEDB::invGroups::Siege_Module, EVEDB::invGroups::Signal_Amplifier, sItemFactory, EVEDB::invGroups::Smart_Bomb, EVEDB::invGroups::Super_Weapon, EVEDB::invGroups::Target_Painter, EVEDB::invGroups::Tracking_Computer, EVEDB::invGroups::Tracking_Disruptor, EVEDB::invGroups::Tracking_Enhancer, EVEDB::invGroups::Tracking_Link, GenericModule::typeID(), UpdateCharge(), UpdateDamage(), and EVEDB::invGroups::Warp_Disrupt_Field_Generator.
Referenced by Activate(), CynoModule::DoCycle(), MiningLaser::DoCycle(), Prospector::DoCycle(), and ProcessActiveCycle().
|
inlinevirtual |
|
inlinevirtual |
Reimplemented from GenericModule.
Definition at line 56 of file ActiveModule.h.
References m_reloadTime.
|
inlineprotected |
Definition at line 94 of file ActiveModule.h.
References Timer::GetRemainingTime(), and m_timer.
Referenced by Deactivate(), MiningLaser::ProcessCycle(), and ShowEffect().
|
inlinevirtual |
Reimplemented from GenericModule.
Definition at line 63 of file ActiveModule.h.
References m_targetID.
|
inline |
|
inlinevirtual |
void ActiveModule::LaunchMissile | ( | ) |
Definition at line 1323 of file ActiveModule.cpp.
References _log, AbortCycle(), AttrMaxVelocity, ConsumeCharge(), SystemEntity::DestinyMgr(), Ga::GaVec3::distance(), flagMissile, EvilNumber::get_float(), InventoryItem::GetAttribute(), Client::GetCharacterID(), Client::GetLocationID(), ShipItem::GetPilot(), SystemEntity::GetPosition(), SystemEntity::GetSelf(), SystemManager::GetServiceMgr(), Client::GetShipSE(), InventoryItem::itemID(), GenericModule::m_chargeRef, GenericModule::m_modRef, GenericModule::m_shipRef, m_targetSE, DestinyManager::MakeMissile(), EVEDB::invGroups::Missile, SystemEntity::MissileLaunched(), InventoryItem::name(), Stat::pcMissiles, InventoryItem::position(), Client::SendErrorMsg(), Missile::SetHitTimer(), Missile::SetSpeed(), sItemFactory, sStatMgr, Client::SystemMgr(), and InventoryItem::typeID().
Referenced by DoCycle().
void ActiveModule::LaunchProbe | ( | ) |
Definition at line 1374 of file ActiveModule.cpp.
References SystemManager::AddEntity(), Scan::AddProbe(), EvESkill::Astrometrics, ConsumeCharge(), flagNone, Client::GetChar(), Client::GetCharacterID(), Client::GetLocationID(), ShipItem::GetPilot(), Scan::GetProbeCount(), SystemManager::GetServiceMgr(), Character::GetSkillLevel(), InventoryItem::itemID(), GenericModule::m_chargeRef, GenericModule::m_modRef, GenericModule::m_shipRef, MakeRandomFloat(), GPoint::MakeRandomPointOnSphere(), InventoryItem::name(), InventoryItem::position(), Stat::probesLaunched, InventoryItem::radius(), Client::scan(), Client::SendErrorMsg(), ProbeSE::SendNewProbe(), Client::SetScan(), sItemFactory, sStatMgr, Client::SystemMgr(), and InventoryItem::typeID().
Referenced by DoCycle().
void ActiveModule::LaunchSnowBall | ( | ) |
Definition at line 1416 of file ActiveModule.cpp.
Referenced by DoCycle().
|
virtual |
Reimplemented from GenericModule.
Reimplemented in MiningLaser, and TurretModule.
Definition at line 829 of file ActiveModule.cpp.
References _log, fxData::action, Timer::Enabled(), RefPtr< X >::get(), Client::GetChar(), ShipItem::GetPilot(), FX::Action::Invalid, Client::IsInSpace(), Client::IsLogin(), InventoryItem::itemID(), Module::State::Loaded, Module::State::Loading, GenericModule::m_chargeLoaded, GenericModule::m_chargeRef, GenericModule::m_ChargeState, GenericModule::m_modRef, m_reloadTime, m_reloadTimer, GenericModule::m_shipRef, ItemType::m_stateFxMap, InventoryItem::name(), InventoryItem::quantity(), Module::State::Reloading, Client::SendNotification(), PyTuple::SetItem(), sFxDataMgr, sFxProc, fxData::srcRef, Timer::Start(), InventoryItem::type(), InventoryItem::typeID(), and Module::State::Unloaded.
Referenced by TurretModule::LoadCharge(), and MiningLaser::LoadCharge().
|
virtual |
Reimplemented from GenericModule.
Definition at line 492 of file ActiveModule.cpp.
References GenericModule::m_overLoaded, and GenericModule::Overload().
|
virtual |
Reimplemented from GenericModule.
Definition at line 265 of file ActiveModule.cpp.
References _log, Timer::Check(), DeactivateCycle(), Module::State::Deactivating, Timer::Disable(), Timer::Enabled(), RefPtr< X >::get(), Client::GetChar(), SystemEntity::GetID(), ShipItem::GetPilot(), Module::State::Loaded, GenericModule::m_chargeLoaded, GenericModule::m_chargeRef, GenericModule::m_ChargeState, GenericModule::m_modRef, GenericModule::m_ModuleState, m_needsTarget, m_reloadTimer, GenericModule::m_repeat, GenericModule::m_shipRef, m_Stop, m_targetID, m_targetSE, m_timer, InventoryItem::name(), ProcessActiveCycle(), and sFxProc.
|
protected |
Definition at line 797 of file ActiveModule.cpp.
References AbortCycle(), AttrCapacitorCharge, AttrCapacitorNeed, DeactivateCycle(), Module::State::Deactivating, DoCycle(), EvilNumber::get_float(), GenericModule::GetAttribute(), InventoryItem::GetAttribute(), GenericModule::m_ModuleState, GenericModule::m_shipRef, m_Stop, InventoryItem::SetAttribute(), GenericModule::SetModuleState(), and SetTimer().
Referenced by Process().
|
virtual |
Reimplemented from GenericModule.
Definition at line 312 of file ActiveModule.cpp.
References _log, Deactivate(), SystemEntity::GetName(), GenericModule::m_modRef, GenericModule::m_shipRef, m_targetSE, and InventoryItem::name().
Referenced by MiningLaser::ProcessCycle().
|
virtual |
Reimplemented from GenericModule.
Definition at line 988 of file ActiveModule.cpp.
References InventoryItem::ClearModifiers(), RefPtr< X >::get(), Client::GetChar(), ShipItem::GetPilot(), Client::IsInSpace(), GenericModule::m_chargeRef, GenericModule::m_shipRef, and sFxProc.
|
protected |
Definition at line 485 of file ActiveModule.cpp.
References SystemEntity::DestinyMgr(), m_bubble, m_destinyMgr, m_sysMgr, m_targMgr, SystemEntity::SysBubble(), SystemEntity::SystemMgr(), and SystemEntity::TargetMgr().
|
protected |
Definition at line 815 of file ActiveModule.cpp.
References _log, Timer::Enabled(), GenericModule::m_modRef, GenericModule::m_shipRef, m_Stop, m_timer, InventoryItem::name(), and Timer::Start().
Referenced by Activate(), and ProcessActiveCycle().
void ActiveModule::ShowEffect | ( | bool | active = false , |
bool | abort = false |
||
) |
Definition at line 1153 of file ActiveModule.cpp.
References _log, SystemBubble::BubblecastDestinyEvent(), PyRep::Dump(), InventoryItem::flag(), RefPtr< X >::get(), ItemType::GetDefaultEffect(), GetFileTimeNow(), ShipItem::GetPilot(), GetRemainingCycleTimeMS(), SystemEntity::GetTypeID(), GenericModule::groupID(), is_log_enabled, GenericModule::IsSuccess(), IsValidTarget, DestinyManager::IsWarping(), InventoryItem::itemID(), m_bubble, GenericModule::m_chargeRef, m_destinyMgr, m_effectID, GenericModule::m_modRef, m_needsTarget, GenericModule::m_repeat, GenericModule::m_shipRef, m_targetID, m_targetSE, miningClouds, miningLaser, InventoryItem::name(), InventoryItem::ownerID(), PyStatic, Client::QueueDestinyEvent(), EVEDB::invGroups::Salvager, EvE::Time::Second, DestinyManager::SendSpecialEffect(), PyTuple::SetItem(), PyDict::SetItemString(), sFxDataMgr, InventoryItem::type(), InventoryItem::typeID(), and useMissiles.
Referenced by Activate(), MiningLaser::DeactivateCycle(), and DeactivateCycle().
|
inlineprotected |
Definition at line 97 of file ActiveModule.h.
References Timer::Disable(), and m_timer.
|
virtual |
Reimplemented from GenericModule.
Reimplemented in MiningLaser, and TurretModule.
Definition at line 907 of file ActiveModule.cpp.
References _log, fxData::action, AttrCapacitorCharge, AttrUnfitCapCost, InventoryItem::ClearModifiers(), Deactivate(), RefPtr< X >::get(), EvilNumber::get_float(), InventoryItem::GetAttribute(), Client::GetChar(), ShipItem::GetPilot(), InventoryItem::HasAttribute(), FX::Action::Invalid, Client::IsInSpace(), InventoryItem::itemID(), GenericModule::m_chargeLoaded, GenericModule::m_chargeRef, GenericModule::m_ChargeState, GenericModule::m_modRef, GenericModule::m_shipRef, ItemType::m_stateFxMap, InventoryItem::name(), InventoryItem::SetAttribute(), sFxDataMgr, sFxProc, fxData::srcRef, InventoryItem::type(), and Module::State::Unloaded.
Referenced by TurretModule::UnloadCharge(), and MiningLaser::UnloadCharge().
|
virtual |
Reimplemented from GenericModule.
Reimplemented in Prospector.
Definition at line 179 of file ActiveModule.cpp.
References EVEDB::invGroups::Armor_Repair_Projector, AttrCargoScanRange, AttrEnergyDestabilizationRange, AttrMaxRange, AttrPowerTransferRange, AttrShieldTransferRange, AttrShipScanRange, AttrSurveyScanRange, EVEDB::invGroups::Cargo_Scanner, EVEDB::invGroups::Energy_Destabilizer, EVEDB::invGroups::Energy_Transfer_Array, EVEDB::invGroups::Energy_Vampire, EVEDB::invGroups::Gas_Cloud_Harvester, EvilNumber::get_float(), GenericModule::GetAttribute(), Client::GetChar(), ShipItem::GetPilot(), Character::GetSkillLevel(), InventoryItem::groupID(), ShipItem::HasPilot(), EvESkill::LongRangeTargeting, GenericModule::m_modRef, GenericModule::m_shipRef, EVEDB::invGroups::Remote_Sensor_Booster, EVEDB::invGroups::Remote_Sensor_Damper, GenericModule::ResetAttribute(), EVEDB::invGroups::Salvager, GenericModule::SetAttribute(), EVEDB::invGroups::Shield_Transporter, EVEDB::invGroups::Ship_Scanner, EVEDB::invGroups::Survey_Scanner, EVEDB::invGroups::Target_Painter, and EVEDB::invGroups::Tracking_Disruptor.
Referenced by Prospector::Update().
|
protected |
Definition at line 958 of file ActiveModule.cpp.
References AttrShieldCharge, Client::AutoStop(), Deactivate(), GenericModule::GetAttribute(), InventoryItem::GetAttribute(), ShipItem::GetPilot(), Client::GetShipSE(), GenericModule::m_shipRef, SystemEntity::SendDamageStateChanged(), and InventoryItem::SetAttribute().
Referenced by DoCycle().
|
protected |
Definition at line 974 of file ActiveModule.cpp.
References Client::AutoStop(), Deactivate(), EvilZero, GenericModule::GetAttribute(), InventoryItem::GetAttribute(), ShipItem::GetPilot(), Client::GetShipSE(), GenericModule::m_shipRef, SystemEntity::SendDamageStateChanged(), and InventoryItem::SetAttribute().
Referenced by DoCycle().
|
protected |
Definition at line 77 of file ActiveModule.h.
Referenced by Activate(), Clear(), DeactivateCycle(), SetSlaveData(), and ShowEffect().
|
protected |
Definition at line 79 of file ActiveModule.h.
Referenced by Activate(), Clear(), DeactivateCycle(), DoCycle(), SetSlaveData(), and ShowEffect().
|
protected |
Definition at line 100 of file ActiveModule.h.
Referenced by Activate(), TurretModule::ApplyDamage(), Clear(), Deactivate(), and ShowEffect().
|
protected |
Definition at line 106 of file ActiveModule.h.
Referenced by Activate(), ActiveModule(), and TurretModule::TurretModule().
|
protected |
Definition at line 107 of file ActiveModule.h.
Referenced by Prospector::Activate(), Activate(), Clear(), Process(), and ShowEffect().
|
protected |
Definition at line 99 of file ActiveModule.h.
Referenced by ActiveModule(), GetReloadTime(), LoadCharge(), and MiningLaser::MiningLaser().
|
private |
Definition at line 111 of file ActiveModule.h.
Referenced by LoadCharge(), and Process().
|
protected |
Definition at line 104 of file ActiveModule.h.
Referenced by AbortCycle(), CynoModule::Activate(), Activate(), Clear(), Deactivate(), Process(), ProcessActiveCycle(), and SetTimer().
|
protected |
Definition at line 80 of file ActiveModule.h.
Referenced by CynoModule::Activate(), Activate(), Clear(), CynoModule::CreateCyno(), DeactivateCycle(), Prospector::DropSalvage(), CynoModule::SendOnJumpBeaconChange(), and SetSlaveData().
|
protected |
Definition at line 101 of file ActiveModule.h.
Referenced by Activate(), Clear(), DeactivateCycle(), GetTargetID(), Process(), and ShowEffect().
|
protected |
Definition at line 78 of file ActiveModule.h.
Referenced by Prospector::Activate(), Activate(), TurretModule::ApplyDamage(), Prospector::CanActivate(), MiningLaser::CanActivate(), CanActivate(), Clear(), Deactivate(), DeactivateCycle(), MiningLaser::Depleted(), DoCycle(), Prospector::DropSalvage(), MiningLaser::GetMiningVolume(), GetTargetSE(), LaunchMissile(), Process(), MiningLaser::ProcessCycle(), RemoveTarget(), Prospector::SendFailure(), and ShowEffect().
|
protected |
Definition at line 81 of file ActiveModule.h.
Referenced by Activate(), Clear(), DeactivateCycle(), and SetSlaveData().
|
private |
Definition at line 110 of file ActiveModule.h.
Referenced by AbortCycle(), Activate(), Clear(), GetRemainingCycleTimeMS(), Process(), SetTimer(), and StopTimer().
|
protected |
Definition at line 105 of file ActiveModule.h.
Referenced by ActiveModule().