platform-test/src/entity/entity.h

20 lines
281 B
C
Raw Normal View History

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