X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FSimulation.hpp;h=3357e520ec86d0ee0619ab4e78e56c386ae8a15c;hb=HEAD;hp=19023406ace73a2466886fb2c71c960cea208bb7;hpb=631f0cfd6b421f5be68d60375db2ce91176d923d;p=blobs.git diff --git a/src/world/Simulation.hpp b/src/world/Simulation.hpp index 1902340..3357e52 100644 --- a/src/world/Simulation.hpp +++ b/src/world/Simulation.hpp @@ -25,7 +25,7 @@ class TileType; class Simulation { public: - explicit Simulation(Body &root, app::Assets &); + explicit Simulation(app::Assets &); ~Simulation(); Simulation(const Simulation &) = delete; @@ -37,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; } @@ -52,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; } @@ -65,11 +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;