diff options
Diffstat (limited to 'battles/include')
-rw-r--r-- | battles/include/kurator/battles/Point.h | 7 | ||||
-rw-r--r-- | battles/include/kurator/battles/components.h | 13 |
2 files changed, 20 insertions, 0 deletions
diff --git a/battles/include/kurator/battles/Point.h b/battles/include/kurator/battles/Point.h index 71a6993..b6be651 100644 --- a/battles/include/kurator/battles/Point.h +++ b/battles/include/kurator/battles/Point.h @@ -11,6 +11,13 @@ struct Point { double x; double y; + double magnitude() const; + double distance(const Point& other) const; + Point rotate(double angle) const; + Point scale(double _scale) const; + Point normalized() const; + Point operator-(const Point& other) const; + Point operator+(const Point& other) const; }; diff --git a/battles/include/kurator/battles/components.h b/battles/include/kurator/battles/components.h index 307acc3..0c1e280 100644 --- a/battles/include/kurator/battles/components.h +++ b/battles/include/kurator/battles/components.h @@ -25,5 +25,18 @@ struct Team }; +struct AIState +{ + Point destination; + entt::entity target = entt::null; +}; + + +struct FloatingMovement +{ + double speed; // linear and instant angular for now +}; + + } // namespace battles } // namespace kurator |