summaryrefslogtreecommitdiff
path: root/universe
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-11-24 18:43:35 +0100
committerAki <please@ignore.pl>2022-11-24 18:43:35 +0100
commita8929c77736b98781866dcd8bd5556991e023c23 (patch)
tree634edc92d899ac7db371b22b3b7fd9cedcdc6214 /universe
parentd079345f836aae863f3d615ea80bf4cc2ff14dbb (diff)
downloadkurator-a8929c77736b98781866dcd8bd5556991e023c23.zip
kurator-a8929c77736b98781866dcd8bd5556991e023c23.tar.gz
kurator-a8929c77736b98781866dcd8bd5556991e023c23.tar.bz2
Applied ship designs and stats to current sample scenario and universe
Diffstat (limited to 'universe')
-rw-r--r--universe/include/kurator/universe/ShipType.h1
-rw-r--r--universe/src/SampleRepository.cpp8
2 files changed, 5 insertions, 4 deletions
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<std::string, ShipType> 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<std::string, TurretType> 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}},
};