weiqi.h
来自「网络围棋对战的客户端」· C头文件 代码 · 共 45 行
H
45 行
// WeiQi1.h: interface for the CWeiQi class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_WEIQI1_H__3883FE60_7C50_11D5_A77C_0040053C48A6__INCLUDED_)
#define AFX_WEIQI1_H__3883FE60_7C50_11D5_A77C_0040053C48A6__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define BLACK 1
#define WHITE -1
#define NONE 0
class CWeiQi : public CWnd
{
public:
BOOL m_Found[19][19];
int m_Colors[19][19];
int m_Color;
int m_DajieX;
int m_DajieY;
int m_MaxX;
int m_MinX;
int m_MaxY;
int m_MinY;
int m_LastX;
int m_LastY;
void Init();
void Remove();
void Action(int,int,int);
void Place(int,int,int);
BOOL FindSpace(int,int,int);
BOOL IsDajie(int,int,int);
int CanPlace(int,int,int);
CWeiQi();
virtual ~CWeiQi();
};
#endif // !defined(AFX_WEIQI1_H__3883FE60_7C50_11D5_A77C_0040053C48A6__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?