/**
 * Copyright © 2010, Res Interactive, LLC. All Rights Reserved.
 */
package com.tootsville.env;

import org.starhope.appius.except.GameLogicException;
import org.starhope.appius.except.NotFoundException;
import org.starhope.appius.game.AppiusClaudiusCaecus;
import org.starhope.appius.game.RunCommands;
import org.starhope.appius.game.Zone;

import com.tootsville.npc.Harmony;
import com.tootsville.npc.Smudge;
/**
 * WRITEME: Document this type.
 *
 * @author brpocock@star-hope.org
 *
 */
public class SmudgeGameLoader implements RunCommands {

	/**
	 * @see org.starhope.appius.game.RunCommands#newZone(org.starhope.appius.game.Zone)
	 */
	@Override
	public void newZone (final Zone z) {
		AppiusClaudiusCaecus.blather ("Starting Smudge in zone "
				+ z.getName ());
		try {
			new Smudge (z);
		} catch (NotFoundException e) {
			AppiusClaudiusCaecus
					.reportBug (
							"Caught a NotFoundException in SmudgeGameLoader.newZone (Smudge) ",
							e);
		} catch (GameLogicException e) {
			AppiusClaudiusCaecus
					.reportBug (
							"Caught a GameLogicException in SmudgeGameLoader.newZone (Smudge)",
							e);
		}
		AppiusClaudiusCaecus.blather ("Starting Harmony in zone "
				+ z.getName ());
		try {
			new Harmony (z);
		} catch (NotFoundException e) {
			AppiusClaudiusCaecus
					.reportBug (
							"Caught a NotFoundException in SmudgeGameLoader.newZone (Harmony)",
							e);
		} catch (GameLogicException e) {
			AppiusClaudiusCaecus
					.reportBug (
							"Caught a GameLogicException in SmudgeGameLoader.newZone (Harmony) ",
							e);
		}

	}

	/**
	 * @see org.starhope.appius.game.RunCommands#run()
	 */
	@Override
	public void run () {
		// no op
	}

}