X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Finteractive_object.h;h=24aa866020ea6babc02a52894edd8eaf07d8093b;hb=546364c9567ef212ea9276201facf73f5ada696a;hp=89133743702f3e76f93644f249168602ff3bdc47;hpb=cf4de5d58eb99a11369c329c01bfa5abe4b0a398;p=supertux.git diff --git a/src/interactive_object.h b/src/interactive_object.h index 891337437..24aa86602 100644 --- a/src/interactive_object.h +++ b/src/interactive_object.h @@ -16,11 +16,14 @@ // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -#ifndef __INTERACTIVE_OBJECT_H__ -#define __INTERACTIVE_OBJECT_H__ -#include "game_object.h" -#include "type.h" +#ifndef SUPERTUX_INTERACTIVE_OBJECT_H +#define SUPERTUX_INTERACTIVE_OBJECT_H + +#include "special/game_object.h" +#include "special/base.h" + +using namespace SuperTux; enum InteractionType { @@ -42,9 +45,12 @@ 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; }; -#endif +#endif /*SUPERTUX_INTERACTIVE_OBJECT_H*/