-(*Path) find_path_x: (int) newx
and_y: (int) newy {
if ( mover_int != 0 ) {
if ( mover_int == 1 ) {
[self find_vertical_path_x: newx and_y: newy];
}
else {
if ( mover_int == 2 ) {
[self find_horizontal_path_x: newx and_y: newy];
}
else {
if ( mover_int == 3 ) {
// The castle move will need to check that the Bishop and Knight are out of the way.
[self find_castle_path];
}
else {
NSLog( @"Error, cannot find a method to call to find the piece's line of sight." );
break;
}
}
}
}
else {
// Do nothing.
break;
}
return nil;
}