GameMap.Update C# (CSharp) Method

Update() private method

private Update ( ) : void
return void
    private void Update()
    {
    }

Usage Example

Beispiel #1
0
        public void Update(GraphicsDevice graphicsDevice, GameTime gameTime, KeyboardState keyboardState, MouseState mouseState)
        {
            Player.InFocus = GameInstance.IsActive;

            latestGameTime = gameTime;

            //Update network
            NetworkManager.Update(this);

            //Update map
            if (GameRunning && gameMap != null)
            {
                gameMap.Update(graphicsDevice, gameTime, keyboardState, mouseState);
            }

            //Update GUI
            graphicsUI.Update(gameTime);
            if (GameInstance.IsActive)
            {
                graphicsUI.Interact(new GameGUI.GUIInput(keyboardState, pastKeyboardState, mouseState, pastMouseState));
            }

            pastKeyboardState = keyboardState;
            pastMouseState    = mouseState;
        }
All Usage Examples Of GameMap::Update