Ejemplo n.º 1
0
        internal void Update(GameTime gt)
        {
            if (bGenerateCamera)
            {
                m = Matrix.CreateTranslation(0, -scroll, 1f);
            }

            startUpTimer.Tick(gt);
        }
        static internal void Update(GameTime gt)
        {
            texTimer.Tick(gt);

            if (texTimer.IsDone())
            {
                texTimer.SetStepTimer(120, 0);
                texTimer.Start();
                bBuildUp = !bBuildUp;
            }
        }
Ejemplo n.º 3
0
 public override void Update(GameTime gt)
 {
     base.Update(gt);
     if (bSelected || bWasSelected)
     {
         tu.Tick(gt);
         while (tu.Ding())
         {
             stepsTaken++;
         }
     }
 }
Ejemplo n.º 4
0
        internal void Update(GameTime gt)
        {
            if (bGenerateMatrixRight)
            {
                mRight = Matrix.CreateTranslation(0, scrollOffSetRight, 1);
                bGenerateMatrixRight = false;
            }

            if (bGenerateMatrixLeft)
            {
                mLeft = Matrix.CreateTranslation(0, scrollOffSetLeft, 1);
                bGenerateMatrixLeft = false;
            }

            if (selectionTimer != null)
            {
                selectionTimer.Tick(gt);
            }

            if (GameMenuHandler.selectedCharacterContext.abilityLineupInfo.getSelectedAbility() == this)
            {
                if (!selectionTimer.IsActive() && bBuildup)
                {
                    bBuildup       = false;
                    selectionTimer = new TimingUtility(32, true, StopSelectionTimerWhen);
                    selectionTimer.SetStepTimer(30);
                }
                else if (!selectionTimer.IsActive() && !bBuildup)
                {
                    bBuildup       = true;
                    selectionTimer = new TimingUtility(32, true, StopSelectionTimerWhen);
                    selectionTimer.SetStepTimer(30);
                }
            }
            else if (selectionTimer != null && !selectionTimer.IsActive() && bBuildup)
            {
                selectionTimer = new TimingUtility(8, true, StopSelectionTimerWhen);
                selectionTimer.SetStepTimer(30);
                bBuildup = false;
            }
            else if (selectionTimer != null && !selectionTimer.IsActive() && !bBuildup)
            {
                selectionTimer = null;
                bBuildup       = true;
            }

            parent.abilityIcon.UpdateAnimationForItems(gt);
        }
Ejemplo n.º 5
0
        internal void Update(GameTime gt)
        {
            if (bGenerateMatrix)
            {
                loadTabM        = Matrix.CreateTranslation(0, -vertMOffset, 1);
                bGenerateMatrix = false;
            }

            for (int i = 0; i < portraitFrames.Length; i++)
            {
                portraitFrames[i].Update(gt);
            }

            if (unselectTimer != null)
            {
                unselectTimer.Tick(gt);
                if (!unselectTimer.IsActive())
                {
                    unselectTimer = null;
                }
            }
        }
Ejemplo n.º 6
0
        internal void Update(GameTime gt)
        {
            for (int i = 0; i < equippedAbilities.Count; i++)
            {
                equippedAbilities[i].Update(gt);
            }

            for (int i = 0; i < availableAbilities.Count; i++)
            {
                availableAbilities[i].Update(gt);
            }

            if (selectedAbility != null && selectedAbility.asd != null)
            {
                selectedAbility.asd.Update(gt);
            }

            selectionTimer.Tick(gt);
            if (bBuildUp)
            {
                if (!selectionTimer.IsActive())
                {
                    bBuildUp       = false;
                    selectionTimer = new TimingUtility(30, true, StopSelectionTimerWhen);
                    selectionTimer.SetStepTimer(40);
                }
            }
            else
            {
                if (!selectionTimer.IsActive())
                {
                    bBuildUp       = true;
                    selectionTimer = new TimingUtility(30, true, StopSelectionTimerWhen);
                    selectionTimer.SetStepTimer(40);
                }
            }
        }
Ejemplo n.º 7
0
        public void Update(GameTime gt)
        {
            if (OptionsMenu.bIsRunning) //copied from gameprocessor
            {
                Utilities.Control.Player.PlayerController.Update(gt);
                OptionsMenu.Update(gt);
                return;
            }

            if (currentScreen == Screens.start)
            {
                if (currentStartScreen != StartScreens.loading)
                {
                    Utilities.Control.Player.PlayerController.Update(gt);
                }
            }
            else
            {
                Utilities.Control.Player.PlayerController.Update(gt);
            }



            switch (currentScreen)
            {
            case Screens.start:
                #region
                switch (currentStartScreen)
                {
                case StartScreens.main:
                    UpdateMain(gt);
                    break;

                case StartScreens.load:
                    break;

                case StartScreens.loading:
                    UpdateLoading(gt);
                    break;

                default:
                    break;
                }
                #endregion
                break;

            case Screens.load:
                #region
                if (lgs != null)
                {
                    lgs.Update(gt);
                }
                if (loadGameDataTimer != null)
                {
                    loadGameDataTimer.Tick(gt);
                    if (!loadGameDataTimer.IsActive())
                    {
                        loadGameDataTimer = null;
                    }
                }
                #endregion
                break;

            default:
                break;
            }
        }