-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodelController.h
71 lines (39 loc) · 1.78 KB
/
modelController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef THEHUTRIES_MODELCONTROLLER_H
#define THEHUTRIES_MODELCONTROLLER_H
#include "gameModel.h"
class ModelController
{
public:
ModelController();
~ModelController();
void setChosenInteractionMode(int chosenInteractionMode);
int getChosenInteractionMode();
int getChosenBuildingType();
void setChosenBuildingType(int chosenBuildingType);
int getApplicationWidth();
void setApplicationWidth(int applicationWidth);
int getApplicationHeight();
void setApplicationHeight(int applicationHeight);
unsigned int getSelectedUnitIndex();
void setSelectedUnitIndex(unsigned int selectedUnitIndex);
int getTempChosenMode();
void setTempChosenMode(int tempChosenMode);
float getHorizontalScreenZoom() { return gameModel->getHorizontalScreenZoom(); };
void setHorizontalScreenZoom(float horizontalScreenZoom)
{
gameModel->setHorizontalScreenZoom(horizontalScreenZoom);
};
float getVerticalScreenZoom() { return gameModel->getVerticalScreenZoom(); };
void setVerticalScreenZoom(float verticalScreenZoom) { gameModel->setVerticalScreenZoom(verticalScreenZoom); };
bool getReadyForGame() {return gameModel->getReadyForGame();};
void setReadyForGame(bool readyForGame) {gameModel->setReadyForGame(readyForGame);}
bool getBackToMenu() {return gameModel->getBackToMenu();};
void setBackToMenu(bool backToMenu) {gameModel->setBackToMenu(backToMenu);}
bool getPauseGame() {return gameModel->getPauseGame();};
void setPauseGame(bool pauseGame) {gameModel->setPauseGame(pauseGame);};
bool getExitWindow() {return gameModel->getExitWindow();};
void setExitWindow(bool exitWindow) {gameModel->setExitWindow(exitWindow);};
private:
GameModel* gameModel;
};
#endif //THEHUTRIES_MODELCONTROLLER_H