コード例 #1
0
ファイル: EntBalloonSet.cs プロジェクト: er1/c376balloon3d
 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;
     }
 }
コード例 #2
0
ファイル: EntPaperPlane.cs プロジェクト: er1/c376balloon3d
 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;
     }
 }
コード例 #3
0
ファイル: EntPC.cs プロジェクト: er1/c376balloon3d
 public override void collision(Ent target)
 {
     if ((flashing == 0) && !dying &&
         ((target is EntBalloon) ||
         (target is EntAirBalloon) ||
         (target is EntPaperBall)))
     {
         dying = true;
     }
 }
コード例 #4
0
ファイル: Ent.cs プロジェクト: er1/c376balloon3d
 public virtual void collision(Ent target)
 {
 }
コード例 #5
0
ファイル: EntManager.cs プロジェクト: er1/c376balloon2d
 public void queueRemove(Ent e)
 {
     e.pendingRemoval = true;
     deletequeue.Add(e);
 }
コード例 #6
0
ファイル: EntManager.cs プロジェクト: er1/c376balloon2d
 public void queueAdd(Ent e)
 {
     addqueue.Add(e);
 }
コード例 #7
0
ファイル: EntManager.cs プロジェクト: er1/c376balloon2d
 public void add(Ent e)
 {
     ents.Add(e);
     e.manager = this;
     e.join();
 }
コード例 #8
0
ファイル: EntManager.cs プロジェクト: er1/c376balloon2d
 public void remove(Ent e)
 {
     ents.Remove(e);
 }
コード例 #9
0
ファイル: EntBullet.cs プロジェクト: er1/c376balloon2d
 public override void collision(Ent target)
 {
 }