X-Git-Url: http://git.localhorst.tv/?p=blobs.git;a=blobdiff_plain;f=src%2Fworld%2FSimulation.hpp;fp=src%2Fworld%2FSimulation.hpp;h=3357e520ec86d0ee0619ab4e78e56c386ae8a15c;hp=3be86a7b130fd9c42166eb746f5c387fd5432e27;hb=38db9a31695abef65ebc421f120a05219132b15f;hpb=f8c0f8706e51450ee0e87a548ccf3a66ee9f0db3 diff --git a/src/world/Simulation.hpp b/src/world/Simulation.hpp index 3be86a7..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; } @@ -70,7 +68,6 @@ public: std::ostream &Log(); private: - Body &root; app::Assets &assets; std::set bodies;