//---------------------------------------------------------------------------------
//
//　スペル用の関数・タスク群です。
//　
//
//---------------------------------------------------------------------------------

//ステージメインタスク　メニュー画面
//   @ 引数なし	
task StageTask_SpellCard{
	LoadGraphic_SpellCard();
	ForbidShot(false);
	ForbidBomb(false);
	SetDefaultStatusVisible(true);
	while(nStageState == STAGE_STATE_SPELL){
		let playfile = "";
		alternative(nSpellCard)
		case(SPELL_ALL){
			alternative(nSpellLank)		case(SPELL_LANK_EASY)	{ playfile = csd ~ "\INCLUDE\STAGE\SPELLCARD\ALL_e.plu"; }
							case(SPELL_LANK_NORMAL)	{ playfile = csd ~ "\INCLUDE\STAGE\SPELLCARD\ALL_n.plu"; }
							case(SPELL_LANK_HARD)	{ playfile = csd ~ "\INCLUDE\STAGE\SPELLCARD\ALL_h.plu"; }
							case(SPELL_LANK_LUNATIC){ playfile = csd ~ "\INCLUDE\STAGE\SPELLCARD\ALL_l.plu"; }
							case(SPELL_LANK_OMAKE)	{ playfile = csd ~ "\INCLUDE\STAGE\SPELLCARD\ALL_o.plu"; }
			CreateEnemyBossFromFile(playfile,0,0,0,0,0);
		}
		case(SPELL_014){
			alternative(nSpellLank)		case(SPELL_LANK_EASY)	{ playfile = csd ~ "\INCLUDE\STAGE\SPELLCARD\014_e.plu"; }
							case(SPELL_LANK_NORMAL)	{ playfile = csd ~ "\INCLUDE\STAGE\SPELLCARD\014_n.plu"; }
							case(SPELL_LANK_HARD)	{ playfile = csd ~ "\INCLUDE\STAGE\SPELLCARD\014_h.plu"; }
							case(SPELL_LANK_LUNATIC){ playfile = csd ~ "\INCLUDE\STAGE\SPELLCARD\014_l.plu"; }
							case(SPELL_LANK_OMAKE)	{ playfile = csd ~ "\INCLUDE\STAGE\SPELLCARD\014_o.plu"; }
			CreateEnemyBossFromFile(playfile,0,0,0,0,0);
		}
		case(SPELL_017){
			alternative(nSpellLank)		case(SPELL_LANK_EASY)	{ playfile = csd ~ "\INCLUDE\STAGE\SPELLCARD\017_e.plu"; }
							case(SPELL_LANK_NORMAL)	{ playfile = csd ~ "\INCLUDE\STAGE\SPELLCARD\017_n.plu"; }
							case(SPELL_LANK_HARD)	{ playfile = csd ~ "\INCLUDE\STAGE\SPELLCARD\017_h.plu"; }
							case(SPELL_LANK_LUNATIC){ playfile = csd ~ "\INCLUDE\STAGE\SPELLCARD\017_l.plu"; }
							case(SPELL_LANK_OMAKE)	{ playfile = csd ~ "\INCLUDE\STAGE\SPELLCARD\017_o.plu"; }
			CreateEnemyBossFromFile(playfile,0,0,0,0,0);
		}
		case(SPELL_022){
			alternative(nSpellLank)		case(SPELL_LANK_EASY)	{ playfile = csd ~ "\INCLUDE\STAGE\SPELLCARD\022_e.plu"; }
							case(SPELL_LANK_NORMAL)	{ playfile = csd ~ "\INCLUDE\STAGE\SPELLCARD\022_n.plu"; }
							case(SPELL_LANK_HARD)	{ playfile = csd ~ "\INCLUDE\STAGE\SPELLCARD\022_h.plu"; }
							case(SPELL_LANK_LUNATIC){ playfile = csd ~ "\INCLUDE\STAGE\SPELLCARD\022_l.plu"; }
							case(SPELL_LANK_OMAKE)	{ playfile = csd ~ "\INCLUDE\STAGE\SPELLCARD\022_o.plu"; }
			CreateEnemyBossFromFile(playfile,0,0,0,0,0);
		}
		others{
			//何もしない
		}
		
		
		
		loop{
			if(GetEnemyNum == 0){ break; }
			yield;
		}
		fMenuStateNext = true;
		fStageStateNext = true;
		nSpellLank = SPELL_LANK_NONE;
		nSpellCard = SPELL_NONE;
		nStageState = STAGE_STATE_MENU;
		nMenuState = MENU_STATE_INIT;
		nMenuSelect = SELECT_STATE_ALL;
		SetDefaultStatusVisible(false);
	}
}

//この関数・タスク群で用いる画像の読み込み
//   @ 引数なし	
sub LoadGraphic_SpellCard{
	
}




