ファイル
2020-05-04 15:56:02 +02:00

31 行
597 B
C++

#ifndef BRICK_H
#define BRICK_H
#include <iostream>
#include <thread>
#include <unistd.h>
class Brick
{
public:
Brick(int xPosition, int descentRate);
~Brick();
static void initScene(int xRes, int yRes);
int getxPosition();
int getyPosition();
bool isFalling();
std::thread fallThread();
protected:
private:
static bool initialized;
static int xMax;
static int yMax;
int xPosition;
int yPosition;
int descentRate;
bool falling;
void fall();
};
#endif // BRICK_H