public Game() { this._gm = new GameManager(); this._sm = new ScreenManager(this._gm); Console.CursorVisible = false; }
public ScreenManager(GameManager gm) { this._gm = gm; this._player = this._gm.Player; this._screens = new Screen[4]; //this._screens[0] = new MainMenu(); //this._screens[1] = new InputStatsScreen(this._gm); //this._screens[2] = new StatsScreen(this._player); this._screens[0] = new GameScreen(this._gm); }
public void Update(GameManager gm) { //Take in the new game manager. this._gm = gm; this._player = this._gm.Player; if (!this._screens[this._currentMenu].isActive) { if (this._screens[this._currentMenu].clearScreen) Console.Clear(); this._currentMenu++; } }
public InputStatsScreen(GameManager gm) { this._gm = gm; }
public GameScreen(GameManager gm) { this.clearScreen = false; this._gm = gm; }