robocraft.player
Class EnergonCube

java.lang.Object
  extended byrobocraft.player.GameObject
      extended byrobocraft.player.EnergonCube

public class EnergonCube
extends GameObject

Reference to an EnergonCube object.


Method Summary
 double getAmount()
           
 
Methods inherited from class robocraft.player.GameObject
equals, getID, getLocation, getTeam, getType, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getAmount

public double getAmount()
                 throws GameActionException
Returns:
the amount of energon currently contained in this energon cube.
Throws:
GameActionException - under any of the following conditions:
  • This energon cube does not exist on the map anymore.
  • This energon cube's location is out of calling RobotPlayer's sensor range.