|
@@ -76,6 +76,8 @@ public abstract class Light implements Savable, Cloneable {
|
|
* If light is disabled, it will not take effect.
|
|
* If light is disabled, it will not take effect.
|
|
*/
|
|
*/
|
|
protected boolean enabled = true;
|
|
protected boolean enabled = true;
|
|
|
|
+ /** The light's name. */
|
|
|
|
+ protected String name;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @return The color of the light.
|
|
* @return The color of the light.
|
|
@@ -100,6 +102,22 @@ public abstract class Light implements Savable, Cloneable {
|
|
return enabled;
|
|
return enabled;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * This method sets the light's name.
|
|
|
|
+ * @param name the light's name
|
|
|
|
+ */
|
|
|
|
+ public void setName(String name) {
|
|
|
|
+ this.name = name;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * This method returns the light's name.
|
|
|
|
+ * @return the light's name
|
|
|
|
+ */
|
|
|
|
+ public String getName() {
|
|
|
|
+ return name;
|
|
|
|
+ }
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public Light clone(){
|
|
public Light clone(){
|
|
try {
|
|
try {
|