IGameScreen.cs 990 B

12345678910111213141516171819202122232425262728293031
  1. //-----------------------------------------------------------------------------
  2. // IGameScreen.cs
  3. //
  4. // Microsoft XNA Community Game Platform
  5. // Copyright (C) Microsoft Corporation. All rights reserved.
  6. //-----------------------------------------------------------------------------
  7. using Microsoft.Xna.Framework;
  8. using System;
  9. using System.Collections.Generic;
  10. using System.Text;
  11. namespace RacingGame.GameScreens
  12. {
  13. /// <summary>
  14. /// Game screen helper interface for all game screens of our game.
  15. /// Helps us to put them all into one list and manage them in our RaceGame.
  16. /// </summary>
  17. public interface IGameScreen
  18. {
  19. /// <summary>
  20. /// Run game screen. Called each frame. Returns true if we want to exit it.
  21. /// </summary>
  22. bool Render();
  23. /// <summary>
  24. /// Process logic for this screen. Note that this method is called before
  25. /// the draw (or render) method in XNA.
  26. /// </summary>
  27. void Update(GameTime gameTime);
  28. }
  29. }