public class Light extends AOObject implements java.lang.Cloneable
| Modifier and Type | Class and Description |
|---|---|
static class |
Light.LightType |
AOObject.StateMap| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LightDataPropertyKey |
aoidKey, dcKey, perceiverKey, stateMapKey, transferLock, wnodeKeylog, staticLock, subObjectNamespacesInt, transientPropertyKeys, typelock, name| Constructor and Description |
|---|
Light() |
Light(OID oid) |
Light(java.lang.String name) |
Light(java.lang.String name,
Color diffuse,
Color specular,
float attenuationRange,
float attenuationConstant,
float attenuationLinear,
float attenuationQuadradic)
long constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
float |
getAttenuationConstant() |
float |
getAttenuationLinear() |
float |
getAttenuationQuadradic() |
float |
getAttenuationRange() |
Color |
getDiffuse() |
LightData |
getLightData() |
java.lang.String |
getName()
Returns the name of this entity.
|
Color |
getSpecular() |
ObjectType |
getType()
Entity object type.
|
void |
setLightData(LightData ld) |
java.lang.String |
toString()
Returns the string describing this entity, useful for logging.
|
atavismID, atavismID, baseWorldNode, displayContext, displayContext, getAllObjects, getCurrentLoc, getDirection, getDirLocOrientTime, getLoc, getMasterOid, getObjCreateHook, getObject, getOrientation, getState, isItem, isLight, isMob, isStructure, isUser, perceiver, perceiver, permissionCallback, permissionCallback, readObject, registerObjCreateHook, scale, scale, scale, sendEvent, setState, worldNode, worldNode, writeObject, writeStringaddSubObjectNamespace, equals, equals, getLock, getNamespace, getOid, getPersistenceFlag, getProperty, getSubObjectNamespaces, getSubObjectNamespacesInt, getTransientDataRef, hashCode, hasSubObjectNamespace, isDeleted, registerTransientPropertyKey, removeProperty, removeSubObjectNamespace, setDeleted, setNamespace, setOid, setPersistenceFlag, setProperty, setSubObjectNamespaces, setSubObjectNamespacesInt, setType, toBytes, unregisterTransientPropertyKeygetBooleanProperty, getIntProperty, getPropertyMap, getPropertyMapRef, getStringProperty, lock, modifyIntProperty, setName, setPropertyMap, setupTransient, unlockpublic Light()
public Light(OID oid)
public Light(java.lang.String name)
public ObjectType getType()
EntitygetType in class EntityObjectTypes.unknown if no object type has been set.Entity.getType()public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic java.lang.String toString()
Entitypublic LightData getLightData()
public void setLightData(LightData ld)
public java.lang.String getName()
NamedPropertyClassgetName in class NamedPropertyClasspublic Color getDiffuse()
public Color getSpecular()
public float getAttenuationRange()
public float getAttenuationConstant()
public float getAttenuationLinear()
public float getAttenuationQuadradic()