Interface IEnemyMovement

Namespace
SurvivorsMaker.Simulation
Assembly
SurvivorsMaker.Simulation.dll

How an enemy moves (step 5). The enemy system applies speed multipliers, knockback and arena clamping around it.

public interface IEnemyMovement

Methods

Init(SimWorld, Enemy)

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

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.

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

Parameters

world SimWorld
enemy Enemy
speed float
dt float

Returns

Vec2