You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
526 B
34 lines
526 B
6 months ago
|
#ifndef GAMECONTROL_H
|
||
|
#define GAMECONTROL_H
|
||
|
|
||
|
#include<QObject>
|
||
|
#include<QDebug>
|
||
|
|
||
|
class GameControl : public QObject
|
||
|
{
|
||
|
GameControl();
|
||
|
static GameControl* instance;
|
||
|
public:
|
||
|
static GameControl* Instance()
|
||
|
{
|
||
|
if(instance == nullptr)
|
||
|
{
|
||
|
return instance = new GameControl();
|
||
|
}
|
||
|
return instance;
|
||
|
}
|
||
|
|
||
|
~GameControl()
|
||
|
{
|
||
|
//qDebug()<<"gamecontrol released";
|
||
|
}
|
||
|
|
||
|
void EnemySummonControl(int _time);
|
||
|
|
||
|
private:
|
||
|
int GameTime;
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif // GAMECONTROL_H
|