Class ChargeEnemyAttack

Namespace
SurvivorsMaker.Simulation
Assembly
SurvivorsMaker.Simulation.dll

Built-in windup/charge behaviour that can override ordinary enemy movement.

public sealed class ChargeEnemyAttack : TimedEnemyAttack, IEnemyAttack
Inheritance
ChargeEnemyAttack
Implements
Inherited Members

Constructors

ChargeEnemyAttack()

public ChargeEnemyAttack()

Methods

Fire(SimWorld, Enemy, SpecialAttackDef)

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

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

Parameters

world SimWorld
enemy Enemy
attack SpecialAttackDef

OverridesMovement(Enemy)

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

public override bool OverridesMovement(Enemy enemy)

Parameters

enemy Enemy

Returns

bool

Tick(SimWorld, Enemy)

public override void Tick(SimWorld world, Enemy enemy)

Parameters

world SimWorld
enemy Enemy