Пример #1
0
        static public GameObject GetPlayerExplosion()
        {
            ExplosionManager pMan = ExplosionManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            return(pMan.pPlayerExpld);
        }
Пример #2
0
        static public void DeactiveExplosion(GameObject pObj)
        {
            Debug.Assert(pObj != null);

            ExplosionManager pMan = ExplosionManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            pObj.RemoveFromSpriteBatch();
            pMan.pGrid.RemoveFromHeadAndLast(pObj);
        }
Пример #3
0
        static public void GetPlayerExplosion(GameObject pObj)
        {
            Debug.Assert(pObj != null);

            ExplosionManager pMan = ExplosionManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            pMan.pPlayerExpld.x = pObj.x;
            pMan.pPlayerExpld.y = pObj.y;
            pMan.pSprite.Attach(pMan.pPlayerExpld.pProxySprite);
        }
Пример #4
0
        static public void GetUFOExplosion(GameObject pObj)
        {
            Debug.Assert(pObj != null);

            ExplosionManager pMan = ExplosionManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            UFOExplosion pExplosion = new UFOExplosion(GameObject.Name.UFOExplosion, GameSprite.Name.UFO_Explosion, pObj.x, pObj.y - 10.0f);

            pMan.pGrid.Add(pExplosion);
            pMan.pSprite.Attach(pExplosion.pProxySprite);

            RemoveEffect pRemove = new RemoveEffect(pExplosion);

            TimerManager.Add(TimeEvent.Name.AnimationSprite, pRemove, 1.0f);
        }