| 12345678910111213141516171819202122232425262728293031 |
- //-----------------------------------------------------------------------------
- // IGameScreen.cs
- //
- // Microsoft XNA Community Game Platform
- // Copyright (C) Microsoft Corporation. All rights reserved.
- //-----------------------------------------------------------------------------
- using Microsoft.Xna.Framework;
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace RacingGame.GameScreens
- {
- /// <summary>
- /// Game screen helper interface for all game screens of our game.
- /// Helps us to put them all into one list and manage them in our RaceGame.
- /// </summary>
- public interface IGameScreen
- {
- /// <summary>
- /// Run game screen. Called each frame. Returns true if we want to exit it.
- /// </summary>
- bool Render();
- /// <summary>
- /// Process logic for this screen. Note that this method is called before
- /// the draw (or render) method in XNA.
- /// </summary>
- void Update(GameTime gameTime);
- }
- }
|