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

#include "RigModule.h"

Inheritance diagram for RigModule:
Collaboration diagram for RigModule:

Public Member Functions

virtual ~RigModule ()
 
virtual RigModuleGetRigModule ()
 
bool IsRigModule () const
 
RigModule.cpp

rig module class : Allan

Date
: 10 June 2015 -UD/RW 02 April 2017
 RigModule (ModuleItemRef mRef, ShipItemRef sRef)
 
int8 GetModulePowerLevel ()
 
virtual void RemoveRig ()
 
virtual void DestroyRig ()
 
- Public Member Functions inherited from PassiveModule
virtual ~PassiveModule ()
 
virtual PassiveModuleGetPassiveModule ()
 
bool IsPassiveModule () const
 
 PassiveModule (ModuleItemRef mRef, ShipItemRef sRef)
 
- Public Member Functions inherited from GenericModule
ModuleItemRef GetSelf ()
 
ShipItemRef GetShipRef ()
 
void Repair ()
 
bool HasAttribute (uint32 attrID)
 
void SetAttribute (uint32 attrID, EvilNumber val, bool update=true)
 
void ResetAttribute (uint32 attrID)
 
EvilNumber GetAttribute (uint32 attrID)
 
bool isWarpSafe ()
 
bool isTurretFitted ()
 
bool isLauncherFitted ()
 
virtual ActiveModuleGetActiveModule ()
 
virtual MiningLaserGetMiningModule ()
 
virtual ProspectorGetProspectModule ()
 
virtual TurretModuleGetTurretModule ()
 
virtual SuperWeaponGetSuperWeapon ()
 
virtual SubSystemModuleGetSubSystemModule ()
 
virtual CynoModuleGetCynoModule ()
 
virtual bool IsGenericModule () const
 
virtual bool IsActiveModule () const
 
virtual bool IsMiningLaser () const
 
virtual bool IsProspectModule () const
 
virtual bool IsCynoModule () const
 
virtual bool IsSubSystemModule () const
 
bool IsLoaded ()
 
bool IsTurretModule ()
 
bool IsLauncherModule ()
 
bool IsOverloaded ()
 
bool IsLinked ()
 
bool IsMaster ()
 
bool IsDamaged ()
 
bool IsActive ()
 
bool IsLoading ()
 
bool isOnline ()
 
bool isLowPower ()
 
bool isHighPower ()
 
bool isMediumPower ()
 
bool isRig ()
 
bool isSubSystem ()
 
uint32 itemID ()
 
uint32 typeID ()
 
uint32 groupID ()
 
EVEItemFlags flag ()
 
void SetChargeRef (InventoryItemRef iRef)
 
void SetModuleState (int8 state)
 
void SetChargeState (int8 state)
 
void SetLinked (bool set=false)
 
void SetLinkMaster (bool set=false)
 
int8 GetModuleState ()
 
int8 GetChargeState ()
 
InventoryItemRef GetLoadedChargeRef ()
 
virtual void Process ()
 
virtual void Deactivate (std::string effect="")
 
virtual void AbortCycle ()
 
virtual void LoadCharge (InventoryItemRef charge)
 
virtual void UnloadCharge ()
 
virtual void ReloadCharge ()
 
virtual void ReprocessCharge ()
 
virtual void Activate (uint16 effectID, uint32 targetID=0, int16 repeat=0)
 
virtual void RemoveTarget (SystemEntity *pSE)
 
virtual bool IsSuccess ()
 
virtual void Update ()
 
virtual uint16 GetReloadTime ()
 
virtual uint32 GetTargetID ()
 
 GenericModule (ModuleItemRef mRef, ShipItemRef sRef)
 
virtual ~GenericModule ()
 
void Online ()
 
void Offline ()
 
void ProcessEffects (int8 state, bool active=false)
 
void Repair (EvilNumber amount)
 
virtual void Overload ()
 
virtual void DeOverload ()
 
int8 GetModulePowerLevel ()
 

Additional Inherited Members

- Protected Member Functions inherited from GenericModule
const char * GetModuleStateName (int8 state)
 
- Protected Attributes inherited from GenericModule
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
 

Detailed Description

Definition at line 14 of file RigModule.h.

Constructor & Destructor Documentation

RigModule::RigModule ( ModuleItemRef  mRef,
ShipItemRef  sRef 
)

Definition at line 12 of file RigModule.cpp.

13 : PassiveModule(mRef, sRef)
14 {
15 
16 }
PassiveModule(ModuleItemRef mRef, ShipItemRef sRef)
virtual RigModule::~RigModule ( )
inlinevirtual

Definition at line 19 of file RigModule.h.

19 { /* do nothing here */ }

Member Function Documentation

void RigModule::DestroyRig ( )
virtual

Reimplemented from GenericModule.

Definition at line 25 of file RigModule.cpp.

References InventoryItem::Delete(), and GenericModule::m_modRef.

Referenced by RemoveRig().

26 {
27  //delete the item
28  m_modRef->Delete();
29 }
ModuleItemRef m_modRef
virtual void Delete()

Here is the call graph for this function:

Here is the caller graph for this function:

int8 RigModule::GetModulePowerLevel ( )

Definition at line 20 of file RigModule.cpp.

References Module::Bank::Rig.

21 {
22  return Module::Bank::Rig;
23 }
virtual RigModule* RigModule::GetRigModule ( )
inlinevirtual

Reimplemented from GenericModule.

Definition at line 21 of file RigModule.h.

21 { return this; }
bool RigModule::IsRigModule ( ) const
inlinevirtual

Reimplemented from GenericModule.

Definition at line 23 of file RigModule.h.

23 { return true; }
void RigModule::RemoveRig ( )
virtual

Reimplemented from GenericModule.

Definition at line 31 of file RigModule.cpp.

References AttrHP, DestroyRig(), EvilNumber::get_int(), InventoryItem::GetAttribute(), GenericModule::m_modRef, and InventoryItem::SetAttribute().

32 {
34  if (hp < 10) {
35  DestroyRig();
36  return;
37  }
38  hp -= 10;
40 }
unsigned __int8 uint8
Definition: eve-compat.h:46
ModuleItemRef m_modRef
int64 get_int()
Definition: EvilNumber.cpp:166
void SetAttribute(uint16 attrID, int num, bool notify=true)
EvilNumber GetAttribute(const uint16 attrID) const
virtual void DestroyRig()
Definition: RigModule.cpp:25

Here is the call graph for this function:


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