package shooting.example;

import shooting.core.*;
import shooting.example.stage.*;
import java.awt.Image;
import shooting.example.DocumentBaseImageLoader;

/// Xe[W̗3
/// ΐl̗
class Stage3 extends Stage {
	/// RXgN^
	/// @param shooting Xe[WɕRtShootingIuWFNg
	public Stage3(Shooting shooting) { super(shooting); }

	/// RXgN^
	/// @param shooting Xe[WɕRtShootingIuWFNg
	/// @param imgLoader DocumentBaseImageLoaderIuWFNg
	public Stage3(Shooting shooting, DocumentBaseImageLoader imgLoader) {
		super(shooting, imgLoader);
	}

	/// Xe[W̖O擾
	/// @return Xe[W̖O("Stage 3")
	public String getStageName() { return "Stage 3"; }

	/// Xe[W̓G̔z擾
	/// @return Xe[W̓G̔z
	public Player[] getEnemies() {
		ControllablePlayer[] enemies = new ControllablePlayer[1];
		Image image = getImageLoader().getImageImmediately("k1_p2a.png");
		if (image != null) {
			enemies[0] = new ControllablePlayer(getShooting(), image, 1,
					getShooting().getWidth()/2-image.getWidth(null)/2,
					10,
					0, 1);
		} else {
			enemies[0] = new ControllablePlayer(getShooting(), image, 1,
					getShooting().getWidth()/2-ControllablePlayer.DEFAULT_WIDTH/2,
					10,
					0, 1);
		}
		enemies[0].getKeyConfig().setMoveLeftKey(65, 97);	// a
		enemies[0].getKeyConfig().setMoveRightKey(68, 100);	// d
		enemies[0].getKeyConfig().setShootKey(83, 115);			// s
		return enemies;
	}
}


add stage 3