Exemple #1
0
 public void Remove(Slime slime)
 {
     slimeList.Remove(slime);
 }
Exemple #2
0
 public void Add(Slime slime)
 {
     slimeList.Add(slime);
 }
Exemple #3
0
 public void Add(Slime slime)
 {
     slimeList.Add(slime);
 }
Exemple #4
0
 public void Remove(Slime slime)
 {
     slimeList.Remove(slime);
 }
Exemple #5
0
 private void checkSightCollision(Vijand vijand)
 {
     if (vijand != null)
     {
         if (vijand.sight.IntersectsWith(hero.colRectangle))
         {       //SHOOT
             if (shootTimer == 40)
             {
                 shootTimer = 0;
                 if (vijand.direction == "right")
                     slimePoint = new Point(vijand.position.X + 50, vijand.position.Y + 10);
                 if (vijand.direction == "left")
                     slimePoint = new Point(vijand.position.X, vijand.position.Y + 10);
                 Slime slime = new Slime(mVideo, slimePoint, slimes, vijand.direction);
             }
             else
             {
                 shootTimer++;
             }
         }
     }
 }