c94777a08d4ef6fc3b1752e04dd154005f78c145
[supertux.git] / src / scripting / camera.hpp
1 #ifndef __CAMERA_H__
2 #define __CAMERA_H__
3
4 #ifndef SCRIPTING_API
5 class Camera;
6 typedef Camera _Camera;
7 #endif
8
9 namespace Scripting
10 {
11
12 class Camera
13 {
14 public:
15 #ifndef SCRIPTING_API
16   Camera(_Camera* camera);
17   ~Camera();
18 #endif
19
20   /** Shake the camera */
21   void shake(float speed, float x, float y);
22   /** Set camera to a specific coordinate */
23   void set_pos(float x, float y);
24   /** Set camera to a specific mode, can be "normal", "manual" */
25   void set_mode(const std::string& mode);
26   /** Scroll camera to position x,y in scrolltime seconds */
27   void scroll_to(float x, float y, float scrolltime);
28
29 #ifndef SCRIPTING_API
30   _Camera* camera;
31 #endif
32 };
33
34 }
35
36 #endif
37