From 4c1fd5ddbfd197d90f5de7148d63b26c4d66c5d2 Mon Sep 17 00:00:00 2001 From: "Kae..pl" Date: Mon, 21 Mar 2011 11:44:33 +0000 Subject: [PATCH] The light's name added. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7062 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/light/Light.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/engine/src/core/com/jme3/light/Light.java b/engine/src/core/com/jme3/light/Light.java index ef4c5ed66..4c08f3111 100644 --- a/engine/src/core/com/jme3/light/Light.java +++ b/engine/src/core/com/jme3/light/Light.java @@ -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 {