Ejemplo n.º 1
0
 public DwarfCannon(Player player)
 {
     p = player;
     cannonLocation = p.getLocation();
     fakeCannonLocation = new Location(cannonLocation.getX()+1, cannonLocation.getY()+1, cannonLocation.getY());
     firing = false;
     cannonballs = 0;
     constructionStage = 0;
     direction = 0;
     setNpcsInArea();
     newCannon();
 }
Ejemplo n.º 2
0
 public int distanceToPoint(Location l)
 {
     return (int) Math.Sqrt(Math.Pow(x - l.getX(), 2) + Math.Pow(y - l.getY(), 2));
 }
Ejemplo n.º 3
0
 public static bool inFightCave(Location l)
 {
     return(l.getX() >= 19000);
 }
Ejemplo n.º 4
0
 public static bool inFightCave(Location l)
 {
     return l.getX() >= 19000;
 }
Ejemplo n.º 5
0
 public int distanceToPoint(Location l)
 {
     return((int)Math.Sqrt(Math.Pow(x - l.getX(), 2) + Math.Pow(y - l.getY(), 2)));
 }