From 7f0e8c7ef70c62814c274f110367db92f01cbb26 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 10 Mar 2015 00:41:59 -0400 Subject: C++11'd everything! Also moved location information from physics components into entity. --- src/world.cpp | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 src/world.cpp (limited to 'src/world.cpp') diff --git a/src/world.cpp b/src/world.cpp deleted file mode 100644 index 90d9ab8..0000000 --- a/src/world.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include "world.h" - -void World::tick() -{ - for (auto it = entities.begin(); it != entities.end(); it++) - { - (*it)->tick(); - } -} - -void World::input(int key, int action) -{ - for (auto it = entities.begin(); it != entities.end(); it++) - { - (*it)->input(key, action); - } -} - -void World::render(Texture* buffer) -{ - fillTexture(buffer, NULL, 0, 0, 0); - - for (auto it = entities.begin(); it != entities.end(); it++) - { - (*it)->render(buffer); - } -} - -void World::addEntity(std::shared_ptr e) -{ - entities.push_back(e); -} -- cgit 1.4.1