19 lines
256 B
C
19 lines
256 B
C
|
//Virutal base class for entities
|
||
|
|
||
|
#ifndef __ENTITY_H_INCLUDED__
|
||
|
#define __ENTITY_H_INCLUDED__
|
||
|
|
||
|
#include<SDL2/SDL.h>
|
||
|
#include<iostream>
|
||
|
|
||
|
class Entity{
|
||
|
public:
|
||
|
SDL_Rect getRectangle();
|
||
|
protected:
|
||
|
SDL_Rect rect;
|
||
|
int posX, posY, szW, szH;
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif
|