diff options
author | Aki <please@ignore.pl> | 2022-11-08 23:54:23 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-11-08 23:55:25 +0100 |
commit | caa48ce5946d093daaf950751dfa1432ea5373a9 (patch) | |
tree | 2a5b9d7586ab36a320b50b45175f4b8df46ae085 /universe | |
parent | 471bf1adab9022a4261f2f4bc7ce24ce977ccda7 (diff) | |
download | kurator-caa48ce5946d093daaf950751dfa1432ea5373a9.zip kurator-caa48ce5946d093daaf950751dfa1432ea5373a9.tar.gz kurator-caa48ce5946d093daaf950751dfa1432ea5373a9.tar.bz2 |
Creating skeleton for battle simulation and universe data
This might be a bit too much and a bit too blindly, but let's see how it
evolves.
Diffstat (limited to 'universe')
-rw-r--r-- | universe/CMakeLists.txt | 8 | ||||
-rw-r--r-- | universe/include/kurator/universe/ShipType.h | 20 | ||||
-rw-r--r-- | universe/include/kurator/universe/TurretType.h | 22 |
3 files changed, 50 insertions, 0 deletions
diff --git a/universe/CMakeLists.txt b/universe/CMakeLists.txt new file mode 100644 index 0000000..24457c5 --- /dev/null +++ b/universe/CMakeLists.txt @@ -0,0 +1,8 @@ +project(universe) +add_library( + ${PROJECT_NAME} INTERFACE +) +target_include_directories( + ${PROJECT_NAME} + INTERFACE include +) diff --git a/universe/include/kurator/universe/ShipType.h b/universe/include/kurator/universe/ShipType.h new file mode 100644 index 0000000..5f5eec1 --- /dev/null +++ b/universe/include/kurator/universe/ShipType.h @@ -0,0 +1,20 @@ +#pragma once + +#include <string> + + +namespace kurator +{ +namespace universe +{ + + +struct ShipType +{ + std::string name; + double base_health_points; +}; + + +} // namespace universe +} // namespace kurator diff --git a/universe/include/kurator/universe/TurretType.h b/universe/include/kurator/universe/TurretType.h new file mode 100644 index 0000000..b3a6eb2 --- /dev/null +++ b/universe/include/kurator/universe/TurretType.h @@ -0,0 +1,22 @@ +#pragma once + +#include <string> + + +namespace kurator +{ +namespace universe +{ + + +struct TurretType +{ + std::string name; + double base_damage; + double rate_of_fire; + double range; +}; + + +} // namespace universe +} // namespace kurator |