]> Dogcows Code - chaz/carfire/blob - CarFire/CarFire/CarFire/Game.cs
Implemented the base architecture we are bound to because of how the network code...
[chaz/carfire] / CarFire / CarFire / CarFire / Game.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using Microsoft.Xna.Framework;
6 using Microsoft.Xna.Framework.Content;
7 using Microsoft.Xna.Framework.Graphics;
8 using Microsoft.Xna.Framework.Input;
9
10 namespace CarFire
11 {
12 class Game : IDeterministicGame
13 {
14 #region IDeterministicGame Members
15
16 public void LoadContent(ContentManager contentManager)
17 {
18 }
19
20 public void UnloadContent()
21 {
22 }
23
24 public Vector2 PreferredScreenSize
25 {
26 get { return new Vector2(800, 600); }
27 }
28
29 public int MinimumSupportedPlayers
30 {
31 get { return 1; }
32 }
33
34 public int MaximumSupportedPlayers
35 {
36 get { return 4; }
37 }
38
39 public void ResetGame(object[] playerIdentifiers, object thisPlayer)
40 {
41 }
42
43 public long CurrentFrameNumber
44 {
45 get { return 0; }
46 }
47
48 public long CurrentChecksum
49 {
50 get { return 0; }
51 }
52
53 public void ApplyKeyInput(object playerIdentifier, Keys key, bool isKeyPressed)
54 {
55 }
56
57 public void ApplyMouseLocationInput(object playerIdentifier, int x, int y)
58 {
59 }
60
61 public void ApplyMouseButtonInput(object playerIdentifier, bool isButtonPressed)
62 {
63 }
64
65 public bool IsGameOver(object playerIdentifier)
66 {
67 return true;
68 }
69
70 public bool IsTerminated(object playerIdentifier)
71 {
72 return true;
73 }
74
75 public long Update(TimeSpan timespan)
76 {
77 return CurrentFrameNumber;
78 }
79
80 public long Draw(SpriteBatch spriteBatch)
81 {
82 return CurrentFrameNumber;
83 }
84
85 #endregion
86 }
87 }
This page took 0.037398 seconds and 5 git commands to generate.