Exemple #1
0
 void KillMonsterInList(WorldMapForMonsters m1)
 {
     foreach (WorldMapForMonsters m in worldMapMonsters)
     {
         if (m == m1)
         {
             m.alive = false;
         }
     }
 }
Exemple #2
0
 public void DetectCollision()
 {
     foreach (WorldMapForMonsters m in worldMapMonsters)
     {
         //Check if monster is alive before detecting collision
         if (m.alive && playerParty.partySprite.location == m.location)
         {
             //Create a reference to monster in combat with
             monsterInCombat = m;
             combatGUI.StartCombat(playerParty, monsterInCombat.member);
             inCombat = true;
         }
     }
 }
Exemple #3
0
 public void DetectCollision()
 {
     foreach (WorldMapForMonsters m in worldMapMonsters)
     {
         //Check if monster is alive before detecting collision
         if (m.alive && playerParty.partySprite.location == m.location)
         {
             //Create a reference to monster in combat with
             monsterInCombat = m;
             combatGUI.StartCombat(playerParty, monsterInCombat.member);
             inCombat = true;
         }
     }
 }
Exemple #4
0
 void KillMonsterInList(WorldMapForMonsters m1)
 {
     foreach (WorldMapForMonsters m in worldMapMonsters)
     {
         if (m == m1)
         {
             m.alive = false;
         }
     }
 }