StoneAge/saac/deathcontend.h

74 lines
2.2 KiB
C
Raw Normal View History

2018-08-07 15:51:35 +08:00
#include "version.h"
#ifdef _DEATH_CONTEND
//<2F>Ŷ<EFBFBD><C5B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
typedef struct
{
int use;
char cdkey[64];
char name[64];
}PkTeamMans;
//ս<><D5BD><EFBFBD><EFBFBD>¼
typedef struct
{
int use;
int teamnum;
int flg; //0 1
}BattleHistorys;
#define MAXTEAMMANNUM 5 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define MAXBATTLENUM 100 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ս<EFBFBD><D5BD><EFBFBD><EFBFBD>¼
#define DEFMAXBATTLENUM 50 //<2F><><EFBFBD>߾<EFBFBD><DFBE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define DEFWINSCORE 90
#define DEFLOSERATE 0.4
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>info
typedef struct _tagPkTeamLists
{
int use; //flg
int teamnum; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
char teamname[64]; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
char pathdir[64]; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ¼
char leadercdkey[64]; //<2F>ӳ<EFBFBD>CDKEY
int win; //ʤ
int lost; //<2F><>
int battleplay; //<2F>ܳ<EFBFBD><DCB3><EFBFBD>
int score;
int inside; //¼ȡ<C2BC><C8A1><EFBFBD><EFBFBD>
int updata; //<2F><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>
PkTeamMans MyTeamMans[MAXTEAMMANNUM];
BattleHistorys BHistory[MAXBATTLENUM];
}PkTeamLists;
//<2F><><EFBFBD><EFBFBD>-------------------------------------------------------
int PKLIST_getStringPkTeamData( int ti, char *data, int sizes);
int PKLIST_SetOneBHistory( int ti, int hi, int use, int teamnum, int flg );
int PKLIST_GetOneBHistory( int ti );
void PKLIST_ResetOneTeamMan( int ti );
void PKLIST_ResetOneBHistory( int ti );
void PKLIST_ResetOnePkTeamList( int ti );
int PKLIST_UpdateOnePkTeamData( int ti, int forti, int winerflg);
//-----------------------------------------------------------
int PKLIST_InitPkTeamList( int maxteam );
void PKLIST_UpdatePkTeamList( int fd, int menum, char *mecdkey, int tonum, char *tocdkey, int winer, int flg);
void PKLIST_GetPkTeamListData( int fd, int startTi, int count);
void PKLIST_GetPkTeamListDataOne( int fd, int ti);
//-----------------------------------------------------------
int PKLIST_LoadPkTeamListfromFile( char *dirpath, char *listfilename );
int PKLIST_BackupPkTeamListfromFile( char *dirpath, char *listfilename );
void PKLIST_SortTheCharts( int ti);//<2F><><EFBFBD>а<EFBFBD><D0B0><EFBFBD><EFBFBD><EFBFBD>
void PKLIST_TheCharts( int fd, int type, int flg);
int PKLIST_LoadUserfromFile( char *dirpath, char *listfilename );
int PKLIST_CutStartUserfromFile( char *dirpath, char *listfilename );
void PKLIST_CheckRepeatBattleHistory( void);
int PKLIST_alteUserfromFile( char *dirpath, char *listfilename );
void PKLIST_Sort_PKListSort( void);
void PKLIST_CheckAllUser( void);
#endif