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; } }
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; } }
public override void collision(Ent target) { if ((flashing == 0) && !dying && ((target is EntBalloon) || (target is EntAirBalloon) || (target is EntPaperBall))) { dying = true; } }
public virtual void collision(Ent target) { }
public void queueRemove(Ent e) { e.pendingRemoval = true; deletequeue.Add(e); }
public void queueAdd(Ent e) { addqueue.Add(e); }
public void add(Ent e) { ents.Add(e); e.manager = this; e.join(); }
public void remove(Ent e) { ents.Remove(e); }
public override void collision(Ent target) { }