X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fgameobjs.h;h=49515a34551f9ef1e05045b23ff9a677fd8a515d;hb=44ef9ca509db10b0c7ff6b086e74ee737cb838c9;hp=ff2e31e19db037b941bc4f63baff976d2370fa38;hpb=c2b5367f6f1d24f84ea26da553245128f241690e;p=supertux.git diff --git a/src/gameobjs.h b/src/gameobjs.h index ff2e31e19..49515a345 100644 --- a/src/gameobjs.h +++ b/src/gameobjs.h @@ -132,6 +132,9 @@ public: virtual void collision(const MovingObject& other, int); void collision(void *p_c_object, int c_object, CollisionType type); + float get_vel_x() { return vel_x; } + float get_vel_y() { return vel_y; } + Physic physic; enum { M_NORMAL, M_HELD } mode; @@ -140,6 +143,8 @@ public: std::vector pos_y; float velocity; + float vel_x, vel_y; // calculated based in the velocity + int point; bool move; unsigned int frame;