managers.h

来自「MFC VC6.0 实现的一个2人对战象棋游戏」· C头文件 代码 · 共 43 行

H
43
字号
// 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"
#include "WaveSound.h"
class Managers  
{
public:
	WaveSound m_sound;
	bool Check(bool color);
	bool isEat;
	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(Chess *PointCh,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 + -
显示快捷键?