Class TimedEnemyAttack

Namespace
SurvivorsMaker.Simulation
Assembly
SurvivorsMaker.Simulation.dll

Base for deterministic cooldown and windup attacks; override firing and eligibility hooks.

public abstract class TimedEnemyAttack : IEnemyAttack
Inheritance
TimedEnemyAttack
Implements
Derived
Inherited Members

Constructors

TimedEnemyAttack()

protected TimedEnemyAttack()

Methods

CanStart(SimWorld, Enemy, SpecialAttackDef)

Additional eligibility hook; false prevents this attack from firing.

protected virtual bool CanStart(SimWorld world, Enemy enemy, SpecialAttackDef attack)

Parameters

world SimWorld
enemy Enemy
attack SpecialAttackDef

Returns

bool

Cooldown(SimWorld, Enemy, SpecialAttackDef)

protected static void Cooldown(SimWorld world, Enemy enemy, SpecialAttackDef attack)

Parameters

world SimWorld
enemy Enemy
attack SpecialAttackDef

Fire(SimWorld, Enemy, SpecialAttackDef)

Performs one eligible special attack; use world.Random and queue spawned entities through world-owned systems.

protected abstract void Fire(SimWorld world, Enemy enemy, SpecialAttackDef attack)

Parameters

world SimWorld
enemy Enemy
attack SpecialAttackDef

Init(SimWorld, Enemy)

public virtual void Init(SimWorld world, Enemy enemy)

Parameters

world SimWorld
enemy Enemy

OverridesMovement(Enemy)

True while the attack controls movement (e.g. a charge); the movement behaviour is skipped.

public virtual bool OverridesMovement(Enemy enemy)

Parameters

enemy Enemy

Returns

bool

Tick(SimWorld, Enemy)

public virtual void Tick(SimWorld world, Enemy enemy)

Parameters

world SimWorld
enemy Enemy