]> Dogcows Code - chaz/carfire/commitdiff
Modified to work with Display class
authorKyle <Kyle@92bb83a3-7c8f-8a45-bc97-515c4e399668>
Thu, 15 Apr 2010 03:37:15 +0000 (03:37 +0000)
committerKyle <Kyle@92bb83a3-7c8f-8a45-bc97-515c4e399668>
Thu, 15 Apr 2010 03:37:15 +0000 (03:37 +0000)
git-svn-id: https://bd85.net/svn/cs3505_group@82 92bb83a3-7c8f-8a45-bc97-515c4e399668

CarFire/CarFire/CarFire/Game.cs

index 38d86b8eb111e1f100f4f03934a6031575290f96..1271138bf47bd287a9512acebfa8a17fb56f2718 100644 (file)
@@ -12,9 +12,18 @@ namespace CarFire
     public class Game : IDeterministicGame\r
     {\r
         #region IDeterministicGame Members\r
+        List<Player> mPlayers;\r
+        Display mDisplay;\r
+        Map mMap;\r
 \r
+        public Game()\r
+        {\r
+            mDisplay = new Display();\r
+        }\r
         public void LoadContent(ContentManager contentManager)\r
         {\r
+            //Texture2D everything = contentManager.Load<Texture2D>("default");\r
+            mDisplay.LoadContent(contentManager);\r
         }\r
 \r
         public void UnloadContent()\r
@@ -64,21 +73,23 @@ namespace CarFire
 \r
         public bool IsGameOver(object playerIdentifier)\r
         {\r
-            return true;\r
+            return false;\r
         }\r
 \r
         public bool IsTerminated(object playerIdentifier)\r
         {\r
-            return true;\r
+            return false;\r
         }\r
 \r
         public long Update(TimeSpan timespan)\r
         {\r
+            mDisplay.Update(timespan);\r
             return CurrentFrameNumber;\r
         }\r
 \r
         public long Draw(SpriteBatch spriteBatch)\r
         {\r
+            mDisplay.Draw(spriteBatch);\r
             return CurrentFrameNumber;\r
         }\r
 \r
This page took 0.028028 seconds and 4 git commands to generate.