fix some bugs
parent
cbfbfda1e8
commit
7235d125ef
|
@ -134,6 +134,8 @@ public:
|
||||||
builder = nullptr;
|
builder = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Director(const Director&) = delete;
|
||||||
|
Director& operator=(const Director&) = delete;
|
||||||
// 具体实现方法
|
// 具体实现方法
|
||||||
void setBuilder(AbstractBuilder *iBuilder) {
|
void setBuilder(AbstractBuilder *iBuilder) {
|
||||||
this->builder = iBuilder;
|
this->builder = iBuilder;
|
||||||
|
|
|
@ -11,6 +11,14 @@ class GameAccount
|
||||||
public:
|
public:
|
||||||
GameAccount();
|
GameAccount();
|
||||||
GameAccount(string iName);
|
GameAccount(string iName);
|
||||||
|
GameAccount(const GameAccount&) = delete;
|
||||||
|
GameAccount& operator=(const GameAccount&) = delete;
|
||||||
|
~GameAccount(){
|
||||||
|
if(level){
|
||||||
|
delete level;
|
||||||
|
level = nullptr;
|
||||||
|
}
|
||||||
|
}
|
||||||
string getName();
|
string getName();
|
||||||
void win();
|
void win();
|
||||||
void lose();
|
void lose();
|
||||||
|
|
Loading…
Reference in New Issue