2 using System.Collections.Generic;
5 using Microsoft.Xna.Framework;
6 using Microsoft.Xna.Framework.Content;
7 using Microsoft.Xna.Framework.Graphics;
8 using Microsoft.Xna.Framework.Input;
12 public class Game : IDeterministicGame
14 #region IDeterministicGame Members
15 List<Player> mPlayers;
21 mDisplay = new Display();
23 public void LoadContent(ContentManager contentManager)
25 //Texture2D everything = contentManager.Load<Texture2D>("default");
26 mDisplay.LoadContent(contentManager);
29 public void UnloadContent()
33 public Vector2 PreferredScreenSize
35 get { return new Vector2(800, 600); }
38 public int MinimumSupportedPlayers
43 public int MaximumSupportedPlayers
48 public void ResetGame(object[] playerIdentifiers, object thisPlayer)
52 public long CurrentFrameNumber
57 public long CurrentChecksum
62 public void ApplyKeyInput(object playerIdentifier, Keys key, bool isKeyPressed)
66 public void ApplyMouseLocationInput(object playerIdentifier, int x, int y)
70 public void ApplyMouseButtonInput(object playerIdentifier, bool isButtonPressed)
74 public bool IsGameOver(object playerIdentifier)
79 public bool IsTerminated(object playerIdentifier)
84 public long Update(TimeSpan timespan)
86 mDisplay.Update(timespan);
87 return CurrentFrameNumber;
90 public long Draw(SpriteBatch spriteBatch)
92 mDisplay.Draw(spriteBatch);
93 return CurrentFrameNumber;