Všechna monstra, dynamický targeting. Bugfixy u monster.
This commit is contained in:
parent
55fd052072
commit
4fdff0a0cc
18 changed files with 345 additions and 43 deletions
|
|
@ -5,7 +5,10 @@ using PacketLib;
|
|||
namespace FNAF_Server.Enemies;
|
||||
|
||||
public abstract class Enemy : GlobalEnemy<MapTile, TileConnector> {
|
||||
protected Enemy(int difficulty) : base(difficulty) {
|
||||
public int Difficulty { get; protected set; }
|
||||
|
||||
protected Enemy(int difficulty) {
|
||||
Difficulty = difficulty;
|
||||
}
|
||||
|
||||
public abstract bool BlocksTile { get; set; }
|
||||
|
|
@ -27,4 +30,6 @@ public abstract class Enemy : GlobalEnemy<MapTile, TileConnector> {
|
|||
Server.SendUpdateToAll([GameEvent.ENEMY_ATTACK(Id, player.state.pid)]);
|
||||
GameLogic.DeclareWinner(Server.OtherPlayer(player));
|
||||
}
|
||||
|
||||
public abstract void SetDifficulty(int difficulty);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue