public void AddMonster(Map map) { int x, y; do Gen.FindOpenSpot(out x, out y, map); while (Math.Distance_King(x, y, _player.PosX, _player.PosY) < 30); Monster m = new Monster('X', TCODColor.red, map, 50); m.PlaceAt(x, y, map); }
public void AddCreature(Monster monster) { if (CurrentMonsterNum <= MaxMonster) { _currentMonsterNum = CurrentMonsterNum + 1; _monsters.Add(monster); } }
public void RemoveCreature(Monster monster) { _dead.Add(monster); _currentMonsterNum = CurrentMonsterNum - 1; }