robocraft.player
Class Mine

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

public class Mine
extends GameObject

Mine is a GameObject that represents an energon mine in the robocraft world. The only way to obtain a reference to a Mine is to call senseMineAhead while carrying a Flag.


Method Summary
 double getEnergonLevel()
          Returns the energon level of this mine.
 
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

getEnergonLevel

public double getEnergonLevel()
                       throws GameActionException
Returns the energon level of this mine.

Returns:
the energon level of this mine.
Throws:
GameActionException - under any of the following circumstances:
  • This mine is not directly in front of you.
  • You are not carrying a flag.
  • This mine has exploded and no longer exists.