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 class Game : IDeterministicGame
14 #region IDeterministicGame Members
16 public void LoadContent(ContentManager contentManager)
20 public void UnloadContent()
24 public Vector2 PreferredScreenSize
26 get { return new Vector2(800, 600); }
29 public int MinimumSupportedPlayers
34 public int MaximumSupportedPlayers
39 public void ResetGame(object[] playerIdentifiers, object thisPlayer)
43 public long CurrentFrameNumber
48 public long CurrentChecksum
53 public void ApplyKeyInput(object playerIdentifier, Keys key, bool isKeyPressed)
57 public void ApplyMouseLocationInput(object playerIdentifier, int x, int y)
61 public void ApplyMouseButtonInput(object playerIdentifier, bool isButtonPressed)
65 public bool IsGameOver(object playerIdentifier)
70 public bool IsTerminated(object playerIdentifier)
75 public long Update(TimeSpan timespan)
77 return CurrentFrameNumber;
80 public long Draw(SpriteBatch spriteBatch)
82 return CurrentFrameNumber;