Ejemplo n.º 1
0
 public void AddMonster(Monster monster)
 {
     monster.location = location;
     members.Add(monster);
     startingHP += monster.GetHP();
     monster.SetPack(this);
 }
Ejemplo n.º 2
0
 public Pack(string id, uint n)
 {
     this.id = id;
     for (int i = 0; i < n; i++)
     {
         Monster m = new Monster("" + id + "_" + i);
         members.Add(m);
         startingHP += m.GetHP();
         m.SetPack(this);
     }
 }
Ejemplo n.º 3
0
 public Pack(string id, int n, Node loc, bool gameplay, Dungeon dungeon)
 {
     this.id       = id;
     this.location = loc;
     this.dungeon  = dungeon;
     if (!gameplay)
     {
         zone = dungeon.CurrentLevel(loc);
         for (int i = 0; i < n; i++)
         {
             Monster m = new Monster("" + id + "_" + i);
             m.location = location;
             members.Add(m);
             startingHP += m.GetHP();
             m.SetPack(this);
         }
     }
 }