diff options
Diffstat (limited to 'src/game/GameController.cpp')
| -rw-r--r-- | src/game/GameController.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp index 9831c78..5237af7 100644 --- a/src/game/GameController.cpp +++ b/src/game/GameController.cpp @@ -231,6 +231,20 @@ void GameController::Install() #endif } +void GameController::AdjustGridSize(int direction) +{ + if(direction > 0) + gameModel->GetRenderer()->SetGridSize((gameModel->GetRenderer()->GetGridSize()+1)%10); + else + gameModel->GetRenderer()->SetGridSize((gameModel->GetRenderer()->GetGridSize()+9)%10); +} + +void GameController::InvertAirSim() +{ + gameModel->GetSimulation()->air->Invert(); +} + + void GameController::AdjustBrushSize(int direction, bool logarithmic, bool xAxis, bool yAxis) { if(xAxis && yAxis) |
