Class FactionEntityAttack
Inheritance
FactionEntityAttack
Implements
IEntityPreInitializable
IEntityPostInitializable
Assembly: cs.temp.dll.dll
Syntax
public abstract class FactionEntityAttack : FactionEntityTargetProgressComponent<IFactionEntity>, IEntityPreInitializable, IEntityTargetProgressComponent, IAttackComponent, IEntityTargetComponent, IEntityComponent, IMonoBehaviour, IEntityPostInitializable
Fields
attackIterationTriggered
Declaration
protected bool attackIterationTriggered
Field Value
nextLaunchLogEnabled
Declaration
public bool nextLaunchLogEnabled
Field Value
reloadTimer
Declaration
protected TimeModifiedTimer reloadTimer
Field Value
| Type |
Description |
| TimeModifiedTimer |
|
Properties
AttackDistanceHandler
Declaration
public abstract IAttackDistanceHandler AttackDistanceHandler { get; }
Property Value
| Type |
Description |
| IAttackDistanceHandler |
|
attackMgr
Declaration
protected IAttackManager attackMgr { get; }
Property Value
| Type |
Description |
| IAttackManager |
|
BorderTargetFinderData
Declaration
public TargetEntityFinderData BorderTargetFinderData { get; }
Property Value
CanSearch
Declaration
public override bool CanSearch { get; }
Property Value
Overrides
RTSEngine.EntityComponent.FactionEntityTargetComponent<IFactionEntity>.CanSearch
CurrCooldownValue
Declaration
public float CurrCooldownValue { get; }
Property Value
| Type |
Description |
| System.Single |
|
CurrReloadValue
Declaration
public float CurrReloadValue { get; }
Property Value
| Type |
Description |
| System.Single |
|
Damage
Declaration
public AttackDamage Damage { get; }
Property Value
| Type |
Description |
| AttackDamage |
|
EngageOptions
Declaration
public AttackEngagementOptions EngageOptions { get; }
Property Value
| Type |
Description |
| AttackEngagementOptions |
|
HasTarget
If no target is required to be assigned to launch the attack then see if the terrain attack is currently enabled for the attacker.
Declaration
public override bool HasTarget { get; }
Property Value
Overrides
RTSEngine.EntityComponent.FactionEntityTargetComponent<IFactionEntity>.HasTarget
IsAttackMoveActive
Declaration
public virtual bool IsAttackMoveActive { get; protected set; }
Property Value
IsAttackMoveEnabled
Declaration
public virtual bool IsAttackMoveEnabled { get; }
Property Value
IsCooldownActive
Declaration
public bool IsCooldownActive { get; }
Property Value
IsInTargetRange
True when the attacker enters the attacking range to engage with its target.
Declaration
public bool IsInTargetRange { get; }
Property Value
IsLocked
Declaration
public bool IsLocked { get; }
Property Value
Launcher
Declaration
public AttackLauncher Launcher { get; }
Property Value
| Type |
Description |
| AttackLauncher |
|
LineOfSight
Declaration
public AttackLOS LineOfSight { get; }
Property Value
| Type |
Description |
| AttackLOS |
|
RequireTarget
Declaration
public bool RequireTarget { get; }
Property Value
Revert
Declaration
public bool Revert { get; }
Property Value
Weapon
Declaration
public AttackWeapon Weapon { get; }
Property Value
| Type |
Description |
| AttackWeapon |
|
Declaration
public Transform WeaponTransform { get; }
Property Value
| Type |
Description |
| Transform |
|
Methods
CanCancelAttack()
Declaration
public ErrorMessage CanCancelAttack()
Returns
CancelAttackAction(Boolean)
Declaration
public ErrorMessage CancelAttackAction(bool playerCommand)
Parameters
| Type |
Name |
Description |
| Boolean |
playerCommand |
|
Returns
CanEnableProgress()
Declaration
protected override bool CanEnableProgress()
Returns
Overrides
RTSEngine.EntityComponent.FactionEntityTargetProgressComponent<IFactionEntity>.CanEnableProgress()
CanProgress()
Declaration
protected override bool CanProgress()
Returns
Overrides
RTSEngine.EntityComponent.FactionEntityTargetProgressComponent<IFactionEntity>.CanProgress()
CanStartAttackIteration()
Declaration
public ErrorMessage CanStartAttackIteration()
Returns
CanSwitchAttack()
Declaration
public ErrorMessage CanSwitchAttack()
Returns
Declaration
public override ErrorMessage IsTargetValid(SetTargetInputData data)
Parameters
Returns
Overrides
RTSEngine.EntityComponent.FactionEntityTargetComponent<IFactionEntity>.IsTargetValid(RTSEngine.EntityComponent.SetTargetInputData)
Declaration
public override sealed ErrorMessage LaunchActionLocal(byte actionID, SetTargetInputData input)
Parameters
Returns
Overrides
RTSEngine.EntityComponent.FactionEntityTargetProgressComponent<IFactionEntity>.LaunchActionLocal(System.Byte, RTSEngine.EntityComponent.SetTargetInputData)
LockAttackAction(Boolean, Boolean)
Declaration
public ErrorMessage LockAttackAction(bool locked, bool playerCommand)
Parameters
Returns
MustDisableProgress()
Declaration
protected override bool MustDisableProgress()
Returns
Overrides
RTSEngine.EntityComponent.FactionEntityTargetProgressComponent<IFactionEntity>.MustDisableProgress()
MustStopProgress()
Declaration
protected override bool MustStopProgress()
Returns
Overrides
RTSEngine.EntityComponent.FactionEntityTargetProgressComponent<IFactionEntity>.MustStopProgress()
OnAttackDisabled()
Declaration
protected virtual void OnAttackDisabled()
OnAttackInit()
Declaration
protected virtual void OnAttackInit()
OnAttackStop()
Declaration
protected virtual void OnAttackStop()
OnComplete()
Declaration
protected virtual void OnComplete()
OnDelayEnter()
Declaration
protected virtual void OnDelayEnter()
OnEnterTargetRange()
Declaration
protected virtual void OnEnterTargetRange()
OnInProgressDisabledEffects()
Declaration
protected override void OnInProgressDisabledEffects()
Overrides
RTSEngine.EntityComponent.FactionEntityTargetProgressComponent<IFactionEntity>.OnInProgressDisabledEffects()
OnInProgressEnabled()
Declaration
protected override void OnInProgressEnabled()
Overrides
RTSEngine.EntityComponent.FactionEntityTargetProgressComponent<IFactionEntity>.OnInProgressEnabled()
OnLaunch()
Declaration
protected virtual void OnLaunch()
OnProgress()
Declaration
protected override void OnProgress()
Overrides
RTSEngine.EntityComponent.FactionEntityTargetProgressComponent<IFactionEntity>.OnProgress()
OnProgressInit()
Declaration
protected override void OnProgressInit()
Overrides
RTSEngine.EntityComponent.FactionEntityTargetProgressComponent<IFactionEntity>.OnProgressInit()
OnProgressStop()
Declaration
protected override sealed void OnProgressStop()
Overrides
RTSEngine.EntityComponent.FactionEntityTargetProgressComponent<IFactionEntity>.OnProgressStop()
OnTargetDisabled()
Declaration
protected override sealed void OnTargetDisabled()
Overrides
RTSEngine.EntityComponent.FactionEntityTargetComponent<IFactionEntity>.OnTargetDisabled()
OnTargetPostLocked(SetTargetInputData, Boolean)
Declaration
protected override void OnTargetPostLocked(SetTargetInputData input, bool sameTarget)
Parameters
Overrides
RTSEngine.EntityComponent.FactionEntityTargetComponent<IFactionEntity>.OnTargetPostLocked(RTSEngine.EntityComponent.SetTargetInputData, System.Boolean)
OnTargetUpdate()
Declaration
protected override void OnTargetUpdate()
Overrides
RTSEngine.EntityComponent.FactionEntityTargetProgressComponent<IFactionEntity>.OnTargetUpdate()
OnTaskUICacheUpdate(List<EntityComponentTaskUIAttributes>, List<String>)
Declaration
protected override bool OnTaskUICacheUpdate(List<EntityComponentTaskUIAttributes> taskUIAttributesCache, List<string> disabledTaskCodesCache)
Parameters
| Type |
Name |
Description |
| List<EntityComponentTaskUIAttributes> |
taskUIAttributesCache |
|
| List<String> |
disabledTaskCodesCache |
|
Returns
Overrides
RTSEngine.EntityComponent.FactionEntityTargetComponent<IFactionEntity>.OnTaskUICacheUpdate(System.Collections.Generic.List<EntityComponentTaskUIAttributes>, System.Collections.Generic.List<System.String>)
OnTaskUIClick(EntityComponentTaskUIAttributes)
Declaration
public override bool OnTaskUIClick(EntityComponentTaskUIAttributes taskAttributes)
Parameters
| Type |
Name |
Description |
| EntityComponentTaskUIAttributes |
taskAttributes |
|
Returns
Overrides
RTSEngine.EntityComponent.FactionEntityTargetComponent<IFactionEntity>.OnTaskUIClick(EntityComponentTaskUIAttributes)
OnUpdate()
Declaration
protected override void OnUpdate()
Overrides
RTSEngine.EntityComponent.FactionEntityTargetProgressComponent<IFactionEntity>.OnUpdate()
Declaration
public ErrorMessage SetNextLaunchLogActionLocal(IReadOnlyCollection<AttackObjectLaunchLogInput> nextLaunchLog, IFactionEntity target, bool playerCommand)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.IReadOnlyCollection<AttackObjectLaunchLogInput> |
nextLaunchLog |
|
| IFactionEntity |
target |
|
| Boolean |
playerCommand |
|
Returns
SetSearchRangeCenterAction(IBorder, Boolean)
Declaration
public ErrorMessage SetSearchRangeCenterAction(IBorder newSearchRangeCenter, bool playerCommand)
Parameters
| Type |
Name |
Description |
| IBorder |
newSearchRangeCenter |
|
| Boolean |
playerCommand |
|
Returns
Declaration
public override ErrorMessage SetTarget(SetTargetInputData input)
Parameters
Returns
Overrides
RTSEngine.EntityComponent.FactionEntityTargetComponent<IFactionEntity>.SetTarget(RTSEngine.EntityComponent.SetTargetInputData)
SwitchAttackAction(Boolean)
Declaration
public ErrorMessage SwitchAttackAction(bool playerCommand)
Parameters
| Type |
Name |
Description |
| Boolean |
playerCommand |
|
Returns
TriggerAttack()
Declaration
public void TriggerAttack()
Events
CooldownUpdated
Declaration
public event CustomEventHandler<IAttackComponent, EventArgs> CooldownUpdated
Event Type
ReloadUpdated
Declaration
public event CustomEventHandler<IAttackComponent, EventArgs> ReloadUpdated
Event Type
Implements
IEntityPreInitializable
IEntityPostInitializable