DesignPattern/21.StatePattern/2.Code/GameAccount.h

29 lines
380 B
C
Raw Normal View History

2019-11-09 02:41:43 +00:00
#ifndef __GAMEACCOUNT_H__
#define __GAMEACCOUNT_H__
using namespace std;
#include <iostream>
// ǰ<><C7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
class Level;
class GameAccount
{
public:
GameAccount();
GameAccount(string iName);
string getName();
void win();
void lose();
void playCard();
void setLevel(Level*);
int getScore();
void setScore(int);
private:
Level* level;
int score;
string name;
};
#endif