?? map.h
字號:
//map.h
//map 類 記錄并管理游戲的地圖操作
#if !defined(AFX_MAP_H__E65119B7_08AD_4636_A1ED_C63C846BAC98__INCLUDED_)
#define AFX_MAP_H__E65119B7_08AD_4636_A1ED_C63C846BAC98__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "diamond.h"
#define MAP_HOLLOW 2
#define MAP_SOLID 4
#define CHECK_RESULT_BUTT 0
#define CHECK_RESULT_FREEZE 1
#define CHECK_RESULT_FREE 2
#define CHECK_RESULT_DEAD 3
#define CHECK_RESULT_OK 4
#define DIAMOND_ACTION_DOWN 0
#define DIAMOND_ACTION_LEFT 1
#define DIAMOND_ACTION_RIGHT 2
#define DIAMOND_ACTION_ROTATE 3
#define DIAMOND_ACTION_CREATE 4
#define MAP_CHECK_NOPROGRAM 5
#define MAP_CHECK_NEEDREFRESH 6
class map
{
public:
map(int width,int height);
virtual ~map();
void init();
int length()const {return m_length;};
int width()const {return m_width;};
int height()const {return m_height;};
int checkanddel(const diamond &,int &y1,int &y2);
int refreshmap(int y1,int y2);
int checkaction(int diamondaction,const diamond &);
char mapinfo(int x,int y) const;
private:
int m_width;
int m_height;
int m_length;
int m_fill_point;
char *m_pmap;
int checkmap();
void mapoperate(int x,int y,char val);
};
#endif // !defined(AFX_MAP_H__E65119B7_08AD_4636_A1ED_C63C846BAC98__INCLUDED_)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -