/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { #if INSIDE_WINFORM WinFormContainer form = new WinFormContainer(); Application.EnableVisualStyles(); form.Show(); Game1 game = new Game1(form); form.game = game; game.Run(); #else using (Game1 game = new Game1()) { game.Run(); } #endif }
public Tank(Game1 game, Vector3 pos, int num, Vector3 playerColor) : base(game) { position = pos; this.game = game; thisTankNumber = num; this.playerColor = playerColor; ChangeToAim(); }
public HUD(Game g) : base(g) { game = (Game1)g; }
public Indicator(Game1 g, Tank owner) : base(g) { game = g; this.owner = owner; }
public SkeletonDrawableGameComponent(Game1 g) : base(g) { game = g; }
public Reticle(Game1 g) : base(g) { game = g; Position = new Vector2(0, 0); }
public Player(Game1 game) { this.game = game; myState = PlayerState.Start; }