X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Finteractive_object.h;h=24aa866020ea6babc02a52894edd8eaf07d8093b;hb=95ef01464dbf007c0f0d9c3d8a88a147c117385d;hp=bb06a52387fa30907b827e8386ce1288cb9dbf6c;hpb=308f11e38981077626fe0ea9887094f3c28b02f9;p=supertux.git diff --git a/src/interactive_object.h b/src/interactive_object.h index bb06a5238..24aa86602 100644 --- a/src/interactive_object.h +++ b/src/interactive_object.h @@ -20,8 +20,10 @@ #ifndef SUPERTUX_INTERACTIVE_OBJECT_H #define SUPERTUX_INTERACTIVE_OBJECT_H -#include "game_object.h" -#include "type.h" +#include "special/game_object.h" +#include "special/base.h" + +using namespace SuperTux; enum InteractionType { @@ -43,6 +45,9 @@ public: const base_type& get_area() const { return area; } + void set_area(float x, float y) + { area.x = x; area.y = y; } + protected: base_type area; };