summaryrefslogtreecommitdiff
path: root/src/game/GameModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/GameModel.cpp')
-rw-r--r--src/game/GameModel.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/game/GameModel.cpp b/src/game/GameModel.cpp
index 91ddd53..3da3074 100644
--- a/src/game/GameModel.cpp
+++ b/src/game/GameModel.cpp
@@ -23,7 +23,8 @@ GameModel::GameModel():
clipboard(NULL),
stamp(NULL),
placeSave(NULL),
- colour(255, 0, 0, 255)
+ colour(255, 0, 0, 255),
+ toolStrength(1.0f)
{
sim = new Simulation();
ren = new Renderer(ui::Engine::Ref().g, sim);
@@ -295,6 +296,16 @@ void GameModel::AddObserver(GameView * observer){
UpdateQuickOptions();
}
+void GameModel::SetToolStrength(float value)
+{
+ toolStrength = value;
+}
+
+float GameModel::GetToolStrength()
+{
+ return toolStrength;
+}
+
void GameModel::SetActiveMenu(Menu * menu)
{
for(int i = 0; i < menuList.size(); i++)