Skip to content

Commit a46669a

Browse files
authored
Merge pull request #86 from battlecode/master
engine release 1.2.0
2 parents 5b5f941 + 5424f9c commit a46669a

File tree

4 files changed

+113
-100
lines changed

4 files changed

+113
-100
lines changed

engine/src/main/battlecode/common/RobotController.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -433,15 +433,16 @@ public interface RobotController {
433433
MapLocation adjacentLocation(Direction dir);
434434

435435
/**
436-
* Returns a list of all locations within the given vision cone of a location.
436+
* Returns a list of all locations within a distance of a custom center location.
437+
* This will only return locations that are sense-able in the calling robot's vision cone.
437438
* If radiusSquared is larger than the robot's vision radius, uses the robot's
438-
* vision radius instead.
439+
* vision radius instead.
439440
*
440-
* Checks that radiusSquared is non-negative.
441+
* Checks that radiusSquared is non-negative.
441442
*
442-
* @param center the given location
443-
* @param radiusSquared return locations within this distance away from center
444-
* @return list of locations on the map and within radiusSquared of center
443+
* @param center the given location
444+
* @param radiusSquared square root of the distance distance away from center location
445+
* @return list of locations on the map and within radiusSquared squared distance of center
445446
* @throws GameActionException if the radius is negative (and not -1)
446447
*
447448
* @battlecode.doc.costlymethod

0 commit comments

Comments
 (0)