X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld.hpp;h=8ef2b21b2b05ee7d7106a8af536e0a2bf36e85b4;hb=b35ce3a6423c554b34b37362c5550bd705e63a1d;hp=60ec6f4dbeca36c1b7364f4834ad3cec54a3e3b7;hpb=804bde3fc09e4317eef629861638a68bfad3e343;p=blank.git diff --git a/src/world.hpp b/src/world.hpp index 60ec6f4..8ef2b21 100644 --- a/src/world.hpp +++ b/src/world.hpp @@ -3,7 +3,7 @@ #include "block.hpp" #include "chunk.hpp" -#include "controller.hpp" +#include "entity.hpp" #include "noise.hpp" #include "shader.hpp" #include "shape.hpp" @@ -32,7 +32,7 @@ public: BlockTypeRegistry &BlockTypes() { return blockType; } std::list &LoadedChunks() { return loaded; } - FPSController &Controller() { return player; } + Entity &Player() { return player; } Chunk &Next(const Chunk &, const glm::vec3 &dir); @@ -52,7 +52,7 @@ private: SimplexNoise blockNoise; SimplexNoise colorNoise; - FPSController player; + Entity player; std::list loaded; std::list to_generate;