Example #1
0
        public void update(GameTime gameTime)
        {
            manageEnemies();

            if (mTimer != null)
            {
                mTimer.update(gameTime);

                if (mTimer.getTimeAndLock(mTimeIntervalBetweenEnemies))
                {
                    if (checkNext() != null)
                    {
                        checkNext().setReady(true);
                    }
                    mTimer.stop();
                }
            }

            for (int x = 0; x < mGroup.getSize(); x++)
            {
                mGroup.getGameObject(x).update(gameTime);
            }

            garbageCollection();
        }
Example #2
0
        //hehehehehe
        private void solveHighlightBug()
        {
            if (mCurrentHighlightButton != null)
            {
                for (int x = 0; x < mGroupButtons.getSize(); x++)
                {
                    Button b = mGroupButtons.getGameObject(x);

                    if (b != mCurrentHighlightButton)
                    {
                        b.changeState(Button.sSTATE_NORMAL);
                    }
                }
            }
        }