1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-26 06:28:30 +02:00
VVVVVV/desktop_version/src/BlockV.h
Misa f10ac88c1a Refactor blocks to not use the 'active' system
This removes the variables obj.nblocks, as well as removing the 'active'
attribute from the block object. Now every block is guaranteed to be
real without having to check the 'active' variable.

Removing a block while iterating now uses the removeblock_iter() macro.
2020-04-03 23:28:47 -04:00

33 lines
509 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
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 */