diff options
Diffstat (limited to 'battles/include')
-rw-r--r-- | battles/include/kurator/battles/Battle.h | 31 | ||||
-rw-r--r-- | battles/include/kurator/battles/Point.h | 26 | ||||
-rw-r--r-- | battles/include/kurator/battles/Scenario.h | 24 | ||||
-rw-r--r-- | battles/include/kurator/battles/ShipConfig.h | 22 | ||||
-rw-r--r-- | battles/include/kurator/battles/components.h | 59 | ||||
-rw-r--r-- | battles/include/kurator/battles/events.h | 21 | ||||
-rw-r--r-- | battles/include/kurator/battles/scenarios.h | 19 |
7 files changed, 0 insertions, 202 deletions
diff --git a/battles/include/kurator/battles/Battle.h b/battles/include/kurator/battles/Battle.h deleted file mode 100644 index 1542597..0000000 --- a/battles/include/kurator/battles/Battle.h +++ /dev/null @@ -1,31 +0,0 @@ -#pragma once - -#include <memory> - -#include <entt/entity/registry.hpp> -#include <entt/signal/dispatcher.hpp> - -#include "Scenario.h" - - -namespace kurator -{ -namespace battles -{ - - -class Battle -{ -public: - virtual ~Battle() = default; - virtual entt::registry& registry() = 0; - virtual entt::dispatcher& dispatcher() = 0; - virtual void update(float dt) = 0; -}; - - -auto prepare(const Scenario& scenario) -> std::unique_ptr<Battle>; - - -} // namespace battles -} // namespace kurator diff --git a/battles/include/kurator/battles/Point.h b/battles/include/kurator/battles/Point.h deleted file mode 100644 index ba9ab63..0000000 --- a/battles/include/kurator/battles/Point.h +++ /dev/null @@ -1,26 +0,0 @@ -#pragma once - - -namespace kurator -{ -namespace battles -{ - - -struct Point -{ - double x; - double y; - double magnitude() const; - double distance(const Point& other) const; - double angle() 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; -}; - - -} // namespace battles -} // namespace kurator diff --git a/battles/include/kurator/battles/Scenario.h b/battles/include/kurator/battles/Scenario.h deleted file mode 100644 index afbb74c..0000000 --- a/battles/include/kurator/battles/Scenario.h +++ /dev/null @@ -1,24 +0,0 @@ -#pragma once - -#include <string> -#include <vector> - -#include "ShipConfig.h" - - -namespace kurator -{ -namespace battles -{ - - -struct Scenario -{ - std::string name; - std::vector<ShipConfig> ships; - int total_teams() const; -}; - - -} // namespace battles -} // namespace kurator diff --git a/battles/include/kurator/battles/ShipConfig.h b/battles/include/kurator/battles/ShipConfig.h deleted file mode 100644 index 2066430..0000000 --- a/battles/include/kurator/battles/ShipConfig.h +++ /dev/null @@ -1,22 +0,0 @@ -#pragma once - -#include <string> -#include <vector> - - -namespace kurator -{ -namespace battles -{ - - -struct ShipConfig -{ - int team; - std::string type; - std::vector<std::string> turrets; -}; - - -} // namespace battles -} // namespace kurator diff --git a/battles/include/kurator/battles/components.h b/battles/include/kurator/battles/components.h deleted file mode 100644 index d4363c4..0000000 --- a/battles/include/kurator/battles/components.h +++ /dev/null @@ -1,59 +0,0 @@ -#pragma once - -#include <entt/entity/entity.hpp> - -#include "Point.h" - - -namespace kurator -{ -namespace battles -{ - - -struct Transform -{ - Point position; - double angle; - entt::entity reference_frame = entt::null; -}; - - -struct Team -{ - int id; -}; - - -struct AIState -{ - Point destination; - entt::entity target = entt::null; -}; - - -struct FloatingMovement -{ - double max_speed; - double acceleration; - double deceleration; - double destination_boundary; - Point speed = {0.0, 0.0}; -}; - - -struct HitPoints -{ - double health; -}; - - -struct TurretControl -{ - double reload; - entt::entity owner; -}; - - -} // namespace battles -} // namespace kurator diff --git a/battles/include/kurator/battles/events.h b/battles/include/kurator/battles/events.h deleted file mode 100644 index 0e4af14..0000000 --- a/battles/include/kurator/battles/events.h +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once - -#include <entt/entity/entity.hpp> - - -namespace kurator -{ -namespace battles -{ - - -struct Hit -{ - double damage; - entt::entity source; - entt::entity victim; -}; - - -} // namespace battles -} // namespace kurator diff --git a/battles/include/kurator/battles/scenarios.h b/battles/include/kurator/battles/scenarios.h deleted file mode 100644 index 3d7e697..0000000 --- a/battles/include/kurator/battles/scenarios.h +++ /dev/null @@ -1,19 +0,0 @@ -#pragma once - -#include "Scenario.h" - - -namespace kurator -{ -namespace battles -{ -namespace scenarios -{ - - -Scenario example(); - - -} // namespace scenarios -} // namespace battles -} // namespace kurator |