platform-test/entity.h

19 lines
256 B
C
Raw Normal View History

2017-04-29 18:43:17 +00:00
//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