2017-05-05 14:19:44 +00:00
|
|
|
//Base class for entities
|
2017-04-29 18:43:17 +00:00
|
|
|
|
|
|
|
#ifndef __ENTITY_H_INCLUDED__
|
|
|
|
#define __ENTITY_H_INCLUDED__
|
|
|
|
|
|
|
|
#include<SDL2/SDL.h>
|
|
|
|
#include<iostream>
|
|
|
|
|
|
|
|
class Entity{
|
|
|
|
public:
|
|
|
|
SDL_Rect getRectangle();
|
|
|
|
protected:
|
|
|
|
SDL_Rect rect;
|
2017-05-05 14:19:44 +00:00
|
|
|
SDL_Renderer** renderer;
|
2017-04-29 18:43:17 +00:00
|
|
|
int posX, posY, szW, szH;
|
2017-05-05 14:19:44 +00:00
|
|
|
int type;
|
2017-04-29 18:43:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|