X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fphysic.hpp;h=5275779b7c4121654287a743c31a295ef3d683ed;hb=c8eb3938f7b08c5f91f42c1f8ad91e5567817a4d;hp=abfdba53060d40209db037a885b82247e382157e;hpb=d6e2020d36ff5b61efee046f31c829eaac06b8cd;p=supertux.git diff --git a/src/physic.hpp b/src/physic.hpp index abfdba530..5275779b7 100644 --- a/src/physic.hpp +++ b/src/physic.hpp @@ -43,7 +43,7 @@ public: void set_velocity_x(float vx); void set_velocity_y(float vy); - /// Velocities invertion. + /// Velocities inversion. void inverse_velocity_x(); void inverse_velocity_y(); @@ -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