de.uni_paderborn.robots.items
Class Well

java.lang.Object
  |
  +--de.uni_paderborn.robots.items.Item
        |
        +--de.uni_paderborn.robots.items.Reactable
              |
              +--de.uni_paderborn.robots.items.Well

public class Well
extends Reactable

This is the reactable item well


Fields inherited from class de.uni_paderborn.robots.items.Reactable
energyDiff
 
Fields inherited from class de.uni_paderborn.robots.items.Item
field, name
 
Constructor Summary
Well()
           
 
Method Summary
 void doAction(Robot robot)
          adds 10 points to the robot's energy Note: setEnergy() ensures that the maximum energy is not exceeded.
 
Methods inherited from class de.uni_paderborn.robots.items.Reactable
getEnergyDiff, setEnergyDiff
 
Methods inherited from class de.uni_paderborn.robots.items.Item
getField, getIcon, getName, removeYou, setField, setName
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

Well

public Well()
Method Detail

doAction

public void doAction(Robot robot)
adds 10 points to the robot's energy Note: setEnergy() ensures that the maximum energy is not exceeded. So this function does not have to care about.
Overrides:
doAction in class Reactable
Parameters:
robot - the Robot for which doAction should be executed