mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-09-30 10:17:23 +02:00
2af396fb30
That's how it should be done, because the SDL headers aren't going to be installed in this repository. The game was a bit inconsistent before but now it isn't anymore.
30 lines
490 B
C++
30 lines
490 B
C++
#ifndef BLOCKV_H
|
|
#define BLOCKV_H
|
|
|
|
#include <SDL.h>
|
|
#include <string>
|
|
|
|
class blockclass
|
|
{
|
|
public:
|
|
blockclass();
|
|
|
|
void rectset(const int xi, const int yi, const int wi, const int hi);
|
|
|
|
void setblockcolour(std::string col);
|
|
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 */
|