21 lines
732 B
C#
21 lines
732 B
C#
|
|
namespace Theriapolis.Core.Entities.Ai;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Defends a point of interest. Phase 5 M5 ships this as Brigand-equivalent
|
||
|
|
/// combat behavior — patrolling around a home position is M6 territory once
|
||
|
|
/// out-of-combat tactical movement is implemented (currently NPCs only act
|
||
|
|
/// during encounters).
|
||
|
|
/// </summary>
|
||
|
|
public sealed class PoiGuardBehavior : INpcBehavior
|
||
|
|
{
|
||
|
|
private readonly BrigandBehavior _melee = new();
|
||
|
|
|
||
|
|
public void TakeTurn(Rules.Combat.Combatant self, AiContext ctx)
|
||
|
|
{
|
||
|
|
// Same combat logic as Brigand. The "patrol around home" behavior
|
||
|
|
// outside of combat hooks in at M6 — for now PoiGuards stand still
|
||
|
|
// until engaged.
|
||
|
|
_melee.TakeTurn(self, ctx);
|
||
|
|
}
|
||
|
|
}
|