2022-11-18 01:28:08 -07:00
|
|
|
#ifndef BLOCK_H
|
|
|
|
|
#define BLOCK_H
|
|
|
|
|
#include "pixelGameEngine.h"
|
|
|
|
|
|
2022-11-23 22:51:30 -06:00
|
|
|
enum class BlockColor{
|
|
|
|
|
WHITE,
|
|
|
|
|
GREEN,
|
|
|
|
|
RED,
|
|
|
|
|
ORANGE,
|
|
|
|
|
BLUE,
|
|
|
|
|
PINK,
|
|
|
|
|
LIGHT,
|
|
|
|
|
DARK,
|
|
|
|
|
SOUL,
|
2022-11-25 15:33:05 -06:00
|
|
|
TIME,
|
|
|
|
|
LAUNCHED,
|
2022-11-23 22:51:30 -06:00
|
|
|
};
|
|
|
|
|
|
2022-11-18 01:28:08 -07:00
|
|
|
class Block{
|
|
|
|
|
public:
|
|
|
|
|
vf2d pos;
|
2022-11-23 22:51:30 -06:00
|
|
|
BlockColor col;
|
2022-12-03 20:48:18 -06:00
|
|
|
float resetTime=0.0f;
|
2022-11-18 05:11:56 -07:00
|
|
|
bool markedForDeletion=false;
|
2022-11-25 16:41:23 -06:00
|
|
|
bool markedForRemoval=false;
|
2022-11-27 00:35:12 -06:00
|
|
|
bool addedToLaunchList=false;
|
2022-11-23 22:51:30 -06:00
|
|
|
Block(vf2d pos,BlockColor col)
|
|
|
|
|
:pos(pos),col(col){}
|
2022-11-18 01:28:08 -07:00
|
|
|
};
|
|
|
|
|
#endif
|