#include <vector>
#include <cassert>
+#include <memory>
#include "math/vector.hpp"
#include "game_object.hpp"
}
class Sector;
+class Path;
+class PathWalker;
class Camera : public GameObject, public Serializable
{
LeftRightScrollChange scrollchange;
// autoscroll mode
- class ScrollPoint {
- public:
- Vector position;
- float speed;
- };
- std::vector<ScrollPoint> scrollpoints;
- size_t auto_idx;
- float auto_t;
- Vector current_dir;
+ std::auto_ptr<Path> autoscroll_path;
+ std::auto_ptr<PathWalker> autoscroll_walker;
// shaking
Timer shaketimer;