atavism.agis.objects
Class AgisObject
java.lang.Object
atavism.server.objects.NamedPropertyClass
atavism.server.objects.Entity
atavism.server.objects.AOObject
atavism.agis.objects.AgisObject
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- AgisItem, AgisMob
public class AgisObject
- extends AOObject
Not even sure what the purpose of this class is. I don't believe most of the variables in here are ever actually used. - Andrew
- See Also:
- Serialized Form
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, toString, worldNode, worldNode, writeObject, writeString |
Methods inherited from class atavism.server.objects.Entity |
addSubObjectNamespace, equals, equals, getLock, getNamespace, getOid, getPersistenceFlag, getProperty, getSubObjectNamespaces, getSubObjectNamespacesInt, getTransientDataRef, getType, 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, getName, getPropertyMap, getPropertyMapRef, getStringProperty, lock, modifyIntProperty, setName, setPropertyMap, setupTransient, unlock |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
templateID
protected int templateID
baseDCKey
public static java.lang.String baseDCKey
dcMapKey
public static java.lang.String dcMapKey
cooldownStateMap
protected java.util.Map<java.lang.String,Cooldown.State> cooldownStateMap
AgisObject
public AgisObject()
AgisObject
public AgisObject(OID oid)
convert
public static AgisObject convert(Entity obj)
- Checks if the object is a AGIS object and if it is, returns the reference
as a AgisObject.
- Returns:
- AgisObject
setTemplateID
public void setTemplateID(int templateID)
getTemplateID
public int getTemplateID()
baseDC
public DisplayContext baseDC()
- Base display context - the inventory plugin adds soft/hard attachments
to this base mesh.
baseDC
public void baseDC(DisplayContext dc)
dcMap
public DCMap dcMap()
dcMap
public void dcMap(DCMap dcMap)
addDCMapping
public void addDCMapping(DisplayContext base,
DisplayContext target)
getDCMapping
public DisplayContext getDCMapping(DisplayContext base)
- Returns a copy of the matching display context.
getDCV
public int getDCV()
getResistantPD
public int getResistantPD()
getPD
public int getPD()
setBody
public void setBody(int body)
getBody
public int getBody()
modifyBody
public void modifyBody(int delta)
setCurrentBody
public void setCurrentBody(int body)
getCurrentBody
public int getCurrentBody()
modifyCurrentBody
public void modifyCurrentBody(int delta)
attackable
public void attackable(boolean val)
- Sets whether this mob is attackable by a user.
Backends into AOObject.setState(AgisStates.attackable).
attackable
public boolean attackable()
- Returns whether this mob is attackable by a user.
Backends into AOObject.getState(AgisStates.attackable).
isDead
public void isDead(boolean val)
isDead
public boolean isDead()
setSound
public void setSound(java.lang.String name,
java.lang.String value)
getSound
public java.lang.String getSound(java.lang.String name)
getOwnerOID
public OID getOwnerOID()
- Returns:
- the owner of this object, null if no owner.
setOwnerOID
public void setOwnerOID(OID ownerOID)
addCooldownState
public void addCooldownState(Cooldown.State cd)
removeCooldownState
public Cooldown.State removeCooldownState(Cooldown.State cd)
getCooldownState
public Cooldown.State getCooldownState(java.lang.String id)
getCooldownStateMap
public java.util.Map<java.lang.String,Cooldown.State> getCooldownStateMap()
setCooldownStateMap
public void setCooldownStateMap(java.util.Map<java.lang.String,Cooldown.State> map)
getStunCounter
public int getStunCounter()
setStunCounter
protected void setStunCounter(int cnt)
addStun
public void addStun()
removeStun
public void removeStun()
isStunned
public boolean isStunned()