de.uni_paderborn.robots.items
Class Reactable

java.lang.Object
  |
  +--de.uni_paderborn.robots.items.Item
        |
        +--de.uni_paderborn.robots.items.Reactable
Direct Known Subclasses:
Bad, Exit, Teleport, Wall, Well

public class Reactable
extends Item

This is the mother-class of all reactables


Field Summary
private  int energyDiff
          integer to store energy difference Currently not used.
 
Fields inherited from class de.uni_paderborn.robots.items.Item
field, name
 
Constructor Summary
Reactable()
           
 
Method Summary
 void doAction(Robot robot)
          doAction should be implemented in all children
 int getEnergyDiff()
          get method for energyDiff Currently not used.
 int setEnergyDiff(int energyDiff)
          Write access method for attribute energyDiff Currently not used.
 
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
 

Field Detail

energyDiff

private int energyDiff
integer to store energy difference Currently not used.
Constructor Detail

Reactable

public Reactable()
Method Detail

doAction

public void doAction(Robot robot)
doAction should be implemented in all children
Parameters:
robot - the Robot for which doAction should be executed

getEnergyDiff

public int getEnergyDiff()
get method for energyDiff Currently not used.

setEnergyDiff

public int setEnergyDiff(int energyDiff)
Write access method for attribute energyDiff Currently not used.