X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FSimulation.hpp;h=3357e520ec86d0ee0619ab4e78e56c386ae8a15c;hb=HEAD;hp=5df595fb26d0eab0c3d0b799a93f333b4bcf6270;hpb=392826deaf802ac0960ed3924a3f98b9d18d381b;p=blobs.git diff --git a/src/world/Simulation.hpp b/src/world/Simulation.hpp index 5df595f..3357e52 100644 --- a/src/world/Simulation.hpp +++ b/src/world/Simulation.hpp @@ -5,6 +5,7 @@ #include "Set.hpp" #include "../app/Assets.hpp" +#include #include #include @@ -24,7 +25,7 @@ class TileType; class Simulation { public: - explicit Simulation(Body &root, app::Assets &); + explicit Simulation(app::Assets &); ~Simulation(); Simulation(const Simulation &) = delete; @@ -36,9 +37,6 @@ public: public: void Tick(double dt); - Body &Root() noexcept { return root; } - const Body &Root() const noexcept { return root; } - app::Assets &Assets() noexcept { return assets; } const app::Assets &Assets() const noexcept { return assets; } const Set &Resources() const noexcept { return assets.data.resources; } @@ -51,6 +49,7 @@ public: const std::set &Bodies() const noexcept { return bodies; } const std::set &Planets() const noexcept { return planets; } const std::set &Suns() const noexcept { return suns; } + Planet &PlanetByName(const std::string &); void SetAlive(creature::Creature *); std::vector &LiveCreatures() noexcept { return alive; } @@ -64,9 +63,11 @@ public: const std::vector &Records() const noexcept { return records; } void CheckRecords(creature::Creature &) noexcept; + void LogRecord(const Record &); + + std::ostream &Log(); private: - Body &root; app::Assets &assets; std::set bodies;