Ejemplo n.º 1
0
 public int Distance(Pirate pirate1, Pirate pirate2)
 {
     return(this.Distance(pirate1.Location, pirate2.Location));
 }
Ejemplo n.º 2
0
 public int Distance(Pirate pirate, Treasure treasure)
 {
     return(this.Distance(pirate.Location, treasure.Location));
 }
Ejemplo n.º 3
0
 public Location Destination(Pirate pirate, List <Direction> directions)
 {
     return(this.Destination(pirate.Location, directions));
 }
Ejemplo n.º 4
0
 public int Distance(Pirate pirate, Location loc)
 {
     return(this.Distance(pirate.Location, loc));
 }
Ejemplo n.º 5
0
 public void CancelOrder(Pirate pirate)
 {
     this.CancelOrder(pirate.Location);
 }
Ejemplo n.º 6
0
 public void Defend(Pirate pirate)
 {
     this.Orders[pirate.Location].Moves.Add(new MoveDefense());
 }
Ejemplo n.º 7
0
 public bool InRange(Pirate pirate1, Pirate pirate2)
 {
     return(this.InRange(pirate1.Location, pirate2.Location));
 }
Ejemplo n.º 8
0
 public bool InRange(Pirate pirate, Location location)
 {
     return(this.InRange(pirate.Location, location));
 }
Ejemplo n.º 9
0
 public List <Location> GetSailOptions(Pirate pirate, Treasure treasure, int moves)
 {
     return(this.GetSailOptions(pirate, treasure.Location, moves));
 }
Ejemplo n.º 10
0
 public List <Location> GetSailOptions(Pirate pirate1, Pirate pirate2, int moves)
 {
     return(this.GetSailOptions(pirate1, pirate2.Location, moves));
 }
Ejemplo n.º 11
0
 public List <Direction> GetDirections(Pirate pirate, Location location)
 {
     return(this.GetDirections(pirate.Location, location));
 }
Ejemplo n.º 12
0
 public List <Direction> GetDirections(Pirate pirate1, Pirate pirate2)
 {
     return(this.GetDirections(pirate1.Location, pirate2.Location));
 }
Ejemplo n.º 13
0
 public List <Direction> GetDirections(Pirate pirate, Treasure treasure)
 {
     return(this.GetDirections(pirate.Location, treasure.Location));
 }