1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-25 05:58:30 +02:00
VVVVVV/desktop_version/src/BlockV.h
Misa a10342f5e6 Replace setblockcolour() argument with const char*
There's no reason it needs to be an std::string here.

Although, realistically, we should be using an enum instead of
string-typing, but, eh, that can be fixed later.
2021-09-12 21:06:26 -07:00

27 lines
436 B
C++

#ifndef BLOCKV_H
#define BLOCKV_H
#include <SDL.h>
#include <string>
class blockclass
{
public:
blockclass(void);
void clear(void);
void rectset(const int xi, const int yi, const int wi, const int hi);
void setblockcolour(const char* col);
public:
//Fundamentals
SDL_Rect rect;
int type;
int trigger;
int xp, yp, wp, hp;
std::string script, prompt;
int r, g, b;
};
#endif /* BLOCKV_H */