de.uni_paderborn.robots.data
Class Wall

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

public class Wall
extends Item

This class represents a wall in the arena.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          used for serialization
private  int type
          type of wall, used by the GUI classes to draw different kind of walls
 
Fields inherited from class de.uni_paderborn.robots.data.Item
field, id
 
Constructor Summary
Wall()
          standard constructor, creates wall of type 0.
Wall(int type)
          param constructor, creates a wall of the specified type.
 
Method Summary
 int getType()
          Returns the current type of the wall.
 void setType(int type)
          Sets the type of the wall to the specified type.
 
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

type

private int type
type of wall, used by the GUI classes to draw different kind of walls
Constructor Detail

Wall

public Wall()
standard constructor, creates wall of type 0.

Wall

public Wall(int type)
param constructor, creates a wall of the specified type.
Parameters:
type - type of the wall
Method Detail

setType

public void setType(int type)
Sets the type of the wall to the specified type.
Parameters:
type - new type of the wall

getType

public int getType()
Returns the current type of the wall.
Returns:
current type of the wall