mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-11-17 16:39:42 +01:00
37 lines
420 B
C++
37 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;
|
||
|
}
|