Exemple #1
0
        public void SendKey(Menu sender, Keys key)
        {
            MenuActionEventArgs args = new MenuActionEventArgs();

            args.PressedKey = key;

            OnButtonPressed(args, sender);
        }
Exemple #2
0
 private void MenuAction_ToScoreBoard(object sender, MenuActionEventArgs e)
 {
     menuManager.SetActiveMenu("scores");
     gameState = GAMESTATE.GAMESTATE_SCORE_BOARD;
 }
Exemple #3
0
 private void MenuAction_ToOptions(object sender, MenuActionEventArgs e)
 {
     menuManager.SetActiveMenu("options");
     gameState = GAMESTATE.GAMESTATE_OPTIONS_MENU;
 }
Exemple #4
0
 private void MenuAction_ToMain(object sender, MenuActionEventArgs e)
 {
     menuManager.SetActiveMenu("mainMenu");
     gameState = GAMESTATE.GAMESTATE_MAIN_MENU;
 }
Exemple #5
0
 private void MenuAction_Exit(object sender, MenuActionEventArgs e)
 {
     Exit();
 }
Exemple #6
0
 private void MenuAction_StartGame(object sender, MenuActionEventArgs e)
 {
     gameField.Restart();
     gameState = GAMESTATE.GAMESTATE_GAME_RUNNING;
 }