Пример #1
0
        public override void  VisitShip(Ship m)
        {
            GameObject pGameObj  = (GameObject)Iterator.GetChild(m);
            GameObject pGameObjB = (GameObject)Iterator.GetChild(this);

            ColPair.Collide(pGameObj, pGameObjB);
        }
Пример #2
0
        public override void VisitShipRoot(ShipRoot b)
        {
            GameObject pGameObjA = (GameObject)Iterator.GetChild(b);
            GameObject pGameObjB = (GameObject)Iterator.GetChild(this);

            ColPair.Collide(pGameObjA, pGameObjB);
        }
Пример #3
0
        public override void VisitMissileGroup(MissileGroup m)
        {
            // Missile vs ShieldColumn
            GameObject pGameObj = (GameObject)Iterator.GetChild(this);

            ColPair.Collide(m, pGameObj);
        }
Пример #4
0
        public override void VisitBombRoot(BombRoot b)
        {
            GameObject pGameObj = (GameObject)Iterator.GetChild(b);

            ColPair.Collide(pGameObj, this);
        }
Пример #5
0
        public override void VisitMissileGroup(MissileGroup m)
        {
            GameObject pGameObj = (GameObject)Iterator.GetChild(m);

            ColPair.Collide(pGameObj, this);
        }
Пример #6
0
 public override void VisitBomb(Bomb b)
 {
     ColPair.Collide(b, (GameObject)Iterator.GetChild(this));
 }
Пример #7
0
        public override void VisitGrid(AlienGrid m)
        {
            GameObject pGameObj = (GameObject)Iterator.GetChild(this);

            ColPair.Collide(m, pGameObj);
        }
Пример #8
0
 public override void VisitBombRoot(BombRoot b)
 {
     ColPair.Collide((GameObject)Iterator.GetChild(b), this);
 }
Пример #9
0
        public override void VisitMissile(Missile m)
        {
            GameObject pGameObj = (GameObject)Iterator.GetChild(this);

            ColPair.Collide(m, pGameObj);
        }
Пример #10
0
 public override void VisitBombRoot(BombRoot b)
 {
     // Bomb vs ShieldColumn
     ColPair.Collide(b, (GameObject)Iterator.GetChild(this));
 }