C# Class Questor.Modules.Combat

The combat class will target and kill any NPC that is targeting the questor. It will also kill any NPC that is targeted but not agressing the questor.
Mostra file Open project: rixim/Questor

Private Properties

Property Type Description
ActivateWeapons void
GetTarget EntityCache
TargetCombatants void

Public Methods

Method Description
ActivateNos ( EntityCache target ) : void

Activate Nos

ActivateStasisWeb ( EntityCache target ) : void

Activate StasisWeb

ActivateTargetPainters ( EntityCache target ) : void

Activate target painters

CanActivate ( Questor.Modules.ModuleCache module, EntityCache entity, bool isWeapon ) : bool

Returns true if it can activate the weapon on the target

The idea behind this function is that a target that explodes isnt being fired on within 5 seconds

ProcessState ( ) : void
ReloadAmmo ( Questor.Modules.ModuleCache weapon, EntityCache entity ) : bool

Reload correct (tm) ammo for the NPC

ReloadEnergyWeaponAmmo ( Questor.Modules.ModuleCache weapon, EntityCache entity ) : bool
ReloadNormalAmmo ( Questor.Modules.ModuleCache weapon, EntityCache entity ) : bool

Reload correct (tm) ammo for the NPC

Private Methods

Method Description
ActivateWeapons ( EntityCache target ) : void

Activate weapons

GetTarget ( ) : EntityCache

Returns the target we need to activate everything on

TargetCombatants ( ) : void

Target combatants

This only targets ships that are targeting you

Method Details

ActivateNos() public method

Activate Nos
public ActivateNos ( EntityCache target ) : void
target EntityCache
return void

ActivateStasisWeb() public method

Activate StasisWeb
public ActivateStasisWeb ( EntityCache target ) : void
target EntityCache
return void

ActivateTargetPainters() public method

Activate target painters
public ActivateTargetPainters ( EntityCache target ) : void
target EntityCache
return void

CanActivate() public method

Returns true if it can activate the weapon on the target
The idea behind this function is that a target that explodes isnt being fired on within 5 seconds
public CanActivate ( Questor.Modules.ModuleCache module, EntityCache entity, bool isWeapon ) : bool
module Questor.Modules.ModuleCache
entity EntityCache
isWeapon bool
return bool

ProcessState() public method

public ProcessState ( ) : void
return void

ReloadAmmo() public method

Reload correct (tm) ammo for the NPC
public ReloadAmmo ( Questor.Modules.ModuleCache weapon, EntityCache entity ) : bool
weapon Questor.Modules.ModuleCache
entity EntityCache
return bool

ReloadEnergyWeaponAmmo() public method

public ReloadEnergyWeaponAmmo ( Questor.Modules.ModuleCache weapon, EntityCache entity ) : bool
weapon Questor.Modules.ModuleCache
entity EntityCache
return bool

ReloadNormalAmmo() public method

Reload correct (tm) ammo for the NPC
public ReloadNormalAmmo ( Questor.Modules.ModuleCache weapon, EntityCache entity ) : bool
weapon Questor.Modules.ModuleCache
entity EntityCache
return bool