1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-25 22:18:30 +02:00
VVVVVV/desktop_version/src/BlockV.h
Misa 7edbebac92 Move entityclass::setblockcolour() to blockclass::setblockcolour()
This moves the function setblockcolour(), so I can directly call it on a
particular block without having to have it be inside obj.blocks.
2020-04-03 23:28:47 -04:00

34 lines
526 B
C++

#ifndef BLOCKV_H
#define BLOCKV_H
#include "SDL.h"
#include <string>
class blockclass
{
public:
blockclass();
void clear();
void rectset(const int xi, const int yi, const int wi, const int hi);
void setblockcolour(std::string col);
public:
//Fundamentals
bool active;
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 */