Beispiel #1
0
        //-------------------------------------------------------------------------
        public void create(CRenderScene scene, CRenderTurret render_turret)
        {
            mScene        = scene;
            mRenderTurret = render_turret;

            mCSpriteTurretFort = new CSpriteTurretFort();
            mCSpriteTurretFort.create(mScene, mRenderTurret);

            mLinkLockedFishFeature = new LinkLockedFishFeature(mScene, mRenderTurret);

            //mRateNumber = new CSpriteNumber(mScene, new CPanelDigitFactory(mScene));
            //mRateNumber.create(0, mRateNumberPosition, mRateNumberAngel, CSpriteNumber._eNumberSize.Small1);
            //mRateNumber.setTag("CSpriteTurret" + mRenderTurret.getTurretId());
            //mRateNumber.setTrigger(true);
        }
Beispiel #2
0
        //-------------------------------------------------------------------------
        public void create(CRenderScene scene, CRenderTurret render_turret)
        {
            mScene = scene;
            mRenderTurret = render_turret;

            mCSpriteTurretFort = new CSpriteTurretFort();
            mCSpriteTurretFort.create(mScene, mRenderTurret);

            mLinkLockedFishFeature = new LinkLockedFishFeature(mScene, mRenderTurret);

            //mRateNumber = new CSpriteNumber(mScene, new CPanelDigitFactory(mScene));
            //mRateNumber.create(0, mRateNumberPosition, mRateNumberAngel, CSpriteNumber._eNumberSize.Small1);
            //mRateNumber.setTag("CSpriteTurret" + mRenderTurret.getTurretId());
            //mRateNumber.setTrigger(true);
        }
Beispiel #3
0
        //-------------------------------------------------------------------------
        public void destroy()
        {
            if (mCSpriteTurretFort != null)
            {
                mCSpriteTurretFort.destroy();
                mCSpriteTurretFort = null;
            }

            if (mLinkLockedFishFeature != null)
            {
                mLinkLockedFishFeature.destroy();
                mLinkLockedFishFeature = null;
            }

            //mRateNumber.destroy();
            //mRateNumber = null;
        }
Beispiel #4
0
        //-------------------------------------------------------------------------
        public void destroy()
        {
            if (mCSpriteTurretFort != null)
            {
                mCSpriteTurretFort.destroy();
                mCSpriteTurretFort = null;
            }

            if (mLinkLockedFishFeature != null)
            {
                mLinkLockedFishFeature.destroy();
                mLinkLockedFishFeature = null;
            }

            //mRateNumber.destroy();
            //mRateNumber = null;
        }