ReC98/th01/th01.h

63 lines
1.2 KiB
C

/* ReC98
* -----
* Include file for TH01
*/
#include "ReC98.h"
// Hardware
void graph_accesspage_func(int page);
void grcg_setcolor_rmw(int color);
void grcg_off_func(void);
#undef graph_accesspage
#define graph_accesspage graph_accesspage_func
#undef grcg_off
#define grcg_off grcg_off_func
// Game
#define STAGES_PER_SCENE 4
#define SCENE_COUNT 4
// Resident structure
#define RES_ID "ReiidenConfig"
typedef enum {
ROUTE_MAKAI,
ROUTE_JIGOKU
} route_t;
typedef enum {
MODE_REGULAR = 0,
MODE_TEST = 1,
MODE_DEBUG = 3
} mode_t;
#pragma option -a1
typedef struct {
char id[RES_ID_LEN];
char rank;
char bgm_mode; // 0 = off, 1 = FM
char bombs;
char start_lives_extra; // Add 2 for the actual number of lives
char end_flag;
char unused_1;
char route;
char rem_lives;
char snd_need_init;
char unused_2;
char mode;
int bullet_speed;
long rand;
long score;
long continues_total;
int continues_per_scene[SCENE_COUNT];
long bonus_per_stage[STAGES_PER_SCENE]; // of the current scene
int stage;
long hiscore;
long score_highest; // among all continues
unsigned int p_value;
} resident_t;
#pragma option -a2