diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2021-07-06 10:13:33 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2021-07-06 10:13:33 -0400 |
commit | 77fad1c341787f11ee3b8aeaa5c58fe6ebbdebb6 (patch) | |
tree | aa8addf2f54d3def01edb29944cacdebdcaf981b /src/camera_system.h | |
parent | 8aedeaf12c7dbf35f2f75f1b063b76a4fad06f30 (diff) | |
download | tanetane-77fad1c341787f11ee3b8aeaa5c58fe6ebbdebb6.tar.gz tanetane-77fad1c341787f11ee3b8aeaa5c58fe6ebbdebb6.tar.bz2 tanetane-77fad1c341787f11ee3b8aeaa5c58fe6ebbdebb6.zip |
Added the ability to pan camera to a warp point
Diffstat (limited to 'src/camera_system.h')
-rw-r--r-- | src/camera_system.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/camera_system.h b/src/camera_system.h index 8c9419c..7ff410d 100644 --- a/src/camera_system.h +++ b/src/camera_system.h | |||
@@ -1,6 +1,7 @@ | |||
1 | #ifndef CAMERA_SYSTEM_H_D52ADAD3 | 1 | #ifndef CAMERA_SYSTEM_H_D52ADAD3 |
2 | #define CAMERA_SYSTEM_H_D52ADAD3 | 2 | #define CAMERA_SYSTEM_H_D52ADAD3 |
3 | 3 | ||
4 | #include <string_view> | ||
4 | #include "consts.h" | 5 | #include "consts.h" |
5 | #include "system.h" | 6 | #include "system.h" |
6 | #include "vector.h" | 7 | #include "vector.h" |
@@ -29,6 +30,11 @@ public: | |||
29 | // Automatically locks the camera. | 30 | // Automatically locks the camera. |
30 | void panToSprite(int targetId, int length); | 31 | void panToSprite(int targetId, int length); |
31 | 32 | ||
33 | // Pans over to the provided warp point over the provided amount of time. | ||
34 | // - length is in milliseconds | ||
35 | // Automatically locks the camera. | ||
36 | void panToWarpPoint(std::string_view warpPoint, int length); | ||
37 | |||
32 | bool isPanning() const { return panning_; } | 38 | bool isPanning() const { return panning_; } |
33 | 39 | ||
34 | void tick(double dt) override; | 40 | void tick(double dt) override; |