- added support for variable width fonts (not fully finished, needs some more cleanup...
[supertux.git] / src / physic.hpp
index e05b65f..3922180 100644 (file)
@@ -67,10 +67,10 @@ public:
   /// Enables or disables handling of gravity.
   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;
 
@@ -81,10 +81,17 @@ private:
   float ax, ay;
   /// horizontal and vertical velocity
   float vx, vy;
-  /// should we respect gravity in out calculations?
+  /// should we respect gravity in our calculations?
   bool gravity_enabled_flag;
-  /// current gravity to apply to object, if enabled
+  /// current gravity (multiplied by 100) to apply to object, if enabled
   float gravity;
 };
 
+class UsesPhysic
+{
+public:
+  Physic physic;
+  friend class Sector;
+};
+
 #endif