TakeGame.h
上传用户:bsw_2008
上传日期:2013-07-09
资源大小:2446k
文件大小:1k
- // TakeGame.h: interface for the TakeGame class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_TAKEGAME_H__849F533F_2AFF_4DD9_BEBD_C0F7BD12A0A0__INCLUDED_)
- #define AFX_TAKEGAME_H__849F533F_2AFF_4DD9_BEBD_C0F7BD12A0A0__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class TakeGame
- {
- typedef struct POS{
- int x,y,d;
- };
- public:
- BOOL engineer;
- BOOL MoveLine(CPoint from,CPoint to);
- int top;
- POS stack[500];
- BOOL war_kind;
- BOOL CanMove(CPoint from,CPoint to);
- int board[17][17];
- TakeGame();
- virtual ~TakeGame();
- protected:
- BOOL IsRouteCan();
- BOOL IsCamp(CPoint pos);
- BOOL TakeEngineer(CPoint from,CPoint to);
- BOOL IsSameSide(CPoint to);
- };
- #endif // !defined(AFX_TAKEGAME_H__849F533F_2AFF_4DD9_BEBD_C0F7BD12A0A0__INCLUDED_)