Commit af58303b authored by 9611046's avatar 9611046

adds Thief class

parent e43728db
import java.util.Random;
public class Thief {
Land thiefLand;
Random rand = new Random();
private int firstx = rand.nextInt(thiefLand.getLength());
private int firsty = rand.nextInt(thiefLand.getLength());
private int x = firstx;
private int y = firsty;
public int getX(){
return x;
}
public int getY(){
return y;
}
public void setLand(Land myLand) {
thiefLand = myLand;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment