Forgot a couple necessary files

This commit is contained in:
Anna Rose 2011-07-06 17:56:37 -04:00
parent 825a3f8e4a
commit 4e4cb561fc
2 changed files with 40 additions and 0 deletions

15
entity.cpp Normal file
View File

@ -0,0 +1,15 @@
#include "entity.h"
// These are in a .cpp file solely because inline destructors can cause
// problems for some compilers
Entity::Entity()
{
}
Entity::~Entity()
{
}

25
entity.h Normal file
View File

@ -0,0 +1,25 @@
/* An entity is any object that needs to animate, or be clickable, or that we
* want to handle its own rendering. We can keep them all in a single list, and
* render/iterate them in a loop
*/
#ifndef _ENTITY_H_
#define _ENTITY_H_
#include <SDL.h>
class Entity
{
public:
Entity();
virtual ~Entity();
virtual bool init() = 0;
virtual void render(SDL_Surface* display) = 0;
virtual void iterate() = 0;
protected:
};
#endif