de.uni_paderborn.robots.gui
Class RobotData

java.lang.Object
  |
  +--de.uni_paderborn.robots.gui.RobotData

public class RobotData
extends java.lang.Object

RobotData for TriTree, contains all data to draw the tree


Field Summary
 java.awt.image.BufferedImage cardsIcon
          The images for the cards the robot keeps
 java.lang.String direction
          The current direction of the robot
 java.lang.String energy
          The robot' energy.
private  java.lang.String help
          Some help for the robot.
private  javax.swing.ImageIcon icon
          The robot's little cute icon.
private  java.lang.String name
          The robot's name
 java.lang.String points
          The current points of the robot.
 
Constructor Summary
RobotData(java.lang.String roboName, java.lang.String roboHelp, javax.swing.ImageIcon roboIcon)
          Creates a new instance of RobotData
 
Method Summary
 java.lang.String getDirection()
          returns the robot's current direction
 java.lang.String getEnergy()
          returns the robot's energy
 java.lang.String getHelp()
          returns the robot's help
 javax.swing.ImageIcon getIcon()
          returns the robot's icon
 java.lang.String getName()
          returns the robot's name
 java.lang.String toString()
          returns name for TreeCellRendererComponent
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

name

private java.lang.String name
The robot's name

help

private java.lang.String help
Some help for the robot.

icon

private javax.swing.ImageIcon icon
The robot's little cute icon.

energy

public java.lang.String energy
The robot' energy.

cardsIcon

public java.awt.image.BufferedImage cardsIcon
The images for the cards the robot keeps

direction

public java.lang.String direction
The current direction of the robot

points

public java.lang.String points
The current points of the robot.
Constructor Detail

RobotData

public RobotData(java.lang.String roboName,
                 java.lang.String roboHelp,
                 javax.swing.ImageIcon roboIcon)
Creates a new instance of RobotData

Parameters:
roboName - The robot's name
Method Detail

toString

public java.lang.String toString()
returns name for TreeCellRendererComponent
Overrides:
toString in class java.lang.Object

getName

public java.lang.String getName()
returns the robot's name

getHelp

public java.lang.String getHelp()
returns the robot's help

getIcon

public javax.swing.ImageIcon getIcon()
returns the robot's icon

getEnergy

public java.lang.String getEnergy()
returns the robot's energy

getDirection

public java.lang.String getDirection()
returns the robot's current direction