From b53826079429939cdfbda073608cb85be8ba0738 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 7 Mar 2015 11:29:57 -0500 Subject: Created entity-component system Also tweaked the bloom flicker, tweaked the scanline texture, created a second test map, and created some currently unused sound effects. --- src/world.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/world.h (limited to 'src/world.h') diff --git a/src/world.h b/src/world.h new file mode 100644 index 0000000..ad6c788 --- /dev/null +++ b/src/world.h @@ -0,0 +1,27 @@ +#ifndef WORLD_H +#define WORLD_H + +class World; + +#include +#include "renderer.h" +#include "entity.h" +#include + +class World { + public: + World() {}; + ~World() {}; + void tick(); + void input(int key, int action); + void render(Texture* buffer); + void addEntity(std::shared_ptr e); + + std::list bodies; + std::shared_ptr player; + + private: + std::list> entities; +}; + +#endif -- cgit 1.4.1