]> git.localhorst.tv Git - blank.git/blobdiff - src/world/World.hpp
make entities removable
[blank.git] / src / world / World.hpp
index 7f38942ea2e4d9b4389dc97e2a430a1458951ff3..10710fbd6667a2dc8ac957d8068dae4564a392ab 100644 (file)
@@ -8,13 +8,14 @@
 #include "../model/shapes.hpp"
 
 #include <list>
+#include <vector>
 #include <glm/glm.hpp>
 
 
 namespace blank {
 
-class BlockLighting;
-class DirectionalLighting;
+class Viewport;
+class WorldCollision;
 
 class World {
 
@@ -44,7 +45,8 @@ public:
                float &dist,
                glm::vec3 &normal);
 
-       bool Intersection(const Entity &e);
+       bool Intersection(const Entity &e, std::vector<WorldCollision> &);
+       void Resolve(Entity &e, std::vector<WorldCollision> &);
 
        BlockTypeRegistry &BlockTypes() { return blockType; }
 
@@ -56,7 +58,7 @@ public:
 
        void Update(int dt);
 
-       void Render(BlockLighting &, DirectionalLighting &);
+       void Render(Viewport &);
 
 private:
        BlockTypeRegistry blockType;