DEADSOFTWARE

Implement dependency injection for game classes #13
[cavedroid.git] / core / src / ru / deadsoftware / cavedroid / menu / submenus / MenuInput.java
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.GameSaver;
6 import ru.deadsoftware.cavedroid.misc.states.AppState;
7 import ru.deadsoftware.cavedroid.misc.states.MenuState;
9 class MenuInput {
11 private static void startNewGame(int gameMode) {
12 // GP = new GameProc();
13 // GP.player.respawn();
14 // GameSaver.save(GP);
15 // CaveGame.APP_STATE = AppState.LOAD;
16 }
18 static void newGameClicked() {
19 // CaveGame.MENU_STATE = MenuState.NEW_GAME;
20 }
22 static void loadGameClicked() {
23 // CaveGame.APP_STATE = AppState.LOAD;
24 // GP = GameSaver.load();
25 }
27 static void quitClicked() {
28 Gdx.app.exit();
29 }
31 static void survivalClicked() {
32 startNewGame(0);
33 }
35 static void creativeClicked() {
36 startNewGame(1);
37 }
39 static void backClicked() {
40 // CaveGame.MENU_STATE = MenuState.MAIN;
41 }
43 }