Пример #1
0
        public void SendKey(Menu sender, Keys key)
        {
            MenuActionEventArgs args = new MenuActionEventArgs();

            args.PressedKey = key;

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