Class ChaseWithOffsetMovement

Namespace
SurvivorsMaker.Simulation
Assembly
SurvivorsMaker.Simulation.dll

Built-in chase movement with a per-enemy seeded target offset.

public sealed class ChaseWithOffsetMovement : EnemyMovement, IEnemyMovement
Inheritance
ChaseWithOffsetMovement
Implements
Inherited Members

Constructors

ChaseWithOffsetMovement()

public ChaseWithOffsetMovement()

Methods

Init(SimWorld, Enemy)

At spawn: fixed per-enemy values (offsets, preferred distance, first target).

public override void Init(SimWorld world, Enemy enemy)

Parameters

world SimWorld
enemy Enemy

Step(SimWorld, Enemy, float, float)

The position the enemy wants to be at after this tick, before clamping.

public override Vec2 Step(SimWorld world, Enemy enemy, float speed, float dt)

Parameters

world SimWorld
enemy Enemy
speed float
dt float

Returns

Vec2