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/Tool.h | |
| 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/Tool.h')
| -rw-r--r-- | src/game/Tool.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Tool.h b/src/game/Tool.h index f6327cf..c4f44bb 100644 --- a/src/game/Tool.h +++ b/src/game/Tool.h @@ -25,10 +25,13 @@ protected: int toolID; string toolName; string toolDescription; + float strength; public: Tool(int id, string name, string description, int r, int g, int b, VideoBuffer * (*textureGen)(int, int, int) = NULL); string GetName(); string GetDescription(); + void SetStrength(float value) { strength = value; } + float GetStrength() { return strength; } VideoBuffer * GetTexture(int width, int height); void SetTextureGen(VideoBuffer * (*textureGen)(int, int, int)); virtual ~Tool(); |
