X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcreature%2FSituation.hpp;h=12b7490914783c6aac2bb9219d0bcd2f2f9c9c82;hb=25ea209f2732dfe643844f303d304dc3c6a5f4f0;hp=4dbb1c694d96b8ea5d534b353ec9c6e5f9a8e2a2;hpb=bcf776b6d51aeb9147bde32da8dd0768b10db993;p=blobs.git diff --git a/src/creature/Situation.hpp b/src/creature/Situation.hpp index 4dbb1c6..12b7490 100644 --- a/src/creature/Situation.hpp +++ b/src/creature/Situation.hpp @@ -7,6 +7,8 @@ namespace blobs { namespace world { class Planet; + class Tile; + class TileType; } namespace creature { @@ -19,9 +21,13 @@ public: public: bool OnPlanet() const noexcept; world::Planet &GetPlanet() const noexcept { return *planet; } + bool OnSurface() const noexcept; int Surface() const noexcept { return surface; } const glm::dvec3 &Position() const noexcept { return position; } + world::Tile &GetTile() const noexcept; + const world::TileType &GetTileType() const noexcept; + void Move(const glm::dvec3 &dp) noexcept; void SetPlanetSurface(world::Planet &, int srf, const glm::dvec3 &pos) noexcept; public: