diff options
author | Aki <please@ignore.pl> | 2022-11-14 00:32:08 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-11-14 00:32:08 +0100 |
commit | 4f3de714cd04ee5d99167f415843573d6bbd9f62 (patch) | |
tree | 73d9b37221c8b647bf6c625aaddc0f8cb8ae475c /battles/src/scenarios.cpp | |
parent | 39ae4f2fd4c382f25ab98c6e98816e3e3a6f4e22 (diff) | |
download | kurator-4f3de714cd04ee5d99167f415843573d6bbd9f62.zip kurator-4f3de714cd04ee5d99167f415843573d6bbd9f62.tar.gz kurator-4f3de714cd04ee5d99167f415843573d6bbd9f62.tar.bz2 |
Implemented naive turrets and targeting mechanics
Coupling between components, implementation of systems and behaviour of some
state-related methods should be refactored, but the overall look is nice.
Diffstat (limited to 'battles/src/scenarios.cpp')
-rw-r--r-- | battles/src/scenarios.cpp | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/battles/src/scenarios.cpp b/battles/src/scenarios.cpp index cf348ca..3b35f44 100644 --- a/battles/src/scenarios.cpp +++ b/battles/src/scenarios.cpp @@ -17,26 +17,27 @@ example() { const universe::ShipType halo {"halo", 6.0}; const universe::ShipType cube {"cube", 12.0}; - const universe::ShipType bell {"bell", 20.0}; + const universe::ShipType bell {"bell", 30.0}; + const universe::TurretType cannon {"cannon", 1.0, 1.0, 0.5}; return { "example", { - {0, halo, {}}, - {0, halo, {}}, - {0, cube, {}}, - {0, cube, {}}, - {0, cube, {}}, - {0, bell, {}}, - {0, bell, {}}, - {0, bell, {}}, - {1, halo, {}}, - {1, halo, {}}, - {1, bell, {}}, - {1, cube, {}}, - {1, cube, {}}, - {1, cube, {}}, - {1, bell, {}}, - {1, bell, {}}, + {0, halo, {cannon}}, + {0, halo, {cannon}}, + {0, cube, {cannon, cannon}}, + {0, cube, {cannon, cannon}}, + {0, cube, {cannon, cannon}}, + {0, bell, {cannon}}, + {0, bell, {cannon}}, + {0, bell, {cannon}}, + {1, halo, {cannon}}, + {1, halo, {cannon}}, + {1, bell, {cannon}}, + {1, cube, {cannon, cannon}}, + {1, cube, {cannon, cannon}}, + {1, cube, {cannon, cannon}}, + {1, bell, {cannon}}, + {1, bell, {cannon}}, }, }; } |