Пример #1
0
 public virtual void Destroy()
 {
     if (mPickupDisplay != null)
     {
         mPickupDisplay.Hide();
         mPickupDisplay.Destroy();
         mPickupDisplay = null;
     }
     if (mCollisionCircle != null)
     {
         mGameWorld.CollisionShapes_Circle_ToRemove.Add(mCollisionCircle);
     }
 }
Пример #2
0
        public void Destroy()
        {
            foreach (Entity e in mEntityList)
            {
                e.Destroy();
            }
            mEntityList.Clear();

            foreach (Projectile p in mProjectileList)
            {
                p.Destroy();
            }
            mProjectileList.Clear();

            mEntityDeadList.Clear();
            mProjDeadList.Clear();

            foreach (Pickup p in mPickups)
            {
                p.Destroy();
            }
            mPickups.Clear();

            mRemovedProjectileList.Clear();

            mAbility1Indicator.Destroy();
            mAbility1Indicator = null;
            mAbility2Indicator.Destroy();
            mAbility2Indicator = null;
            mAbility3Indicator.Destroy();
            mAbility3Indicator = null;
            mAbility4Indicator.Destroy();
            mAbility4Indicator = null;
            Crosshair.Destroy();
            Crosshair = null;
            Aimer.Destroy();
            Aimer = null;
            score.Destroy();
            score = null;
            HealthBarBorder.Destroy();
            HealthBarBorder = null;
            HealthWhite.Destroy();
            HealthWhite = null;
            HealthBar.Destroy();
            HealthBar = null;

            mBackground.Destroy();
        }
Пример #3
0
        public override void Tracker(float pDT)
        {
            if (!mBuffActive)
            {
                return;
            }

            mCurrentTime += pDT;

            if (mCurrentTime < mShieldDuration)
            {
                mShield.posX          = aaAffectedShip.mXPos;
                mShield.posY          = aaAffectedShip.mYPos;
                mShieldCollider.mXPos = aaAffectedShip.mXPos;
                mShieldCollider.mYPos = aaAffectedShip.mYPos;
            }

            if (mCurrentTime >= mShieldDuration)
            {
                aaAffectedShip.aaGameWorld.CollisionShapes_Circle.Remove(mShieldCollider);
                mShield.Destroy();
                Cease();
            }
        }
Пример #4
0
 public virtual void Destroy()
 {
     mDispObj.Destroy();
     mDispObj = null;
 }