📄 commoninclude.h
字号:
//----------------------------------------------------------------------------
// 文件名: CommonInclude.h
//
// 描述:用于通用常数及结构定义
//
// 作者:朱波 创建日期:2007-03-20
//----------------------------------------------------------------------------
#ifndef COMMONINCLUDE_H
#define COMMONINCLUDE_H
enum GEOMETRYSTYLE { GS_PLAYER_TANK, GS_COMPUTER_TANK, GS_PLAYER_SLUG, GS_COMPUTER_SLUG, GS_BARRIER };
const int MENU_ITEM_NUM = 4;
const int MENU_ITEM_STARTX = 220;
const int MENU_ITEM_STARTY = 200;
const int MENU_ITEM_WIDTH = 200;
const int MENU_ITEM_HEIGHT = 40;
const int TANK_KIND_NUM = 4;
const int TANK_PIC_CELL_WIDTH = 40;
const int TANK_PIC_CELL_HEIGHT = 40;
const int TANK_PIC_CELL_COUNT = 4;
const int TANK_WIDTH = 33;
const int TANK_HEIGHT = 15;
const int SLUG_PIC_CELL_WIDTH = 8;
const int SLUG_PIC_CELL_HEIGHT = 8;
const int SLUG_PIC_CELL_COUNT = 4;
const int SLUG_WIDTH = 8;
const int SLUG_HEIGHT = 2;
const int BARRIER_PIC_WIDTH = 25;
const int BARRIER_PIC_HEIGHT = 25;
const int BARRIER_PIC_COUNT = 1;
const int TANKEXPLORED_PIC_CELL_WIDTH = 35;
const int TANKEXPLORED_PIC_CELL_HEIGHT = 50;
const int TANKEXPLORED_PIC_CELL_COUNT = 16;
const int GAME_ACOM_PIC_WIDTH = 400;
const int GAME_ACOM_PIC_HEIGHT = 64;
const int GAME_FAIL_PIC_WIDTH = 400;
const int GAME_FAIL_PIC_HEIGHT = 64;
const RECT MAP_REGION = {15, 29, 624, 450};
typedef struct _Geometry
{
RECT *m_lpBoundingBox;
GEOMETRYSTYLE m_style;
int m_objectID;
} GEOMETRY, *LPGEOMETRY;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -