X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld.hpp;h=8ef2b21b2b05ee7d7106a8af536e0a2bf36e85b4;hb=cb959294a8271969ddfe411471d7f04e82c4788a;hp=60ec6f4dbeca36c1b7364f4834ad3cec54a3e3b7;hpb=09b5fd4523246deace5f52eed03623d150b76913;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;