Diffstat (limited to 'noncore/games/sfcave-sdl/player.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/sfcave-sdl/player.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/noncore/games/sfcave-sdl/player.h b/noncore/games/sfcave-sdl/player.h index e4c904a..595c25b 100644 --- a/noncore/games/sfcave-sdl/player.h +++ b/noncore/games/sfcave-sdl/player.h | |||
@@ -22,7 +22,13 @@ public: | |||
22 | int getY() { return pos.y(); } | 22 | int getY() { return pos.y(); } |
23 | int getHeight() { return pos.h(); } | 23 | int getHeight() { return pos.h(); } |
24 | bool updateCrashing(); | 24 | bool updateCrashing(); |
25 | void setMovementInfo( double up, double down, double maxUp, double maxDown ); | 25 | void setMovementInfo( double up, double grav, double maxUp, double maxDown ); |
26 | void incValue( int valType ); | ||
27 | void decValue( int valType ); | ||
28 | double getValue( int valueType ); | ||
29 | string getValueString( int valueType ); | ||
30 | string getValueTypeString( int valueType ); | ||
31 | void setValue( int valueType, double val ); | ||
26 | 32 | ||
27 | private: | 33 | private: |
28 | AnimatedImage *explosion; | 34 | AnimatedImage *explosion; |
@@ -36,10 +42,10 @@ private: | |||
36 | bool crashed; | 42 | bool crashed; |
37 | int crashLineLength; | 43 | int crashLineLength; |
38 | Rect pos; | 44 | Rect pos; |
39 | double thrust; | 45 | double currentThrust; |
40 | 46 | ||
41 | double thrustUp; | 47 | double thrust; |
42 | double thrustDown; | 48 | double gravity; |
43 | double maxUpSpeed; | 49 | double maxUpSpeed; |
44 | double maxDownSpeed; | 50 | double maxDownSpeed; |
45 | 51 | ||