managers.h

来自「画面好看的象棋界面设计。类似于QQ游戏。很不错!」· C头文件 代码 · 共 39 行

H
39
字号
// Managers.h: interface for the Managers class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MANAGERS_H__4BDB2F9E_3FF3_4117_9D88_D88F7F971525__INCLUDED_)
#define AFX_MANAGERS_H__4BDB2F9E_3FF3_4117_9D88_D88F7F971525__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Chess.h"
#include "NetControl.h"
class Managers  
{
public:
	void GameStart();
	bool DoMsg(int x,int y,int action);
	//the king, the military counselor, the horse, the elephant, the chariot and the pawn
	//
	int Game_State;
	bool PAUSE;
	Chess LastCh;
	Chess *LossCh;
	Chess *PointCh;
	Chess nChessinfo[32];//记录32个棋子的信息
	int map[9][10];//记录棋盘上的信息,
	int PlayerAc;
	Managers();
	virtual ~Managers();
	bool Game_Type;
	friend class NetControl;
protected:
	void Updata();
	bool Moveto(int x,int y,bool isgo);
	Chess * Search(int x,int y);
};

#endif // !defined(AFX_MANAGERS_H__4BDB2F9E_3FF3_4117_9D88_D88F7F971525__INCLUDED_)

⌨️ 快捷键说明

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