41 lines
1.6 KiB
C
41 lines
1.6 KiB
C
![]() |
#ifndef __ENCOUNT_H__
|
|||
|
#define __ENCOUNT_H__
|
|||
|
|
|||
|
#define ENCOUNT_GROUPMAXNUM 10
|
|||
|
|
|||
|
BOOL ENCOUNT_initEncount( char* filename );
|
|||
|
BOOL ENCOUNT_reinitEncount( void );
|
|||
|
int ENCOUNT_getEncountAreaArray( int floor, int x, int y);
|
|||
|
int ENCOUNT_getEncountPercentMin( int charaindex, int floor , int x, int y );
|
|||
|
int ENCOUNT_getEncountPercentMax( int charaindex, int floor , int x, int y );
|
|||
|
int ENCOUNT_getCreateEnemyMaxNum( int floor , int x, int y );
|
|||
|
int ENCOUNT_getEncountIndex( int floor , int x, int y );
|
|||
|
int ENCOUNT_getEncountIndexFromArray( int array );
|
|||
|
int ENCOUNT_getEncountPercentFromArray( int array );
|
|||
|
int ENCOUNT_getCreateEnemyMaxNumFromArray( int array );
|
|||
|
int ENCOUNT_getGroupIdFromArray( int array, int grouparray );
|
|||
|
int ENCOUNT_getGroupProbFromArray( int array, int grouparray );
|
|||
|
int ENCOUNT_getZorderFromArray( int array );
|
|||
|
|
|||
|
#ifdef _ADD_ENCOUNT // WON ADD <20><><EFBFBD>ӵ<EFBFBD><D3B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
typedef struct tagENCOUNT_Table
|
|||
|
{
|
|||
|
int index;
|
|||
|
int floor;
|
|||
|
int encountprob_min; /* <20><EFBFBD><DEBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|||
|
int encountprob_max; /* <20><EFBFBD><DEBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|||
|
int enemymaxnum; /* <20><>ľ<EFBFBD><C4BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ë<EFBFBD><C3AB><EFBFBD>¾<EFBFBD> */
|
|||
|
int zorder;
|
|||
|
int groupid[ENCOUNT_GROUPMAXNUM]; /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>No */
|
|||
|
int createprob[ENCOUNT_GROUPMAXNUM]; /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|||
|
int event_now;
|
|||
|
int event_end;
|
|||
|
int enemy_group; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>group <20><><EFBFBD><EFBFBD>
|
|||
|
RECT rect;
|
|||
|
}ENCOUNT_Table;
|
|||
|
|
|||
|
ENCOUNT_Table *ENCOUNT_table;
|
|||
|
#endif
|
|||
|
|
|||
|
#endif
|