Addded property to Worldmap Spawnpoint to let Tux automatically start walking (or...
[supertux.git] / src / physic.hpp
index f7ec065..abfdba5 100644 (file)
@@ -68,6 +68,12 @@ public:
   void enable_gravity(bool gravity_enabled);
   bool gravity_enabled() const;
 
+  /// Set gravity to apply to object when enabled
+  void set_gravity(float gravity);
+
+  /// Get gravity to apply to object when enabled
+  float get_gravity() const;
+
   Vector get_movement(float elapsed_time);
 
 private:
@@ -77,6 +83,8 @@ private:
   float vx, vy;
   /// should we respect gravity in out calculations?
   bool gravity_enabled_flag;
+  /// current gravity to apply to object, if enabled
+  float gravity;
 };
 
 #endif