Esempio n. 1
0
 public override void collision(Ent target)
 {
     if (target is EntBullet && (!((EntBullet)target).used) && (!pendingRemoval))
     {
         disperse(((EntBullet)target).owner);
         manager.queueRemove(target);
         ((EntBullet)target).used = true;
     }
 }
Esempio n. 2
0
 public override void collision(Ent target)
 {
     if (target is EntBullet && (!((EntBullet)target).used) && (!pendingRemoval))
     {
         manager.queueRemove(target);
         manager.queueRemove(this);
         ((EntBullet)target).owner.lives += 1;
     }
 }
Esempio n. 3
0
 public override void collision(Ent target)
 {
     if ((flashing == 0) && !dying &&
         ((target is EntBalloon) ||
         (target is EntAirBalloon) ||
         (target is EntPaperBall)))
     {
         dying = true;
     }
 }
Esempio n. 4
0
 public virtual void collision(Ent target)
 {
 }
Esempio n. 5
0
 public void queueRemove(Ent e)
 {
     e.pendingRemoval = true;
     deletequeue.Add(e);
 }
Esempio n. 6
0
 public void queueAdd(Ent e)
 {
     addqueue.Add(e);
 }
Esempio n. 7
0
 public void add(Ent e)
 {
     ents.Add(e);
     e.manager = this;
     e.join();
 }
Esempio n. 8
0
 public void remove(Ent e)
 {
     ents.Remove(e);
 }
Esempio n. 9
0
 public override void collision(Ent target)
 {
 }