lane.sente
Class ThreeDRobotUI

java.lang.Object
  |
  +--lane.sente.GameElementUI
        |
        +--lane.sente.AnimateGameElementUI
              |
              +--lane.sente.RobotUI
                    |
                    +--lane.sente.ThreeDRobotUI
All Implemented Interfaces:
AnimateGameElementListener, GameElementListener, RobotListener, ThreeDObject

public class ThreeDRobotUI
extends RobotUI

This is


Fields inherited from class lane.sente.GameElementUI
sphere, theContainer, xLocation, xSize, yLocation, ySize, zLocation
 
Constructor Summary
ThreeDRobotUI(RobotArenaUI theContainer)
          constructor
 
Method Summary
 void paint(java.awt.Graphics g)
          paints this object to the screen not needed in 3D, and a sign of bad design
 void setBattery(int level)
          Sets the batteryto a certian level
 void setXTurret(int xangle)
          sets the X turret angle (0-360)
 void setZTurret(int zangle)
          sets the Z turret angle (0-360)
 
Methods inherited from class lane.sente.GameElementUI
getName, getObject, setXlocation, setXSize, setYlocation, setYSize, setZlocation, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface lane.sente.GameElementListener
setXlocation, setXSize, setYlocation, setYSize, setZlocation
 

Constructor Detail

ThreeDRobotUI

public ThreeDRobotUI(RobotArenaUI theContainer)
constructor
Parameters:
theContainer - The container in which this RobotUI lives
Method Detail

setXTurret

public void setXTurret(int xangle)
sets the X turret angle (0-360)
Parameters:
xangle - The angle to set the turret to (0-360)

setZTurret

public void setZTurret(int zangle)
sets the Z turret angle (0-360)
Parameters:
zangle - The angle to set the turret to (0-360)

setBattery

public void setBattery(int level)
Sets the batteryto a certian level
Parameters:
level - The new level of the battery

paint

public void paint(java.awt.Graphics g)
paints this object to the screen not needed in 3D, and a sign of bad design
Overrides:
paint in class AnimateGameElementUI
Parameters:
g - The graphics object to paint to