From: Kyle Date: Thu, 15 Apr 2010 03:37:15 +0000 (+0000) Subject: Modified to work with Display class X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=fd4232e02811ea2a8a69f10ffaed584062c914cd;p=chaz%2Fcarfire Modified to work with Display class git-svn-id: https://bd85.net/svn/cs3505_group@82 92bb83a3-7c8f-8a45-bc97-515c4e399668 --- 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; }