Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions engine/src/main/battlecode/common/RobotController.java
Original file line number Diff line number Diff line change
Expand Up @@ -433,15 +433,16 @@ public interface RobotController {
MapLocation adjacentLocation(Direction dir);

/**
* Returns a list of all locations within the given vision cone of a location.
* Returns a list of all locations within a distance of a custom center location.
* This will only return locations that are sense-able in the calling robot's vision cone.
* If radiusSquared is larger than the robot's vision radius, uses the robot's
* vision radius instead.
* vision radius instead.
*
* Checks that radiusSquared is non-negative.
* Checks that radiusSquared is non-negative.
*
* @param center the given location
* @param radiusSquared return locations within this distance away from center
* @return list of locations on the map and within radiusSquared of center
* @param center the given location
* @param radiusSquared square root of the distance distance away from center location
* @return list of locations on the map and within radiusSquared squared distance of center
* @throws GameActionException if the radius is negative (and not -1)
*
* @battlecode.doc.costlymethod
Expand Down
Loading