#ifndef COMMON_HEADER
#define COMMON_HEADER

/*	-------------------------------------------------------------------------------------------------
 *		プログラム全体で使用する定義を行います
	-------------------------------------------------------------------------------------------------	*/

/*	-------------------------------------------------------------------------------------------------
 *		定数宣言
	-------------------------------------------------------------------------------------------------	*/
#define FALSE	0
#define TRUE	1

/*	LCD カラー設定	*/
#define uiLCDColorL		0x6420
#define uiLCDColorH		0xfca8

/*	BG 用パレット	*/
#define BG_PAL0		0x0000				/*	非透明		*/
#define BG_PAL1		0x0200
#define BG_PAL2		0x0400
#define BG_PAL3		0x0600
#define BG_PAL4		0x0800				/*	透明対応	*/
#define BG_PAL5		0x0a00
#define BG_PAL6		0x0c00
#define BG_PAL7		0x0e00
#define BG_PAL8		0x1000				/*	非透明		*/
#define BG_PAL9		0x1200
#define BG_PALa		0x1400
#define BG_PALb		0x1600
#define BG_PALc		0x1800				/*	透明対応	*/
#define BG_PALd		0x1a00
#define BG_PALe		0x1c00
#define BG_PALf		0x1e00

/*	SP 用パレット	*/
#define SP_PAL0		0x0000				/*	非透明		*/
#define SP_PAL1		0x0200
#define SP_PAL2		0x0400
#define SP_PAL3		0x0600
#define SP_PAL4		0x0800				/*	透明対応	*/
#define SP_PAL5		0x0a00
#define SP_PAL6		0x0c00
#define SP_PAL7		0x0e00

#define RANKER_NUMBER	5				/*	ランキング人数	*/

/*	-------------------------------------------------------------------------------------------------
 *		グローバル構造体
	-------------------------------------------------------------------------------------------------	*/
typedef struct{
	int	iGameLoop;										/*	ゲームループ監視用変数						*/
	
	int	iHiScore[RANKER_NUMBER];
	unsigned char ucRankerName[RANKER_NUMBER][3];
	int	iPickUpLine;
}MAIN_REG;

/*	-------------------------------------------------------------------------------------------------
 *		汎用関数
	-------------------------------------------------------------------------------------------------	*/
void log();

#endif