#if defined TYPES_INCLUDED___
  #endinput
#endif
#define TYPES_INCLUDED___

//////////////////////////////////////////////////////////////////////////////////

//#define MAX_HEIGHT	(14)
//#define MAX_WIDTH	(14)
#define MAX_HEIGHT	(13)
#define MAX_WIDTH	(13)
#define MAX_ARRAY	(MAX_HEIGHT * MAX_WIDTH)

#define MAX_TEXTURE_CHARACTER	(90)		//5 * (6 + 6)

#define SIDE_TOP		(0x01)
#define SIDE_BOTTOM		(0x02)
#define SIDE_LEFT		(0x04)
#define SIDE_RIGHT		(0x08)


//////////////////////////////////////////////////////////////////////////////////

const float:CURSOR_SPEED	= 4.0;
const float:MAP_TOP			= 28.0;				//
const float:MAP_LEFT		= 55.0;				//MAP_CENTER - MAP_LOCAL_CENTER

public const float: KOMA_SIZE[]		= {					//
		56.0,	//  7 x7
		39.2,	// 10 x 10
//		28.0	// 14 x 14
		30.15
};
public const KOMA_LENGTH[] = {
		7,
		10,
//		14
		13
};

//////////////////////////////////////////////////////////////////////////////////

//駒データ
enum tagObjectData {
	PointX,			//プレイヤーX座標
	PointY,			//プレイヤーY座標
	Object,			//objのデータ
	Type,			//駒の種類
	Selected,
};

//アニメーションデータ
enum tagAnimSeqData {
	No,
	Action,
	StartIndex,
	EndIndex,
	Time,
	Term,
};

//コマの選択で使うデータ
enum tagSelectKomaData {
	Texture,
	CombineType,
};

//////////////////////////////////////////////////////////////////////////////////

enum {	//タイトル画面を抜けた時の処理
	TITLEEXIT_GAMESTART = 0,
	TITLEEXIT_TIMEOUT,
	TITLEEXIT_RANKING,
	TITLEEXIT_GAMEEXIT,
};

enum {		//ゲームの進行状況定義
	GAMESTATE_TITLE = 0,
	GAMESTATE_LEVELSELECT,
	GAMESTATE_KOMASELECT,
	GAMESTATE_PLAY,
	GAMESTATE_GAMEOVER,
	GAMESTATE_CLEAR,
	GAMESTATE_RANKING,
	GAMESTATE_RETRY
};

enum {		//ゲームの終了状態
	GAMERESULT_CLEAR = 0,
	GAMERESULT_EXIT,
	GAMERESULT_GIVEUP,
};

enum {		//ゲームの終了状態
	ENDCHECK_CLEAR,
	ENDCHECK_CONTINUE,
	ENDCHECK_NOGET,
};

enum {
	MENUSELECT_CANCEL = -1
};

enum {
	KOMAATTR_SEPARATE,			//ばらばら
	KOMAATTR_COMBINE,			//くっつく
};

enum {			//ばらばらこまのテクスチャならび
	TEXTURE_KOMA_BOTTOM,
	TEXTURE_KOMA_RIGHT,
	TEXTURE_KOMA_LEFT,
	TEXTURE_KOMA_BOTTOMRIGHT,
	TEXTURE_KOMA_BOTTOMLEFT,
	TEXTURE_KOMA_TOPBOTTOM,
	TEXTURE_KOMA_TOPBOTTOMRIGHT,
	TEXTURE_KOMA_TOPBOTTOMLEFTRIGHT,
	TEXTURE_KOMA_TOPBOTTOMLEFT,
	TEXTURE_KOMA_TOP,
	TEXTURE_KOMA_NONE_V,
	TEXTURE_KOMA_TOPRIGHT,
	TEXTURE_KOMA_TOPLEFT,
	TEXTURE_KOMA_LEFTRIGHT,
	TEXTURE_KOMA_BOTTOMLEFTRIGHT,
	TEXTURE_KOMA_TOPLEFTRIGHT,
};

enum {
	TEXTURE_KOMA_NORMAL = 0,
	TEXTURE_KOMA_SELECT = 1,
	TEXTURE_KOMA_VOID = 7,
};

enum {
	MENUTEX_SELECTLEVEL00,
	MENUTEX_SELECTLEVEL01,
	MENUTEX_SELECT_TITLE,
	MENUTEX_KOMA_TITLE,

	MENUTEX_EASYCARD,		//選択したカード
	MENUTEX_NORMALCARD,
	MENUTEX_HARDCARD,

	MENUTEX_EASYCARD_PICNONSEL,		//選択していないカード絵
	MENUTEX_NORMALCARD_PICNONSEL,
	MENUTEX_HARDCARD_PICNONSEL,

	MENUTEX_EASYCARD_PICSEL,		//選択したカード絵
	MENUTEX_NORMALCARD_PICSEL,
	MENUTEX_HARDCARD_PICSEL,

	MENUTEX_KOMA_FRAME00,
	MENUTEX_KOMA_FRAME01,
	MENUTEX_KOMA_FRAME02,

	MENUTEX_EASY_PLATE,		//選択したプレート
	MENUTEX_NORMAL_PLATE,
	MENUTEX_HARD_PLATE,
	MENUTEX_EASY_PLATE_LAMP0,		//選択したプレート
	MENUTEX_NORMAL_PLATE_LAMP0,
	MENUTEX_HARD_PLATE_LAMP0,
	MENUTEX_EASY_PLATE_LAMP1,		//選択したプレート
	MENUTEX_NORMAL_PLATE_LAMP1,
	MENUTEX_HARD_PLATE_LAMP1,

	MENUTEX_SELECT_SIGN,			//はんこ

	MENUTEX_SAME,					//
	MENUTEX_KAME,					//
	MENUTEX_SAME_SHADOW,			//
	MENUTEX_KAME_SHADOW,			//



	MENUTEX_TYPE_BARA,
	MENUTEX_TYPE_COMBINE,

//////////////////////////////////////////////
	TEXTURE_SAMEGAME_CIRCLE_BIG,
	TEXTURE_SAMEGAME_CIRCLE_SMALL,

	TEXTURE_SAMEGAME_CIRCLE_BIG2,
	TEXTURE_SAMEGAME_CIRCLE_SMALL2,

	MENUTEX_SIZE
}

enum {
	TITLETEXTURE_SUN00,
	TITLETEXTURE_SUN01,
	TITLETEXTURE_CLOUD00,
	TITLETEXTURE_CLOUD01,
	TITLETEXTURE_CLOUD02,

	TITLETEXTURE_COPYRIGHT,
	TITLETEXTURE_PUSHSTART,
	TITLETEXTURE_INLINEMENU,

	TITLETEXTURE_INLINEMENU01,
	TITLETEXTURE_INLINEMENU02,
	TITLETEXTURE_INLINEMENU03,
	TITLETEXTURE_INLINEMENU04,

	TITLETEXTURE_NUM
}

enum {
	TITLEANIMTEXTURE_SAME_LEFT,
	TITLEANIMTEXTURE_SAME_RIGHT,
	TITLEANIMTEXTURE_KAME_TOP,
	TITLEANIMTEXTURE_KAME_BOTTOM,
	TITLEANIMTEXTURE_KAME_LEFT,
	TITLEANIMTEXTURE_KAME_RIGHT,
	TITLEANIMTEXTURE_KAME_DASH_L1,
	TITLEANIMTEXTURE_KAME_DASH_L2,
	TITLEANIMTEXTURE_KAME_DASH_R1,
	TITLEANIMTEXTURE_KAME_DASH_R2,

	TITLEANIMTEXTURE_NUM,
}

enum {

	TEXTURE_ASCII_0,		//0
	TEXTURE_ASCII_1,		//1
	TEXTURE_ASCII_2,		//2
	TEXTURE_ASCII_3,		//3
	TEXTURE_ASCII_4,		//4
	TEXTURE_ASCII_5,		//5
	TEXTURE_ASCII_6,		//6
	TEXTURE_ASCII_7,		//7
	TEXTURE_ASCII_8,		//8
	TEXTURE_ASCII_9,		//9

	TEXTURE_SCORE,
	TEXTURE_GET,
	TEXTURE_LEFT,

	TEXTURE_SCOREBOARD_NUM
}

enum {

	TEXTURE_RANK_FRAME,	//0
	TEXTURE_RANK_BASE,	//1
/////////////////////////////////////////////////////
	TEXTURE_ASCII_0A,		//1
	TEXTURE_ASCII_1A,		//1
	TEXTURE_ASCII_2A,		//2
	TEXTURE_ASCII_3A,		//3
	TEXTURE_ASCII_4A,		//4
	TEXTURE_ASCII_5A,		//5
	TEXTURE_ASCII_6A,		//6
	TEXTURE_ASCII_7A,		//7
	TEXTURE_ASCII_8A,		//8
	TEXTURE_ASCII_9A,		//9

	TEXTURE_ASCII_0B,		//1
	TEXTURE_ASCII_1B,		//1
	TEXTURE_ASCII_2B,		//2
	TEXTURE_ASCII_3B,		//3
	TEXTURE_ASCII_4B,		//4
	TEXTURE_ASCII_5B,		//5
	TEXTURE_ASCII_6B,		//6
	TEXTURE_ASCII_7B,		//7
	TEXTURE_ASCII_8B,		//8
	TEXTURE_ASCII_9B,		//9

	TEXTURE_SCORE_STRING,	//とくてん
	TEXTURE_KOMA_STRING,	//のこりたま

	TEXTURE_RANK_NO1,		//1ばん
	TEXTURE_RANK_NO2,		//2ばん
	TEXTURE_RANK_NO3,		//3ばん

	TEXTURE_LEFT_ARROW,
	TEXTURE_RIGHT_ARROW,

	TEXTURE_NARUTO,
/////////////////////////////////////////////////////
	TEXTURE_RANK_TITLE01,	//かんたん
	TEXTURE_RANK_TITLE02,	//ふつう
	TEXTURE_RANK_TITLE03,	//むずかしい

	TEXTURE_RANK_NUM

}

enum {
	TEXTURE_CLEAR_0,		//0
	TEXTURE_CLEAR_1,		//1
	TEXTURE_CLEAR_2,		//2
	TEXTURE_CLEAR_3,		//3
	TEXTURE_CLEAR_4,		//4
	TEXTURE_CLEAR_5,		//5
	TEXTURE_CLEAR_6,		//6
	TEXTURE_CLEAR_7,		//7
	TEXTURE_CLEAR_8,		//8
	TEXTURE_CLEAR_9,		//9
	TEXTURE_CLEAR_PLUS,		//+

	TEXTURE_CLEAR_BONUS,
	TEXTURE_CLEAR_PERFECT,

	TEXTURE_CLEAR_NUM
}

enum {		//曲定義
	BGM_TITLE = 1,
	BGM_MENU,
	BGM_RANKING,
	BGM_GMAE_BOMBERMAN,
	BGM_GAME_NUTSANDMILK,
	BGM_GAME_MILON,
	BGM_GAME_BINARYLAND,
	BGM_GAME_PIPE,
	BGM_GAMEOVER,
	BGM_PERFECT,
}
enum {
	SE_CURSOR_MOVE		= 12,
	SE_OK_ACTION		= 13,
	SE_CANCEL_ACTION	= 14,
	SE_KOMA_SELECT		= 15,
	SE_KOMA_VOID		= 16,
	SE_KOMA_CANCEL		= 17,
};
