Newer
Older
SproutServerMicro / src / main / java / framework / gameMain / SimpleScenarioGame.java
s-bekki on 30 Nov 2017 865 bytes initial commit
package framework.gameMain;

import framework.scenario.IWorld;
import framework.scenario.ScenarioManager;

/**
 * シナリオ駆動型ゲームのためのテンプレート
 * @author 新田直也
 *
 */
abstract public class SimpleScenarioGame extends SimpleGame implements IWorld {
	protected BaseScenarioGameContainer container;
	protected ScenarioManager scenario;	
	
	@Override
	public void dialogOpen() {
		container.dialogOpen();
	}

	@Override
	public void dialogClose() {
		container.dialogClose();
	}

	@Override
	public void dialogMessage(String message) {
		container.dialogMessage(message);
	}
	
	@Override
	public void showOption(int n, String option) {
	}

	@Override
	public boolean isDialogOpen() {
		return container.isDialogOpen();
	}
	
	public void setScenario(String scenarioFile) {
		scenario = new ScenarioManager(scenarioFile, this);
	}
}