#include "../model/shapes.hpp"
#include <list>
+#include <vector>
#include <glm/glm.hpp>
namespace blank {
-class BlockLighting;
-class DirectionalLighting;
+class Viewport;
+class WorldCollision;
class World {
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; }
void Update(int dt);
- void Render(BlockLighting &, DirectionalLighting &);
+ void Render(Viewport &);
private:
BlockTypeRegistry blockType;