Example #1
0
        public static void DeactiveBomb(Bomb b)
        {
            Debug.Assert(b != null);

            BombManager pMan = BombManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            if (b.pColObject.pBoxSprite.GetBackToSBNode() != null)
            {
                b.RemoveFromSpriteBatch();
            }
            pMan.pBombGroup.RemoveFromHeadAndLast(b);
        }
Example #2
0
        public static Bomb GetZigZagFall(float posX, float posY)
        {
            BombManager pMan = BombManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            //if (pMan.pZigZag.isDead == true)
            //{
            //pMan.pZigZag.ResetPosition(posX, posY);
            pMan.pZigZag = new Bomb(GameObject.Name.BombZigZag, GameSprite.Name.BombZigZag, posX, posY);
            pMan.pSB_Bombs.Attach(pMan.pZigZag.pProxySprite);
            pMan.pSB_BombCollisionBox.Attach(pMan.pZigZag.pColObject.pBoxSprite);
            pMan.pBombGroup.Add(pMan.pZigZag);
            pMan.pZigZag.isDead = false;
            //}
            return(pMan.pZigZag);
        }