⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 player.cpp

📁 网络围棋对战的客户端
💻 CPP
字号:
// Player.cpp: implementation of the CPlayer class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "WeiQiClient.h"
#include "Player.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CPlayer::CPlayer()
{
	m_PlayerName=_T("");
	m_Level=1;
	m_Score=0;
}

CPlayer::~CPlayer()
{

}

void CPlayer::SetName(CString PlayerName)
{
	m_PlayerName=PlayerName;
}

void CPlayer::SetScore(UINT Score)
{
	m_Score=Score;
	m_Level=1+m_Score/100;		//每100分长1级
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -