1 #ifndef __SCRIPTED_OBJECT_H__
2 #define __SCRIPTED_OBJECT_H__
6 #include "sprite/sprite.h"
8 #include "moving_object.h"
9 #include "scripting/scripted_object.h"
11 class ScriptedObject : public MovingObject, public Scripting::ScriptedObject
14 ScriptedObject(const lisp::Lisp& lisp);
15 virtual ~ScriptedObject();
17 void action(float elapsed_time);
18 void draw(DrawingContext& context);
19 HitResponse collision(GameObject& other, const CollisionHit& hit);
21 // --- Scripting Interface stuff ---
23 void set_animation(const std::string& animation);
24 std::string get_animation();
26 void move(float x, float y);
27 void set_pos(float x, float y);
30 void set_velocity(float x, float y);
31 float get_velocity_x();
32 float get_velocity_y();
33 void set_visible(bool visible);
36 std::string get_name();