2020-01-01 21:29:24 +01:00
|
|
|
#ifndef BLOCKV_H
|
|
|
|
#define BLOCKV_H
|
|
|
|
|
2020-07-19 06:21:27 +02:00
|
|
|
#include <SDL.h>
|
2020-01-01 21:29:24 +01:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class blockclass
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
blockclass();
|
|
|
|
|
|
|
|
void rectset(const int xi, const int yi, const int wi, const int hi);
|
2020-04-04 00:26:19 +02:00
|
|
|
|
|
|
|
void setblockcolour(std::string col);
|
2020-01-01 21:29:24 +01:00
|
|
|
public:
|
|
|
|
//Fundamentals
|
|
|
|
SDL_Rect rect;
|
|
|
|
int type;
|
|
|
|
int trigger;
|
|
|
|
int xp, yp, wp, hp;
|
|
|
|
std::string script, prompt;
|
|
|
|
int r, g, b;
|
|
|
|
|
|
|
|
//These would come from the sprite in the flash
|
|
|
|
float x;
|
|
|
|
float y;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* BLOCKV_H */
|