Revert "Initial commit"

This reverts commit dc713485d1f8ce6476701efd6eb010f04926f07b.
Revert "Revert "Initial commit""

This reverts commit acc12d5465a4a94f50a3750453ed108b92368d83.
Revert "dfgfdg"

This reverts commit e5a5fef284a1636687d613bc73de8e4cda6844cb.
Jumper

import java.awt.Color;

import info.gridworld.actor.Actor;
import info.gridworld.actor.Bug;
import info.gridworld.actor.Rock;
import info.gridworld.actor.Flower;
import info.gridworld.grid.Grid;
import info.gridworld.grid.Location;

public class Jumper extends Bug{

public Jumper()
{
setColor(Color.RED);

}

public void act()
{
if(canJump())
{
jump();

}
else
{
super.act();
}
}

public void jump()
{
Grid<Actor> gr = getGrid();
if (gr == null)
return;
Location loc = getLocation();
Location next = loc.getAdjacentLocation(getDirection());
Location next2 = next.getAdjacentLocation(getDirection());
if (gr.isValid(next2))
moveTo(next2);
else
removeSelfFromGrid();

}

public boolean canJump()
{
Grid<Actor> gr = getGrid();
if (gr == null)
return false;
Location loc = getLocation();
Location next = loc.getAdjacentLocation(getDirection());
if (!gr.isValid(next))
return false;
Actor neighbor = gr.get(next);

Location next2 = next.getAdjacentLocation(getDirection());
if (!gr.isValid(next2))
return false;
neighbor = gr.get(next2);
return (neighbor == null)||(neighbor instanceof Flower);
}

//public void move()
//{
//Grid<Actor> gr = getGrid();
//if(gr == null)
//return;
// Location loc = getLocation();
// Location next = loc.getAdjacentLocation(getDirection());
// Location next2 = next.getAdjacentLocation(getDirection());
// if ((gr.isValid(next2)))
//  return;
//}

}
JumperRunner

import info.gridworld.actor.ActorWorld;
import info.gridworld.actor.Bug;
import info.gridworld.actor.Flower;
import info.gridworld.actor.Rock;

public class JumperRunner {
public static void main(String[] args) {
ActorWorld world = new ActorWorld();
world.add(new Jumper());
world.add(new Flower());
world.add(new Rock());
world.show();

}

}
.

.
Merge branch 'master' of https://github.com/galileoapcs/GroupD