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, MovementSpeedUpdate, perceiverKey, stateMapKey, transferLock, wnodeKey
log, saveTimestamp, staticLock, subObjectNamespacesInt, transientPropertyKeys, type
lock, 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, getStealthed, isItem, isLight, isMob, isStructure, isUser, perceiver, perceiver, permissionCallback, permissionCallback, readObject, registerObjCreateHook, scale, scale, scale, sendEvent, setState, worldNode, worldNode, writeObject, writeString
addSubObjectNamespace, 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, unregisterTransientPropertyKey
getBooleanProperty, getIntProperty, getLongProperty, getPropertyMap, getPropertyMapRef, getStringProperty, lock, modifyIntProperty, setName, setPropertyMap, setupTransient, unlock
public Light()
public Light(OID oid)
public Light(java.lang.String name)
public ObjectType getType()
Entity
getType
in class Entity
ObjectTypes.unknown
if no object type has been set.Entity.getType()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.String toString()
Entity
public LightData getLightData()
public void setLightData(LightData ld)
public java.lang.String getName()
NamedPropertyClass
getName
in class NamedPropertyClass
public Color getDiffuse()
public Color getSpecular()
public float getAttenuationRange()
public float getAttenuationConstant()
public float getAttenuationLinear()
public float getAttenuationQuadradic()