using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; namespace CarFire { public class Game : IDeterministicGame { #region IDeterministicGame Members List mPlayers; Display mDisplay; Map mMap; public Game() { mDisplay = new Display(); } public void LoadContent(ContentManager contentManager) { //Texture2D everything = contentManager.Load("default"); mDisplay.LoadContent(contentManager); } public void UnloadContent() { } public Vector2 PreferredScreenSize { get { return new Vector2(800, 600); } } public int MinimumSupportedPlayers { get { return 1; } } public int MaximumSupportedPlayers { get { return 4; } } public void ResetGame(object[] playerIdentifiers, object thisPlayer) { } public long CurrentFrameNumber { get { return 0; } } public long CurrentChecksum { get { return 0; } } public void ApplyKeyInput(object playerIdentifier, Keys key, bool isKeyPressed) { } public void ApplyMouseLocationInput(object playerIdentifier, int x, int y) { } public void ApplyMouseButtonInput(object playerIdentifier, bool isButtonPressed) { } public bool IsGameOver(object playerIdentifier) { return false; } public bool IsTerminated(object playerIdentifier) { return false; } public long Update(TimeSpan timespan) { mDisplay.Update(timespan); return CurrentFrameNumber; } public long Draw(SpriteBatch spriteBatch) { mDisplay.Draw(spriteBatch); return CurrentFrameNumber; } #endregion } }