atavism.server.objects
Class Light
java.lang.Object
atavism.server.objects.NamedPropertyClass
atavism.server.objects.Entity
atavism.server.objects.AOObject
atavism.server.objects.Light
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
- Direct Known Subclasses:
- DirectionalLight, PointLight
public class Light
- extends AOObject
- implements java.lang.Cloneable
- See Also:
- Serialized Form
Constructor Summary |
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 |
Methods inherited from class atavism.server.objects.AOObject |
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, writeString |
Methods inherited from class atavism.server.objects.Entity |
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 |
Methods inherited from class atavism.server.objects.NamedPropertyClass |
getBooleanProperty, getIntProperty, getPropertyMap, getPropertyMapRef, getStringProperty, lock, modifyIntProperty, setName, setPropertyMap, setupTransient, unlock |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
LightDataPropertyKey
public static java.lang.String LightDataPropertyKey
Light
public Light()
Light
public Light(OID oid)
Light
public Light(java.lang.String name)
Light
public Light(java.lang.String name,
Color diffuse,
Color specular,
float attenuationRange,
float attenuationConstant,
float attenuationLinear,
float attenuationQuadradic)
- long constructor
getType
public ObjectType getType()
- Description copied from class:
Entity
- Entity object type.
- Overrides:
getType
in class Entity
- Returns:
ObjectTypes.unknown
if no object type has been set.- See Also:
Entity.getType()
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone
in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException
toString
public java.lang.String toString()
- Description copied from class:
Entity
- Returns the string describing this entity, useful for logging.
- Overrides:
toString
in class AOObject
- Returns:
- string describing entity
getLightData
public LightData getLightData()
setLightData
public void setLightData(LightData ld)
getName
public java.lang.String getName()
- Description copied from class:
NamedPropertyClass
- Returns the name of this entity.
- Overrides:
getName
in class NamedPropertyClass
- Returns:
- name for this entity.
getDiffuse
public Color getDiffuse()
getSpecular
public Color getSpecular()
getAttenuationRange
public float getAttenuationRange()
getAttenuationConstant
public float getAttenuationConstant()
getAttenuationLinear
public float getAttenuationLinear()
getAttenuationQuadradic
public float getAttenuationQuadradic()