public HighscoreState(ACWGame game, MainMenuState menu) { this.mainMenu = menu; this.game = game; top10String = HighscoreManager.GetTop10(); //MessageBox.Show(top10String); FormatString(); }
public GameState(ACWGame game, int seed) { this.game = game; gameRand = new Random(seed); if (!(loaded = Load())) { player = new Accordian(150, 250); } }
public MainMenuState(ACWGame game) { this.game = game; buttonWidth = 300; buttonHeight = 75; buttonX = ACWGame.WIDTH/2 - buttonWidth / 2; startY = 100; disabled[(int)Buttons.options] = true; int counter = 0; if (!disabled[(int)Buttons.start]) startRectangle = new Rectangle(buttonX, startY + counter++ * (buttonHeight + buttonHeight / 2), buttonWidth, buttonHeight); if (!disabled[(int)Buttons.options]) optionsRectangle = new Rectangle(buttonX, startY + counter++ * (buttonHeight + buttonHeight / 2), buttonWidth, buttonHeight); if (!disabled[(int)Buttons.controls]) controlRectangle = new Rectangle(buttonX, startY + counter++ * (buttonHeight + buttonHeight / 2), buttonWidth, buttonHeight); if (!disabled[(int)Buttons.highscores]) highscoresRectangle = new Rectangle(buttonX, startY + counter++ * (buttonHeight + buttonHeight / 2), buttonWidth, buttonHeight); if (!disabled[(int)Buttons.exit]) exitRectangle = new Rectangle(buttonX, startY + counter++ * (buttonHeight + buttonHeight / 2), buttonWidth, buttonHeight); }
public AttractState(ACWGame game, MainMenuState menu) { this.game = game; this.mainMenu = menu; gameState = new GameState(true); }
public GameOverState(ACWGame game, float score) { this.game = game; this.score = score; }
public ControlState(ACWGame game, MainMenuState state) { this.game = game; previousState = state; }