Beispiel #1
0
        protected override void Update(GameTime gameTime)
        {
            if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape))
            {
                Exit();
            }
            GameManager.camera.applyOffset();
            GameManager.camera.enableControls();
            Controls.Update();
            GameManager.hexGrid.Visible   = true;
            UIManager.turnDisplay.Visible = true;
            UIManager.unitInfo.Visible    = true;

            if (TurnManager.currentTurn != null)
            {
                UIManager.turnDisplayText.Text = "Current turn: " + TurnManager.currentTurn.name;
            }
            UIManager.unitInfoText.Text = UnitManager.GetCurrentUnit().GetInformationString();
            MoveManager.MoveUpdate(UnitManager.GetCurrentUnit());
            base.Update(gameTime);
        }