|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--de.uni_paderborn.robots.items.Item
|
+--de.uni_paderborn.robots.items.Reactable
|
+--de.uni_paderborn.robots.items.Teleport
This is the reactable item Teleport
| Field Summary | |
private static java.util.Random |
rand
needed to place robots randomly |
private Teleport |
teleport
the Teleporter. caution: there can only be one link to another teleporter and the same round. |
| 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 | |
Teleport()
|
|
| Method Summary | |
void |
doAction(Robot robot)
teleporter doAction robots are put randomly like this onto free fields: ? |
Teleport |
getTeleport()
get method for the teleport-partner |
void |
setTeleport(Teleport elem)
sets the Teleporter or if already set its partner |
| 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 |
|
| Field Detail |
private static java.util.Random rand
private Teleport teleport
| Constructor Detail |
public Teleport()
| Method Detail |
public void doAction(Robot robot)
? ?T? ?...field free? ? T...teleporter
doAction in class Reactablerobot - the Robot for which doAction should be executedpublic void setTeleport(Teleport elem)
elem - the Teleporter to be set/ addedpublic Teleport getTeleport()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||