20 lines
281 B
C
20 lines
281 B
C
|
//Base class for entities
|
||
|
|
||
|
#ifndef __ENTITY_H_INCLUDED__
|
||
|
#define __ENTITY_H_INCLUDED__
|
||
|
|
||
|
#include<SDL.h>
|
||
|
#include<iostream>
|
||
|
|
||
|
class Entity{
|
||
|
public:
|
||
|
SDL_Rect getRectangle();
|
||
|
protected:
|
||
|
SDL_Rect rect;
|
||
|
SDL_Renderer** renderer;
|
||
|
int posX, posY, szW, szH;
|
||
|
int type;
|
||
|
};
|
||
|
|
||
|
#endif
|