battlecode.common
Interface PowerNode

All Superinterfaces:
GameObject

public interface PowerNode
extends GameObject


Method Summary
 MapLocation getLocation()
          Returns this power node's location.
 MapLocation[] neighbors()
          Returns the locations of all power nodes that are connected to this power node.
 Team powerCoreTeam()
          If this node is the power core for a team, returns that team.
 
Methods inherited from interface battlecode.common.GameObject
getID, getRobotLevel, getTeam
 

Method Detail

getLocation

MapLocation getLocation()
Returns this power node's location.


neighbors

MapLocation[] neighbors()
Returns the locations of all power nodes that are connected to this power node.


powerCoreTeam

Team powerCoreTeam()
If this node is the power core for a team, returns that team. Otherwise returns null.