2ebe4271428c060b173552777d4366fe384c66b9
1 package ru
.deadsoftware
.cavedroid
.menu
.submenus
;
3 import com
.badlogic
.gdx
.Gdx
;
4 import ru
.deadsoftware
.cavedroid
.CaveGame
;
5 import ru
.deadsoftware
.cavedroid
.game
.GameProc
;
6 import ru
.deadsoftware
.cavedroid
.game
.GameSaver
;
7 import ru
.deadsoftware
.cavedroid
.misc
.states
.AppState
;
8 import ru
.deadsoftware
.cavedroid
.misc
.states
.MenuState
;
10 import static ru
.deadsoftware
.cavedroid
.GameScreen
.GP
;
14 private static void startNewGame(int gameMode
) {
15 GP
= new GameProc(gameMode
);
18 CaveGame
.APP_STATE
= AppState
.LOAD
;
21 static void newGameClicked() {
22 CaveGame
.MENU_STATE
= MenuState
.NEW_GAME
;
25 static void loadGameClicked() {
26 CaveGame
.APP_STATE
= AppState
.LOAD
;
27 GP
= GameSaver
.load();
30 static void quitClicked() {
34 static void survivalClicked() {
38 static void creativeClicked() {
42 static void backClicked() {
43 CaveGame
.MENU_STATE
= MenuState
.MAIN
;