de.uni_paderborn.robots.items
Class Item

java.lang.Object
  |
  +--de.uni_paderborn.robots.items.Item
Direct Known Subclasses:
Card, Reactable, Robot

public class Item
extends java.lang.Object

the class for all items


Field Summary
private  Field field
          field:
caution: every field can only have one item and the other way round
private  java.lang.String name
          name of the item
 
Constructor Summary
Item()
           
 
Method Summary
 Field getField()
          get method for the Field of the item
 javax.swing.Icon getIcon()
          get- method for item
 java.lang.String getName()
          Read access method for attribute name
 void removeYou()
          to remove an item
 void setField(Field elem)
          set method for the field of the item
 java.lang.String setName(java.lang.String name)
          Write access method for attribute name
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name
name of the item

field

private Field field
field:
caution: every field can only have one item and the other way round
Constructor Detail

Item

public Item()
Method Detail

getIcon

public javax.swing.Icon getIcon()
get- method for item
Returns:
null

getName

public java.lang.String getName()
Read access method for attribute name
Returns:
name the name of the item

setName

public java.lang.String setName(java.lang.String name)
Write access method for attribute name
Parameters:
name - the name for the item

removeYou

public void removeYou()
to remove an item

setField

public final void setField(Field elem)
set method for the field of the item
Parameters:
elem - the Field to be set

getField

public final Field getField()
get method for the Field of the item
Returns:
field