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

196 lines
4.3 KiB
C
Raw Normal View History

2020-06-23 15:27:59 +08:00
#ifndef _FIELD_H_
#define _FIELD_H_
#include<time.h>
// ?<3F><>????<3F><>?<3F><>????
#define FIELD_BTN_PUSH_WAIT 500 // 0.5<EFBFBD><EFBFBD>
// ???????<3F><><EFBFBD><EFBFBD>??
#define FIELD_MAIL_LAMP_FLASH_TIME 1000 // 1<><31>??
enum
{
FIELD_FUNC_MENU,
FIELD_FUNC_CARD,
FIELD_FUNC_PARTY,
FIELD_FUNC_JOIN_BATTLE,
FIELD_FUNC_DUEL,
FIELD_FUNC_ACT,
FIELD_FUNC_TRADE, // Robin 04/12 trade
FIELD_FUNC_CHANNEL,
#ifdef __HELP
FIELD_FUNC_HELP, //CARY
#endif
#ifdef __PHONEMESSAGE
FIELD_FUNC_MSG, //LeiBoy
#endif
#ifdef _STREET_VENDOR
FIELD_FUNC_STREET_VENDOR,
#else
#ifdef _TABLEOFSKILL
FIELD_FUNC_SKILL,
#endif
#endif
#ifdef _FRIENDCHANNEL //ROG ADD <20><><EFBFBD><EFBFBD>Ƶ<EFBFBD><C6B5>
FIELD_FUNC_CHATROOM,
#endif
#ifdef _ANGEL_SUMMON
FIELD_FUNC_ANGEL,
#endif
#ifdef _TEACHER_SYSTEM
FIELD_FUNC_TEACHER,
#endif
#ifdef _MO_SIGN_IN
FIELD_FUNC_SIGNIN,
#endif
#ifdef _NEWSHOP_
FIELD_FUNC_MARKET,
#endif
#ifdef _CHANGETEAM_
FIELD_FUNC_CHANGETEAM,
#endif
#ifdef _RED_MEMOY_
FIELD_FUNC_RED_MEMOY,
#endif
FIELD_FUNC_END
};
#ifdef _PET_ITEM
typedef struct SPetItemInfo
{
int bmpNo; // ͼ<><CDBC>
int color; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
char memo[ITEM_MEMO_LEN+1]; // ˵<><CBB5>
char name[ITEM_NAME_LEN+1]; // <20><><EFBFBD><EFBFBD>
char damage[16]; // <20>;ö<CDBE>
}PetItemInfo;
#endif
#ifdef _STREET_VENDOR
#define MAX_SELL_ITEM 20 // <20><><EFBFBD>߼ӳ<DFBC><D3B3><EFBFBD><EFB9B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʮ<EFBFBD><CAAE>
typedef struct _Show_Sell_Item{
int index; // <20><><EFBFBD><EFBFBD>
int pile; // <20><><EFBFBD><EFBFBD>
int price; // <20>۸<EFBFBD>
bool needGetPrice; // <20>Ƿ<EFBFBD>Ҫ<EFBFBD>õ<EFBFBD><C3B5>۸<EFBFBD>
bool usage; // <20>Ƿ<EFBFBD>ʹ<EFBFBD><CAB9><EFBFBD><EFBFBD>
char name[ITEM_NAME_LEN+1]; // <20><><EFBFBD><EFBFBD>
char freeName[ITEM_NAME_LEN+1]; // <20><><EFBFBD><EFBFBD>
char kind; // <20><><EFBFBD>߻<EFBFBD><DFBB>dz<EFBFBD><C7B3><EFBFBD> 0:<3A><><EFBFBD><EFBFBD> 1:<3A><><EFBFBD><EFBFBD>
}Show_Sell_Item;
typedef struct _Show_Vendor_Item{
int bmpNo; // ͼ<><CDBC>
int pile; // <20><><EFBFBD><EFBFBD>
int price; // <20>۸<EFBFBD>
int color; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
int level; // <20>ȼ<EFBFBD>
int maxhp,attack,defence,dex; // <20><>Χ
int earth,water,fire,wind,fidelity; // <20><><EFBFBD><EFBFBD><EFBFBD>Լ<EFBFBD><D4BC>ҳ϶<D2B3>
int maxSkill; // <20><EFBFBD><E8BCBC><EFBFBD><EFBFBD>
int index; // <20><>server<65>Ĵ<EFBFBD><C4B4><EFBFBD>λ<EFBFBD><CEBB>
bool usage; // <20>Ƿ<EFBFBD>ʹ<EFBFBD><CAB9><EFBFBD><EFBFBD>
bool bBuy; // <20>Ƿ<EFBFBD>Ҫ<EFBFBD><D2AA>
bool bGetData; // <20>Ƿ<EFBFBD><C7B7>ѽ<EFBFBD><D1BD>յ<EFBFBD><D5B5><EFBFBD>ϸ<EFBFBD><CFB8><EFBFBD><EFBFBD>
char name[ITEM_NAME_LEN+1]; // <20><><EFBFBD><EFBFBD>
char freeName[ITEM_NAME_LEN+1]; // <20><><EFBFBD><EFBFBD>
char memo[ITEM_MEMO_LEN+1]; // ˵<><CBB5>
char damage[20]; // <20>;ö<CDBE>
char skillname[MAX_SKILL][SKILL_NAME_LEN+1]; // <20><EFBFBD><E8BCBC><EFBFBD><EFBFBD>
char kind; // <20><><EFBFBD>߻<EFBFBD><DFBB>dz<EFBFBD><C7B3><EFBFBD> 0:<3A><><EFBFBD><EFBFBD> 1:<3A><><EFBFBD><EFBFBD>
char trans; // ת<><D7AA><EFBFBD><EFBFBD>
#ifdef _PET_ITEM
PetItemInfo oPetItemInfo[MAX_PET_ITEM]; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵĵ<CFB5><C4B5><EFBFBD>
#endif
#ifdef _NPC_ITEMUP
int itemup;
#endif
#ifdef _PETCOM_
int ylv,yhp,yack,ydef,ydex; //<2F><>ʼ<EFBFBD><CABC>Χ
#endif
}Show_Vendor_Item;
#endif
#ifdef _JOBDAILY
#define MAXMISSION 300
typedef struct _JOBDAILY{
int JobId; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
char explain[200]; // <20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5>
char state[10]; // ״̬
}JOBDAILY;
#endif
#ifdef _FRIENDCHANNEL //ROG ADD <20><><EFBFBD><EFBFBD>Ƶ<EFBFBD><C6B5>
extern short chatRoomBtn;
extern short SelRoomBtn;
#endif
#ifdef _ANGEL_SUMMON
extern int angelFlag;
extern int angelRecvType;
extern int angelRecvButton;
extern char angelMsg[];
#endif
extern short drawTimeAnimeFlag;
extern short etcSendFlag;
extern short actBtn;
extern short menuBtn;
extern short mailLamp;
extern unsigned int fieldInfoTime;
extern struct tm serverAliveTime;
extern time_t serverAliveLongTime;
void initFieldProc( void );
void resetFieldProc( void );
void fieldProc( void );
void fieldProc2( void );
void drawField( void );
BOOL checkFieldMenuFlag( void );
void closeCharActionAnimeChange( void );
void closeEtcSwitch( void );
void closeJoinChannelWN( void );
int disconnectServer( void );
void drawFieldInfoWin( void );
void actionShortCutKeyProc( void );
#ifdef _SPECIALSPACEANIM // Syu ADD <20><><EFBFBD><EFBFBD><E2B3A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#ifdef _SURFACE_ANIM //<2F><>̬<EFBFBD><CCAC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ
//#define TOTAL_ANIM 5 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#ifdef _SA_VERSION_25
#define MAX_ANIM 256 //ͬһ<CDAC><D2BB>floor<6F>޶<EFBFBD><DEB6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#endif
#else
#ifdef _MOON_FAIRYLAND // ROG ADD <20><>֮<EFBFBD>ɾ<EFBFBD>
#define TOTAL_ANIM 5 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define MAX_ANIM 4 //ͬһ<CDAC><D2BB>floor<6F><72><EFBFBD>ִ<EFBFBD><D6B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Anim
#else
#define TOTAL_ANIM 1 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define MAX_ANIM 1 //ͬһ<CDAC><D2BB>floor<6F><72><EFBFBD>ִ<EFBFBD><D6B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Anim
#endif
#endif
void SpecAnim ( int ) ;
void ReleaseSpecAnim( void );
#endif
#endif