1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-11-17 16:39:42 +01:00
VVVVVV/desktop_version/src/BlockV.cpp

37 lines
420 B
C++
Raw Normal View History

2020-01-01 21:29:24 +01:00
#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;
}