summaryrefslogtreecommitdiff
path: root/src/gui/game/GameModel.h
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-05-17 16:44:25 (GMT)
committer jacob1 <jfu614@gmail.com>2013-05-17 16:44:25 (GMT)
commit981f6984c2c0f87d54a9c90f4518c69c9ef02ae0 (patch)
tree757bd699a23c1fad61e60700265a25feb1a3042c /src/gui/game/GameModel.h
parentcbd402d8cb6aa699ffde83a1b5b3c2f4fc51baaf (diff)
parent77bf649fb4482c86ac1fd9b3233f062b53226007 (diff)
downloadpowder-981f6984c2c0f87d54a9c90f4518c69c9ef02ae0.zip
powder-981f6984c2c0f87d54a9c90f4518c69c9ef02ae0.tar.gz
Merge branch 'HEAD' of git@github.com:FacialTurd/The-Powder-Toy.git
Diffstat (limited to 'src/gui/game/GameModel.h')
-rw-r--r--src/gui/game/GameModel.h33
1 files changed, 15 insertions, 18 deletions
diff --git a/src/gui/game/GameModel.h b/src/gui/game/GameModel.h
index 0ade162..92df87f 100644
--- a/src/gui/game/GameModel.h
+++ b/src/gui/game/GameModel.h
@@ -53,7 +53,7 @@ private:
vector<Menu*> menuList;
vector<QuickOption*> quickOptions;
- Menu * activeMenu;
+ int activeMenu;
int currentBrush;
vector<Brush *> brushList;
SaveInfo * currentSave;
@@ -105,8 +105,6 @@ public:
GameModel();
~GameModel();
- Tool * GetToolFromIdentifier(std::string identifier);
-
void SetEdgeMode(int edgeMode);
int GetEdgeMode();
@@ -136,26 +134,29 @@ public:
void UpdateQuickOptions();
+ Tool * GetActiveTool(int selection);
+ void SetActiveTool(int selection, Tool * tool);
void SetToolStrength(float value);
float GetToolStrength();
-
Tool * GetLastTool();
void SetLastTool(Tool * newTool);
+ Tool * GetToolFromIdentifier(std::string identifier);
+ Tool * GetElementTool(int elementID);
+ vector<Tool*> GetToolList();
+ vector<Tool*> GetUnlistedTools();
+
+ Brush * GetBrush();
+ vector<Brush*> GetBrushList();
+ int GetBrushID();
+ void SetBrushID(int i);
void SetVote(int direction);
SaveInfo * GetSave();
SaveFile * GetSaveFile();
- Brush * GetBrush();
void SetSave(SaveInfo * newSave);
void SetSaveFile(SaveFile * newSave);
void AddObserver(GameView * observer);
- //Get an element tool from an element ID
- Tool * GetElementTool(int elementID);
-
- Tool * GetActiveTool(int selection);
- void SetActiveTool(int selection, Tool * tool);
-
bool GetPaused();
void SetPaused(bool pauseState);
bool GetDecoration();
@@ -166,16 +167,12 @@ public:
void ShowGravityGrid(bool showGrid);
void ClearSimulation();
vector<Menu*> GetMenuList();
- vector<Tool*> GetUnlistedTools();
- vector<Tool*> GetToolList();
vector<QuickOption*> GetQuickOptions();
- void SetActiveMenu(Menu * menu);
- Menu * GetActiveMenu();
+ void SetActiveMenu(int menuID);
+ int GetActiveMenu();
void FrameStep(int frames);
User GetUser();
void SetUser(User user);
- void SetBrush(int i);
- int GetBrushID();
Simulation * GetSimulation();
Renderer * GetRenderer();
void SetZoomEnabled(bool enabled);
@@ -189,7 +186,7 @@ public:
void SetZoomWindowPosition(ui::Point position);
ui::Point GetZoomWindowPosition();
void SetStamp(GameSave * newStamp);
- void AddStamp(GameSave * save);
+ std::string AddStamp(GameSave * save);
void SetClipboard(GameSave * save);
void SetPlaceSave(GameSave * save);
void Log(string message);