Exemple #1
0
 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);
 }
Exemple #2
0
 public void AddCreature(Monster monster)
 {
     if (CurrentMonsterNum <= MaxMonster)
     {
         _currentMonsterNum = CurrentMonsterNum + 1;
         _monsters.Add(monster);
     }
 }
Exemple #3
0
 public void RemoveCreature(Monster monster)
 {
     _dead.Add(monster);
     _currentMonsterNum = CurrentMonsterNum - 1;
 }