2017-04-29 18:43:17 +00:00
|
|
|
//Block class header
|
|
|
|
|
|
|
|
#ifndef __BLOCK_H_INLCUDED__
|
|
|
|
#define __BLOCK_H_INCLUDED__
|
|
|
|
|
|
|
|
#include"entity.h"
|
|
|
|
#include<SDL2/SDL.h>
|
|
|
|
#include<iostream>
|
|
|
|
|
|
|
|
class Entity;
|
|
|
|
|
|
|
|
class Block: public Entity{
|
|
|
|
public:
|
2017-04-30 16:23:47 +00:00
|
|
|
Block(int x,int y,int w,int h,SDL_Renderer** render);
|
|
|
|
void print(int cameraX);
|
|
|
|
private:
|
|
|
|
SDL_Renderer** renderer;
|
2017-04-29 18:43:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|