?? wumpusdlg.h
字號:
// WumpusDlg.h : header file
//
#if !defined(AFX_WUMPUSDLG_H__03EFC994_D96E_47D2_9083_A4F8E514E8A6__INCLUDED_)
#define AFX_WUMPUSDLG_H__03EFC994_D96E_47D2_9083_A4F8E514E8A6__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "MyStatic.h"
#define UM_MOUSEMOVE WM_USER+5
/////////////////////////////////////////////////////////////////////////////
// CWumpusDlg dialog
HWND m_myhwnd;
class CWumpusDlg : public CDialog
{
// Construction
public:
CWumpusDlg(CWnd* pParent = NULL); // standard constructor
int m_World[8][8];
void goal_forward(int i,int j);
void SetValue(int i,int j);
bool at_location();
void DrawType(int m,int n);
void risk_direction();
void forward_one_step();
public:
bool arrow_draw;
int arrow_wumpus;
int step_wumpus;
bool found_gold;
void goal_distance(int i,int j);
int step_count;
int step_end;
int on_time;
bool end_up;
class Point
{
public:
int cx;
int cy;
}goal_location[25],pass[100],at_wumpus;
class Location
{
public:
int feasible;
int count;
int left;
int right;
int up;
int down;
int IsPit;
int IsWumpus;
bool Breeze;
bool Stench;
bool pit;
bool gold;
bool wumpus;
int distance;
}Hero[5][5];
int pit,wumpus,gold;
int m,n;
CPoint m_ptMouse;
int m_nDrawType;
bool arrow;
int from_direction;
int direction;
int m_feasible;
int on_start,x,y,i,j;
int scores;
int step;
// Dialog Data
//{{AFX_DATA(CWumpusDlg)
enum { IDD = IDD_WUMPUS_DIALOG };
CMyStatic m_WumpusWorld;
CButton m_AutoSetButton;
CButton m_InitButton;
CButton m_StartButton;
CButton m_RestartButton;
CEdit m_StateEdit;
int m_nHeight;
int m_nWidth;
int m_nScorses;
BOOL m_ManualSetCheck;
int m_setstyle;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CWumpusDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CWumpusDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnInitializeButton();
afx_msg void OnExitButton();
afx_msg void OnAboutButton();
afx_msg void OnManualSetCheck();
afx_msg void OnAutoSetButton();
afx_msg void OnStartButton();
afx_msg void OnTimer(UINT nIDEvent);
//afx_msg void OnSetPitRadio();
afx_msg void OnSetPitRadio();
afx_msg void OnSetWumpusRadio();
afx_msg void OnSetGoldRadio();
//}}AFX_MSG
afx_msg void OnStaticMouseMove();
DECLARE_MESSAGE_MAP()
private:
int cx,cy;
int m_nPit,m_nWumpus,m_nGold;
int m_CellWidth,m_CellHeight;
BOOL m_IsInitialized;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_WUMPUSDLG_H__03EFC994_D96E_47D2_9083_A4F8E514E8A6__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -