1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01:00
VVVVVV/desktop_version/src/BlockV.cpp
2020-01-08 10:37:50 -05:00

36 lines
420 B
C++

#include "BlockV.h"
blockclass::blockclass()
{
clear();
}
void blockclass::clear()
{
active = false;
type = 0;
trigger = 0;
xp = 0;
yp = 0;
wp = 0;
hp = 0;
rect.x = xp;
rect.y = yp;
rect.w = wp;
rect.h = hp;
prompt = "";
script = "";
r = 0;
g = 0;
b = 0;
}
void blockclass::rectset(const int xi, const int yi, const int wi, const int hi)
{
rect.x = xi;
rect.y = yi;
rect.w = wi;
rect.h = hi;
}