Atavism Version 2018.1AGIS API

atavism.server.objects
Class Light

java.lang.Object
  extended by atavism.server.objects.NamedPropertyClass
      extended by atavism.server.objects.Entity
          extended by atavism.server.objects.AOObject
              extended by 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

Nested Class Summary
static class Light.LightType
           
 
Nested classes/interfaces inherited from class atavism.server.objects.AOObject
AOObject.StateMap
 
Field Summary
static java.lang.String LightDataPropertyKey
           
 
Fields inherited from class atavism.server.objects.AOObject
aoidKey, dcKey, perceiverKey, stateMapKey, transferLock, wnodeKey
 
Fields inherited from class atavism.server.objects.Entity
log, staticLock, subObjectNamespacesInt, transientPropertyKeys, type
 
Fields inherited from class atavism.server.objects.NamedPropertyClass
lock, name
 
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
 
Method Summary
 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.
 
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
 

Field Detail

LightDataPropertyKey

public static java.lang.String LightDataPropertyKey
Constructor Detail

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

Method Detail

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()


Copyright © 2018 Dragonsan Studios Sp. z o.o.