class Camera : public GameObject, public Serializable, public ScriptInterface
{
public:
- Camera(Sector* sector);
+ Camera(Sector* sector, std::string name = "");
virtual ~Camera();
/// parse camera mode from lisp file
/// reset camera postion
virtual void reset(const Vector& tuxpos);
+ virtual void reset_kd(const Vector& tuxpos);
/** return camera position */
const Vector& get_translation() const;
{
}
- virtual void expose(HSQUIRRELVM vm, int table_idx);
- virtual void unexpose(HSQUIRRELVM vm, int table_idx);
+ virtual void expose(HSQUIRRELVM vm, SQInteger table_idx);
+ virtual void unexpose(HSQUIRRELVM vm, SQInteger table_idx);
// shake camera in a direction 1 time
void shake(float speed, float x, float y);
private:
void update_scroll_normal(float elapsed_time);
+ void update_scroll_normal_kd(float elapsed_time);
void update_scroll_autoscroll(float elapsed_time);
void update_scroll_to(float elapsed_time);
void keep_in_bounds(Vector& vector);
};
#endif /*SUPERTUX_CAMERA_H*/
-