From a8929c77736b98781866dcd8bd5556991e023c23 Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 24 Nov 2022 18:43:35 +0100 Subject: Applied ship designs and stats to current sample scenario and universe --- universe/include/kurator/universe/ShipType.h | 1 + universe/src/SampleRepository.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'universe') diff --git a/universe/include/kurator/universe/ShipType.h b/universe/include/kurator/universe/ShipType.h index 5f5eec1..fccf970 100644 --- a/universe/include/kurator/universe/ShipType.h +++ b/universe/include/kurator/universe/ShipType.h @@ -13,6 +13,7 @@ struct ShipType { std::string name; double base_health_points; + double max_speed; }; diff --git a/universe/src/SampleRepository.cpp b/universe/src/SampleRepository.cpp index 2886e3d..31f7807 100644 --- a/universe/src/SampleRepository.cpp +++ b/universe/src/SampleRepository.cpp @@ -16,14 +16,14 @@ namespace universe static const std::unordered_map ships { - {"cube", {"Cube", 10.0}}, - {"halo", {"Halo", 4.0}}, - {"bell", {"Bell", 18.0}}, + {"Anvil", {"Anvil", 600.0, 218.0}}, + {"Eclipse", {"Eclipse", 600.0, 263.0}}, + {"Warbringer", {"Warbringer", 600.0, 336.0}}, }; static const std::unordered_map turrets { - {"cannon", {"Cannon", 1.0, 1.0, 1.5, 0.5, 0.2}}, + {"ChargeLaser", {"ChargeLaser", 85.0, 4.5, 7000.0, 0.05, 0.2}}, }; -- cgit v1.1