de.uni_paderborn.robots.items
Class Bad

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

public class Bad
extends Reactable

The reactable item of bad only used to test unknown reactables


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
Bad()
           
 
Method Summary
 void doAction(Robot robot)
          changes the energy minus 10 points
 
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

Bad

public Bad()
Method Detail

doAction

public void doAction(Robot robot)
changes the energy minus 10 points
Overrides:
doAction in class Reactable
Parameters:
robot - the Robot for which doAction should be executed