1 package ru
.deadsoftware
.cavedroid
;
3 import ru
.deadsoftware
.cavedroid
.game
.GameUiWindow
;
5 import javax
.annotation
.CheckForNull
;
6 import javax
.inject
.Inject
;
7 import javax
.inject
.Singleton
;
10 public class MainConfig
{
12 private final CaveGame mCaveGame
;
15 private MainComponent mMainComponent
;
17 private GameUiWindow mGameUiWindow
;
18 private String mGameFolder
;
20 private boolean mTouch
;
21 private boolean mShowInfo
;
22 private boolean mShowMap
;
25 private float mHeight
;
28 public MainConfig(CaveGame caveGame
) {
31 mGameUiWindow
= GameUiWindow
.NONE
;
35 public CaveGame
getCaveGame() {
39 public MainComponent
getMainComponent() {
40 assert mMainComponent
!= null;
41 return mMainComponent
;
44 public void setMainComponent(MainComponent mainComponent
) {
45 mMainComponent
= mainComponent
;
48 public boolean checkGameUiWindow(GameUiWindow gameUiWindow
) {
49 return mGameUiWindow
== gameUiWindow
;
52 public GameUiWindow
getGameUiWindow() {
56 public void setGameUiWindow(GameUiWindow gameUiWindow
) {
57 mGameUiWindow
= gameUiWindow
;
60 public String
getGameFolder() {
64 public void setGameFolder(String gameFolder
) {
65 mGameFolder
= gameFolder
;
68 public boolean isTouch() {
72 public void setTouch(boolean touch
) {
76 public float getWidth() {
80 public void setWidth(float width
) {
84 public float getHeight() {
88 public void setHeight(float height
) {
92 public boolean isShowInfo() {
96 public void setShowInfo(boolean showInfo
) {
100 public boolean isShowMap() {
104 public void setShowMap(boolean showMap
) {