⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 marco.h

📁 赤壁之战(游戏原码)
💻 H
📖 第 1 页 / 共 3 页
字号:
/////////////
//	Marco.h			:	v0010
//	Written by		:	Li Haijun
//	Compiler		:	Microsoft Visual C++ 4.0 & DirectX
//	Library			:	No .Lib
//	Copyright (C)	:	1996 WayAhead Corporation 
//	v0010			:	Nev.11.1996
/////////////
// to define all marcro of interface
//////////////////////////////
#ifndef __MARCRO_H__
#define __MARCRO_H__

#define INTERFACE_ERROR	2000

#define	CHAO			0	//to identify to show which command unit when show build command unit
#define	LIU				1

#define NONE			-10
#define FIRST			-10

//	to define the picture of this game 
#define	PICTURE_BEGIN		0
#define	PICTURE_WAIT		1
#define	PICTURE_END			2
#define PICTURE_FAIL		3

// the max number of file that you can save
#define	MAX_SAVEFILE		20
// the max maps that could find in you map directory
#define MAX_MAPS			64

// the max number of general that a king can have
#define MAX_ONEKINGGENERAL	54

#define	MAX_DIALOG_LETTER		9
#define	MAX_PROMPT_LETTER		128
#define MAX_MESSAGE_LETTER		128
#define NETWORK_MAX_MESSAGE_LETTER	23 
#define	MAX_NAME_LETTER			32

//	show list paramiter 
#define FIRST_IN		0
#define PAGE_UP			1
#define PAGE_DOWN		2
#define GET_CURRENT		3
// program states
#define	PROGRAM_STATE_NONE		0		// a null program state , if everthing OK, this state will never appear
#define	PROGRAM_STATE_ERROR		-10		// this program happened a fatal error
#define	PROGRAM_STATE_PLAY		1		// this program is playing ( eg: solier is moving, battle is doing )
#define	PROGRAM_STATE_PAUSE		2		// this program is paused by player or one of a player( in network play mode )
#define PROGRAM_STATE_MENU		3		// current program is handling a menu, in sigle player mode it will pause the game,
										//		in network mode it will not pause
#define PROGRAM_STATE_AVI		4		// this program is playing a avi
#define PROGRAM_STATE_RESULT	5		// to show the battle result of this companion, this state only use in network version

// command states
#define	COMMAND_STATE_NONE		0
#define COMMAND_STATE_ERROR		-10
#define COMMAND_STATE_PLAY		20
#define	COMMAND_STATE_PAUSE		21
#define	COMMAND_STATE_MENU		22
#define	COMMAND_STATE_MESSAGE	26
#define COMMAND_STATE_DIALOG	27
//////////////////////////////
#define COMMAND_STATE_AVI_BEGIN		30		// current program is playing a AVI, so program is pausing and wait for AVI stop
#define COMMAND_STATE_AVI_END		31		// current program is playing a AVI, so program is pausing and wait for AVI stop
#define COMMAND_STATE_AVI_MISSION	32		// current program is playing a AVI, so program is pausing and wait for AVI stop
#define COMMAND_STATE_AVI_REALTIME	33		// current program is playing a AVI, so program is pausing and wait for AVI stop
#define COMMAND_STATE_AVI_SINGLE	34		// current program is playing a AVI, so program is pausing and wait for AVI stop
#define COMMAND_STATE_AVI_HISTORY	35		// current program is playing a AVI, so program is pausing and wait for AVI stop
#define COMMAND_STATE_RESULT		40		// to show the battle result of this companion, this state only use in network version


// the volume of global variable pAllBitmap[] array
#define	MAX_BITMAP			5
// the volume of global variable pAllButton[] array
#define	MAX_BUTTON			200
// the volume of all command button in pAllCommandButton[] array
#define MAX_COMMANDBUTTON	150
// the volume of a button unit pButton[MAX_BUTTONINUNIT]
#define MAX_BUTTONINUNIT	15
// the volume of pAllCheckBoxUnit[MAX_CHECKBOXUNIT] array
#define	MAX_CHECKBOXUNIT	20
// the volume of pCheckBox[MAX_CHECKBOXINUNIT] array
#define	MAX_CHECKBOXINUNIT	5
// the volume of pAllListUnit[MAX_LISTUNIT] array
#define	MAX_LISTUNIT		5
// the volume of a list unit pList[MAX_LISTINUNIT]
#define MAX_LISTINUNIT		10
// the volume of pAllComboUnit[MAX_COMBOUNIT] array
#define MAX_COMBOBOX		5
// the volume of pAllScrollBar[MAX_SCROLLBAR] array
#define MAX_SCROLLBAR		5
// the volume of pAllText[] array
#define MAX_TEXT			4

// button states
#define	BUTTON_NONE		-10
#define BUTTON_UP		0
#define BUTTON_DOWN 	1
#define BUTTON_FOCUS	2
#define BUTTON_DISABLE	3
#define BUTTON_HIDE		4

// check-box states
#define	CHECKBOX_NONE				-10
#define CHECKBOX_NOCHECK_UP			0
#define CHECKBOX_NOCHECK_DOWN		1
#define CHECKBOX_CHECK_UP			2
#define CHECKBOX_CHECK_DOWN			3
#define CHECKBOX_DISABLE			4
#define	CHECKBOX_HIDE				5
// button states
#define	LIST_NONE		-10
#define LIST_UP			0
#define LIST_DOWN	 	1
#define LIST_FOCUS		2
#define LIST_DISABLE	3
#define LIST_HIDE		4

// combo state
#define COMBOBOX_NONE		-10
#define COMBOBOX_UP			0
#define COMBOBOX_DOWN		1
#define COMBOBOX_FOCUS		2
#define COMBOBOX_DISABLE	3

// scroll-bar state
#define SCROLLBAR_NONE		-10
#define SCROLLBAR_UP		0
#define SCROLLBAR_FOCUS		1
#define SCROLLBAR_DISABLE	2
//////////////////////////////////////

//////////////////////////////////////
#define	WM_GAME_END			10000
#define NEW_MESSION			10010
//////////////////////////////////////

//////////////////////////////////////
//	10000 --- 10100	    menu identify
#define	SHOW_MAIN_MENU							20001	// to show this main menu
#define MENU_MAIN								20000	// the main menu to game
	#define BUTTON_MENU_MAIN_NEWGAME				20100
		#define MENU_MAIN_NEWGAME					20101	// to select king
			#define BUTTON_MENU_MAIN_NEWGAME_CHAO		20112
			#define BUTTON_MENU_MAIN_NEWGAME_LEAGUE		20114
			#define	BUTTON_MENU_MAIN_NEWGAME_OK			20116
			#define	BUTTON_MENU_MAIN_NETWORK_NEWGAME_OK	20117
			#define	BUTTON_MENU_MAIN_NEWGAME_CANCEL		20118
	#define BUTTON_MENU_MAIN_LOAD				20200
		#define	MENU_MAIN_LOAD					20201	// to load a schedual
			#define	BUTTON_MENU_MAIN_LOAD_OK			20210
			#define	BUTTON_MENU_MAIN_LOAD_CANCEL		20220
			#define BUTTON_MENU_MAIN_LOAD_ARROW_TOP		20230
			#define	BUTTON_MENU_MAIN_LOAD_ARROW_BOTTOM	20240
	#define BUTTON_MENU_MAIN_NETWORK		21000
		#define MENU_MAIN_NETWORK_INPUTNAME				20250	//to input the player's name
			#define	DIALOG_MENU_MAIN_NETWORK_NAME 				20251	// to store player's name
			#define	BUTTON_MENU_MAIN_NETWORK_INPUTNAME_OK		20252
			#define	BUTTON_MENU_MAIN_NETWORK_INPUTNAME_CANCEL	20253
			#define	MENU_MAIN_NETWORK					21001	// to set multipule players
				#define BUTTON_MENU_MAIN_NETWORK_OK			21002
				#define BUTTON_MENU_MAIN_NETWORK_CANCEL		21004
				#define	BUTTON_MENU_MAIN_NETWORK_IPX		22000
					#define MENU_MAIN_NETWORK_IPX				22001	//
						#define	LISTUNIT_MENU_MAIN_NETWORK_IPX		22100	// to show all game that you can join or see
						#define	BUTTON_MENU_MAIN_NETWORK_IPX_ARROW_TOP		22110	// to show the previous page
						#define	BUTTON_MENU_MAIN_NETWORK_IPX_ARROW_BOTTOM	22120	// to show the next page
						#define	BUTTON_MENU_MAIN_NETWORK_IPX_CANCEL			22130	// to show the next page
						#define BACKTO_BUTTON_MENU_MAIN_NETWORK_IPX_CREATE		22138	// use for to back to the state of BUTTON_MENU_MAIN_NETWORK_IPX_CREATE
						#define	BUTTON_MENU_MAIN_NETWORK_IPX_CREATE				22200	// to create a new game
							#define	MENU_MAIN_NETWORK_SETNET			22201	// to show the situation of this game
								#define BUTTON_MENU_SENDMESSAGE				22202	// to send the message that player want to send
								#define NET_UPDATESETTING					22204	// to send this message when you have receive a network message that the setting has been change
							#define	MENU_MAIN_NETWORK_IPX_CREATE		22201	// to show the situation of this game
								#define BUTTON_MENU_MAIN_NETWORK_IPX_KING1		22210	// to show the one king of the game
								#define BUTTON_MENU_MAIN_NETWORK_IPX_KING2		22212
								#define BUTTON_MENU_MAIN_NETWORK_IPX_KING3		22214
								#define BUTTON_MENU_MAIN_NETWORK_IPX_KING4		22216
								#define MENU_MAIN_NETWORK_SETNET_SELECTKING			22218	//the son menu to select which king you are
								#define MENU_MAIN_NETWORK_IPX_SETNET_SELECTKING		22218	//the son menu to select which king you are
									#define BUTTON_MENU_MAIN_NETWORK_IPX_CREATE_SELECTKING_LIU		22220	// Liu Bei
									#define BUTTON_MENU_MAIN_NETWORK_IPX_CREATE_SELECTKING_SHUN		22222	// Shun Quan
									#define BUTTON_MENU_MAIN_NETWORK_IPX_CREATE_SELECTKING_CHAO		22224	// Chao Chao
							#define BUTTON_MENU_MAIN_NETWORK_IPX_SETNET_EXIT	22299	// to show the one exit port of the player
								#define BUTTON_MENU_MAIN_NETWORK_IPX_CREATE_EXIT1	22300	// to show the one exit port of the player
								#define BUTTON_MENU_MAIN_NETWORK_IPX_CREATE_EXIT2	22302
								#define BUTTON_MENU_MAIN_NETWORK_IPX_CREATE_EXIT3	22304
								#define BUTTON_MENU_MAIN_NETWORK_IPX_CREATE_EXIT4	22306
							#define BUTTON_MENU_MAIN_NETWORK_SETNET_AGREE1		30010	// to set the allies of you
							#define BUTTON_MENU_MAIN_NETWORK_SETNET_NOAGREE1	30011	// to set the allies of you
								#define BUTTON_MENU_MAIN_NETWORK_SETNET_ALLY11		22308	// to set the allies of you
								#define BUTTON_MENU_MAIN_NETWORK_SETNET_NOALLY11	22309	// to set the allies of you
								#define BUTTON_MENU_MAIN_NETWORK_SETNET_ALLY12		22310
								#define BUTTON_MENU_MAIN_NETWORK_SETNET_NOALLY12	22311
								#define BUTTON_MENU_MAIN_NETWORK_SETNET_ALLY13		22312
								#define BUTTON_MENU_MAIN_NETWORK_SETNET_NOALLY13	22313
								#define BUTTON_MENU_MAIN_NETWORK_SETNET_ALLY14		22314
								#define BUTTON_MENU_MAIN_NETWORK_SETNET_NOALLY14	22315
							#define BUTTON_MENU_MAIN_NETWORK_SETNET_AGREE2		30020	// to set the allies of you
							#define BUTTON_MENU_MAIN_NETWORK_SETNET_NOAGREE2	30021	// to set the allies of you
								#define BUTTON_MENU_MAIN_NETWORK_SETNET_ALLY21		22316
								#define BUTTON_MENU_MAIN_NETWORK_SETNET_NOALLY21	22317
								#define BUTTON_MENU_MAIN_NETWORK_SETNET_ALLY22		22318
								#define BUTTON_MENU_MAIN_NETWORK_SETNET_NOALLY22	22319
								#define BUTTON_MENU_MAIN_NETWORK_SETNET_ALLY23		22320
								#define BUTTON_MENU_MAIN_NETWORK_SETNET_NOALLY23	22321
								#define BUTTON_MENU_MAIN_NETWORK_SETNET_ALLY24		22322
								#define BUTTON_MENU_MAIN_NETWORK_SETNET_NOALLY24	22323
							#define BUTTON_MENU_MAIN_NETWORK_SETNET_AGREE3		30030	// to set the allies of you
							#define BUTTON_MENU_MAIN_NETWORK_SETNET_NOAGREE3	30031	// to set the allies of you
								#define BUTTON_MENU_MAIN_NETWORK_SETNET_ALLY31		22324
								#define BUTTON_MENU_MAIN_NETWORK_SETNET_NOALLY31	22325
								#define BUTTON_MENU_MAIN_NETWORK_SETNET_ALLY32		22326
								#define BUTTON_MENU_MAIN_NETWORK_SETNET_NOALLY32	22327

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -