de.uni_paderborn.robots.data
Class Wormhole

java.lang.Object
  |
  +--de.uni_paderborn.robots.data.Item
        |
        +--de.uni_paderborn.robots.data.Wormhole
All Implemented Interfaces:
Identifyable, java.io.Serializable

public class Wormhole
extends Item

This class represents a wormhole in the arena.

See Also:
Serialized Form

Field Summary
private  Wormhole link
          link to another wormhole
static long serialVersionUID
          used for serialization
 
Fields inherited from class de.uni_paderborn.robots.data.Item
field, id
 
Constructor Summary
Wormhole()
          standard constructor, creates a wormhole with an empty link.
Wormhole(Wormhole link)
          param constructor, creates a wormhole with the specified link.
 
Method Summary
 Wormhole getLink()
          Returns the current link.
 void setLink(Wormhole link)
          Sets the link to another wormhole.
 
Methods inherited from class de.uni_paderborn.robots.data.Item
finalize, getField, getID, getItemName, setField
 
Methods inherited from class java.lang.Object
, clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
used for serialization

link

private Wormhole link
link to another wormhole
Constructor Detail

Wormhole

public Wormhole()
standard constructor, creates a wormhole with an empty link.

Wormhole

public Wormhole(Wormhole link)
param constructor, creates a wormhole with the specified link.
Parameters:
link - link to another wormhole
Method Detail

setLink

public void setLink(Wormhole link)
Sets the link to another wormhole.
Parameters:
link - link to another wormhole

getLink

public Wormhole getLink()
Returns the current link.
Returns:
link to another wormhole