První 3 monstra z plánovaných pěti. Kompletní pathfinding i zrcadlení do clienta. Útoky implementované nejsou. Lurk a Neko jsou hardcoded aby útočili na P1.

This commit is contained in:
Perry 2026-03-08 16:55:49 +01:00
parent 4484b127c5
commit 9bfe63a166
27 changed files with 772 additions and 47 deletions

View file

@ -0,0 +1,26 @@
using FNAF_Server.Map;
using GlobalClassLib;
namespace FNAF_Server.Enemies;
public abstract class Enemy : GlobalEnemy<MapTile, TileConnector> {
protected Enemy(int difficulty) : base(difficulty) {
}
public abstract bool BlocksTile { get; set; }
public bool Spawned { get; set; }
public virtual void SpawnSilent(MapTile location) {
Console.WriteLine($"!!! Silent spawn not implemented for enemy {TypeId} ({Name}), reverting to regular spawn");
Spawn(location);
}
public override void Spawn(MapTile location) {
base.Spawn(location);
Spawned = true;
// EnemyManager.AddEnemy(this);
}
public abstract void Reset();
public abstract void Attack(ServerPlayer player);
}