summaryrefslogtreecommitdiff
path: root/noncore/games/sfcave-sdl/player.h
Side-by-side diff
Diffstat (limited to 'noncore/games/sfcave-sdl/player.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/games/sfcave-sdl/player.h14
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
@@ -23,5 +23,11 @@ public:
int getHeight() { return pos.h(); }
bool updateCrashing();
- void setMovementInfo( double up, double down, double maxUp, double maxDown );
+ void setMovementInfo( double up, double grav, double maxUp, double maxDown );
+ void incValue( int valType );
+ void decValue( int valType );
+ double getValue( int valueType );
+ string getValueString( int valueType );
+ string getValueTypeString( int valueType );
+ void setValue( int valueType, double val );
private:
@@ -37,8 +43,8 @@ private:
int crashLineLength;
Rect pos;
- double thrust;
+ double currentThrust;
- double thrustUp;
- double thrustDown;
+ double thrust;
+ double gravity;
double maxUpSpeed;
double maxDownSpeed;