stoneage8.5/石器时代8.5客户端最新源代码/石器源码/systeminc/battlemenu.h

108 lines
3.1 KiB
C
Raw Normal View History

2020-06-23 15:53:23 +08:00
/************************/
2020-06-23 15:27:59 +08:00
/* battleMenu.h */
/************************/
#ifndef _BATTLE_MENU_H_
#define _BATTLE_MENU_H_
#define AI_NONE 0
#define AI_ATTACK 1
#define AI_GUARD 2
#define AI_SELECT 3
#define AI_ESCAPE 4
extern int AI;
extern DWORD PauseAI;
2020-06-23 15:53:23 +08:00
// BattleBpFlag?????
#define BATTLE_BP_JOIN ( 1 << 0 ) // ·
2020-06-23 15:27:59 +08:00
#define BATTLE_BP_PLAYER_MENU_NON ( 1 << 1 ) // ???????????
#define BATTLE_BP_BOOMERANG ( 1 << 2 ) // ?????
#define BATTLE_BP_PET_MENU_NON ( 1 << 3 ) // ?????????
2020-06-23 15:53:23 +08:00
#define BATTLE_BP_ENEMY_SURPRISAL ( 1 << 4 ) // ??自?▄?????自???????
#define BATTLE_BP_PLAYER_SURPRISAL ( 1 << 5 ) // ??????自?▄?????
2020-06-23 15:27:59 +08:00
// ??????????
#define BATTLE_BUF_SIZE 4
#define BATTLE_COMMAND_SIZE 4096
2020-06-23 15:53:23 +08:00
// ???????更??
2020-06-23 15:27:59 +08:00
extern char BattleCmd[ BATTLE_COMMAND_SIZE ];
extern char BattleCmdBak[ BATTLE_BUF_SIZE ][ BATTLE_COMMAND_SIZE ];
2020-06-23 15:53:23 +08:00
// ???????更???????
2020-06-23 15:27:59 +08:00
extern int BattleCmdReadPointer;
extern int BattleCmdWritePointer;
2020-06-23 15:53:23 +08:00
// ???????更????????
2020-06-23 15:27:59 +08:00
//extern char BattleCmdBak[];
2020-06-23 15:53:23 +08:00
// ???┤更??
2020-06-23 15:27:59 +08:00
extern char BattleStatus[ BATTLE_COMMAND_SIZE ];
extern char BattleStatusBak[ BATTLE_BUF_SIZE ][ BATTLE_COMMAND_SIZE ];
2020-06-23 15:53:23 +08:00
// ???┤更???????
2020-06-23 15:27:59 +08:00
extern int BattleStatusReadPointer;
extern int BattleStatusWritePointer;
2020-06-23 15:53:23 +08:00
// ???┤更????????
2020-06-23 15:27:59 +08:00
//extern char BattleStatusBak[];
2020-06-23 15:53:23 +08:00
// ???┤更????????
2020-06-23 15:27:59 +08:00
//extern char BattleStatusBak2[];
// ??????????
extern int battleMenuFlag2;
2020-06-23 15:53:23 +08:00
// 希???吻?
2020-06-23 15:27:59 +08:00
extern int BattleMyNo;
2020-06-23 15:53:23 +08:00
// ·卯??希???
2020-06-23 15:27:59 +08:00
extern int BattleMyMp;
2020-06-23 15:53:23 +08:00
// ·卯?????
2020-06-23 15:27:59 +08:00
extern int BattleEscFlag;
// ????????????
extern int BattlePetStMenCnt;
2020-06-23 15:53:23 +08:00
// ·???吻???????
2020-06-23 15:27:59 +08:00
extern int battlePetNoBak;
2020-06-23 15:53:23 +08:00
// ·???吻????????
2020-06-23 15:27:59 +08:00
extern int battlePetNoBak2;
// ?????
extern int BattleBpFlag;
2020-06-23 15:53:23 +08:00
// ????向??????
2020-06-23 15:27:59 +08:00
extern int BattleAnimFlag;
2020-06-23 15:53:23 +08:00
// ??????
2020-06-23 15:27:59 +08:00
extern BOOL BattleTurnReceiveFlag;
#ifdef PK_SYSTEM_TIMER_BY_ZHU
extern BOOL BattleCntDownRest;
extern BOOL SendToServer;
extern DWORD BattleCntDown;
#define BATTLE_CNT_DOWN_TIME 30000
#endif
extern int BattleCliTurnNo;
2020-06-23 15:53:23 +08:00
// ??????????吻?
2020-06-23 15:27:59 +08:00
extern int BattleSvTurnNo;
2020-06-23 15:53:23 +08:00
// ·卯??????????
2020-06-23 15:27:59 +08:00
extern BOOL BattleResultWndFlag;
#ifdef _HUNDRED_KILL
extern BOOL BattleHundredFlag;
#endif
// ????????? *********************************************************/
void BattleMenuProc( void );
2020-06-23 15:53:23 +08:00
// ??????「??? *****************************************************/
2020-06-23 15:27:59 +08:00
void ClearBattleButton( void );
// ?????????? ********************************************************/
void InitBattleMenu( void );
2020-06-23 15:53:23 +08:00
// ????向??????????? ********************************************/
2020-06-23 15:27:59 +08:00
void CheckBattleAnimFlag( void );
2020-06-23 15:53:23 +08:00
// ???匠?????? ********************************************/
2020-06-23 15:27:59 +08:00
int CheckBattle1P2P( void );
2020-06-23 15:53:23 +08:00
// ▊??????牙 ***********************************************************/
2020-06-23 15:27:59 +08:00
void HpMeterDisp( int no );
2020-06-23 15:53:23 +08:00
// ?〈?牙 ************************************************************************/
2020-06-23 15:27:59 +08:00
void BattleNameDisp( void );
2020-06-23 15:53:23 +08:00
#ifdef _BATTLESKILL // (祥褫羲) Syu ADD 桵須撮夔賡醱
2020-06-23 15:27:59 +08:00
void BattleSetWazaHitBox( int no , int typeflag ) ;
#endif
#ifdef PK_SYSTEM_TIMER_BY_ZHU
void BattleDown();
#endif
2020-06-23 15:53:23 +08:00
void battleMenuFix(void); // 党葩桵須AI蛌遙腔BUG
2020-06-23 15:27:59 +08:00
#endif