diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-10 13:03:23 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-10 13:03:23 (GMT) |
| commit | 810ea42f99cf9f56c1ac998ce8a203bea01e97b2 (patch) | |
| tree | b3c2bc39bfed051003a6eeab6e990e73ddad5dec /src/game/GameModel.cpp | |
| parent | fd40ed234ab157c4e315cb748163969c8ff83b0f (diff) | |
| download | powder-810ea42f99cf9f56c1ac998ce8a203bea01e97b2.zip powder-810ea42f99cf9f56c1ac998ce8a203bea01e97b2.tar.gz | |
Only render gravity lensing if it's enabled, Ctrl and Shift to alter tool strength (Shift = x10, Ctrl = x0.1)
Diffstat (limited to 'src/game/GameModel.cpp')
| -rw-r--r-- | src/game/GameModel.cpp | 13 |
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++) |
