The light's name added.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7062 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
974f48a92a
commit
4c1fd5ddbf
@ -76,6 +76,8 @@ public abstract class Light implements Savable, Cloneable {
|
||||
* If light is disabled, it will not take effect.
|
||||
*/
|
||||
protected boolean enabled = true;
|
||||
/** The light's name. */
|
||||
protected String name;
|
||||
|
||||
/**
|
||||
* @return The color of the light.
|
||||
@ -100,6 +102,22 @@ public abstract class Light implements Savable, Cloneable {
|
||||
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
|
||||
public Light clone(){
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user