/********************
	kn_cfgrec.h
 ********************/
#ifndef _KN_CFGREC_H_
#define _KN_CFGREC_H_

/*******************************************************
	DEFINE
*******************************************************/
/* シーケンス */
#define CFGREC_SEQ_SEL_MODE			0
#define CFGREC_SEQ_SEL_CRS			1

/* モード数 */
#define CFGREC_MAX_NUM_MODE			3
#define CFGREC_MODE_TIME			0
#define CFGREC_MODE_SCORE			1
#define CFGREC_MODE_EXIT			2

/* 表示コース数 */
#define CFGREC_MAX_COURSE_NUM		9

/* スクリーン枚数 */
#define CFGREC_SCR_MAX_NUM			2

/* スクリーンの位置 */
#define CFGREC_SCR_DX_CENTER		0
#define CFGREC_SCR_DX_RIGHT			320
#define CFGREC_SCR_DX_LEFT			(-320)
#define CFGREC_SCR_DY_CENTER		0
#define CFGREC_SCR_DY_DOWN			(240)
#define CFGREC_SCR_DY_UP			(-240)
/* スクリーン番号 */
#define CFGREC_SCR_NUM_COURSE0		NCOURSE_PARK
#define CFGREC_SCR_NUM_COURSE1		1
#define CFGREC_SCR_NUM_COURSE2		2
#define CFGREC_SCR_NUM_COURSE3		3
#define CFGREC_SCR_NUM_COURSE4		4
#define CFGREC_SCR_NUM_COURSE5		5
#define CFGREC_SCR_NUM_COURSE6		6
#define CFGREC_SCR_NUM_COURSE7		7
#define CFGREC_SCR_NUM_COURSE8		8
#define CFGREC_SCR_NUM_SELECT		10
/* スクリーン種類 */
#define CFGREC_SCR_KIND_NULL		0
#define CFGREC_SCR_KIND_TIME		1
#define CFGREC_SCR_KIND_SCORE		2
#define CFGREC_SCR_KIND_REV		3

/* スクリーンフラグ */
#define CFGREC_SCR_FLAG_STOP		0
#define CFGREC_SCR_FLAG_MOVE_RIGHT	1
#define CFGREC_SCR_FLAG_MOVE_LEFT	2
#define CFGREC_SCR_FLAG_MOVE_UP		3
#define CFGREC_SCR_FLAG_MOVE_DOWN	4

/* スクロール用スクリーン管理バッファ */
typedef struct {
	int		dx, dy;
	int		scrNum;
	int		scrKind;
} sRecScreen;

/*******************************************************************************
	VARIABLE
*******************************************************************************/

/*******************************************************************************
	FUNCTION
*******************************************************************************/
extern void 	moveMainCfgRec( void );
extern Gfx 		*makeMainGlistCfgRec( Gfx *gp );
extern void 	initMainGlistCfgRec( void );

#endif
