simworldobjects
Class SimLight

java.lang.Object
  |
  +--simworldobjects.BasicSimObject
        |
        +--simworldobjects.SimLight
All Implemented Interfaces:
SimObject

public class SimLight
extends BasicSimObject

Models a simple light source

Author:
Graham Ritchie

Constructor Summary
SimLight(int brightness, double x, double y, double z)
          Sets up this light
 
Method Summary
 int getBrightness()
          Returns the brightness of this light, this will always be a value between 0 and 100
 
Methods inherited from class simworldobjects.BasicSimObject
getActualBearingVelocityXY, getActualBearingVelocityXZ, getActualBearingXY, getActualBearingXZ, getActualVelocity, getDesiredBearingVelocityXY, getDesiredBearingVelocityXZ, getDesiredVelocity, getHeight, getLength, getType, getWidth, getXCoord, getYCoord, getZCoord, setActualBearingVelocityXY, setActualBearingVelocityXZ, setActualBearingXY, setActualBearingXZ, setActualVelocity, setDesiredBearingVelocityXY, setDesiredBearingVelocityXZ, setDesiredVelocity, setXCoord, setYCoord, setZCoord
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimLight

public SimLight(int brightness,
                double x,
                double y,
                double z)
Sets up this light
Parameters:
brightness - the intensity of the light - must be between 1 and 100
x - the light's x coordinate
y - the light's y coordinate
z - the light's z coordinate
Method Detail

getBrightness

public int getBrightness()
Returns the brightness of this light, this will always be a value between 0 and 100
Returns:
the brightness