public final class LightBank extends Object
Stage.lightBank()
Constructor and Description |
---|
LightBank() |
Modifier and Type | Method and Description |
---|---|
void |
addLight(Light<? extends Sensor> light)
Adds a light to the bank.
|
void |
addSensor(Sensor1 sensor)
Adds a sensor to the stage.
|
void |
removeLight(Light<? extends Sensor> light)
Removes a light from the bank.
|
void |
removeSensor(Sensor1 sensor)
Removes a sensor from the stage.
|
public LightBank()
public void addLight(Light<? extends Sensor> light)
IllegalArgumentException
- if the light is already in the bank.removeLight(Light)
public void addSensor(Sensor1 sensor)
IllegalArgumentException
- if the sensor is already on stage.removeSensor(Sensor1)
public void removeLight(Light<? extends Sensor> light)
IllegalArgumentException
- if the light is not in the bank.addLight(Light)
public void removeSensor(Sensor1 sensor)
IllegalArgumentException
- if the sensor is not on stage.addSensor(Sensor1)