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 @@ -13,38 +13,44 @@ public: ~Player(); void init(); void draw( SDL_Surface *screen ); void drawTrails( SDL_Surface *screen ); void move( bool up ); void moveTrails(); Rect getPos() { return pos; } int getX() { return pos.x(); } int getY() { return pos.y(); } 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: AnimatedImage *explosion; int sWidth; int sHeight; bool expNextFrame; bool allFaded; bool crashing; bool crashed; int crashLineLength; Rect pos; - double thrust; + double currentThrust; - double thrustUp; - double thrustDown; + double thrust; + double gravity; double maxUpSpeed; double maxDownSpeed; Rect trail[TRAILSIZE]; }; #endif |