/*
* AP(r) Computer Science GridWorld Case Study:
* Copyright(c) 2005-2006 Cay S. Horstmann (http://horstmann.com)
*
* This code is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* @author Chris Nevison
* @author Barbara Cloud Wells
* @author Cay Horstmann
*/
import info.gridworld.actor.ActorWorld;
import info.gridworld.actor.Bug;
import info.gridworld.actor.Flower;
import info.gridworld.actor.Rock;
import info.gridworld.grid.Location;
import info.gridworld.world.*;
import info.gridworld.grid.*;
import info.gridworld.actor.*;
/**
* This class runs a world that contains crab critters.
* This class is not tested on the AP CS A and AB exams.
*/
public class KnightsAndDragons2
{
public static void main(String[] args)
{
System.setProperty("info.gridworld.gui.watermark","hide");
BoundedGrid theGrid = new BoundedGrid(30,30);
KandDWorld world = new KandDWorld(theGrid);
//Turn off the watermark
world.add(new Location(0,0), new Rock());
world.add(new Location(0,4), new Rock());
world.add(new Location(2,0), new Rock());
world.add(new Location(2,3), new Rock());
world.add(new Location(2,4), new Rock());
world.add(new Location(3,3), new Rock());
//world.add(new Location(2, 2), new Castle());
//world.
/* world.add(new Location(7, 8), new Flower());
world.add(new Location(2, 2), new Flower());
world.add(new Location(3, 5), new Flower());
world.add(new Location(3, 8), new Flower());
world.add(new Location(6, 5), new Bug());
world.add(new Location(5, 3), new Bug());
world.add(new Location(4, 5), new CrabCritter());
world.add(new Location(6, 1), new CrabCritter());*/
world.add(new Location(1,2), new KnightCritter(new Location(1,2),10));
//world.add(new Location(2,2),new Treasure());
world.show();
}
}