From fd4232e02811ea2a8a69f10ffaed584062c914cd Mon Sep 17 00:00:00 2001 From: Kyle Date: Thu, 15 Apr 2010 03:37:15 +0000 Subject: [PATCH] Modified to work with Display class git-svn-id: https://bd85.net/svn/cs3505_group@82 92bb83a3-7c8f-8a45-bc97-515c4e399668 --- CarFire/CarFire/CarFire/Game.cs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/CarFire/CarFire/CarFire/Game.cs b/CarFire/CarFire/CarFire/Game.cs index 38d86b8..1271138 100644 --- a/CarFire/CarFire/CarFire/Game.cs +++ b/CarFire/CarFire/CarFire/Game.cs @@ -12,9 +12,18 @@ 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() @@ -64,21 +73,23 @@ namespace CarFire public bool IsGameOver(object playerIdentifier) { - return true; + return false; } public bool IsTerminated(object playerIdentifier) { - return true; + return false; } public long Update(TimeSpan timespan) { + mDisplay.Update(timespan); return CurrentFrameNumber; } public long Draw(SpriteBatch spriteBatch) { + mDisplay.Draw(spriteBatch); return CurrentFrameNumber; } -- 2.45.2