Atavism Version 2018.1AGIS API

atavism.agis.objects
Class AgisObject

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

Nested Class Summary
 
Nested classes/interfaces inherited from class atavism.server.objects.AOObject
AOObject.StateMap
 
Field Summary
static java.lang.String baseDCKey
           
protected  java.util.Map<java.lang.String,Cooldown.State> cooldownStateMap
           
static java.lang.String dcMapKey
           
protected  int templateID
           
 
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
AgisObject()
           
AgisObject(OID oid)
           
 
Method Summary
 void addCooldownState(Cooldown.State cd)
           
 void addDCMapping(DisplayContext base, DisplayContext target)
           
 void addStun()
           
 boolean attackable()
          Returns whether this mob is attackable by a user.
 void attackable(boolean val)
          Sets whether this mob is attackable by a user.
 DisplayContext baseDC()
          Base display context - the inventory plugin adds soft/hard attachments to this base mesh.
 void baseDC(DisplayContext dc)
           
static AgisObject convert(Entity obj)
          Checks if the object is a AGIS object and if it is, returns the reference as a AgisObject.
 DCMap dcMap()
           
 void dcMap(DCMap dcMap)
           
 int getBody()
           
 Cooldown.State getCooldownState(java.lang.String id)
           
 java.util.Map<java.lang.String,Cooldown.State> getCooldownStateMap()
           
 int getCurrentBody()
           
 DisplayContext getDCMapping(DisplayContext base)
          Returns a copy of the matching display context.
 int getDCV()
           
 OID getOwnerOID()
           
 int getPD()
           
 int getResistantPD()
           
 java.lang.String getSound(java.lang.String name)
           
 int getStunCounter()
           
 int getTemplateID()
           
 boolean isDead()
           
 void isDead(boolean val)
           
 boolean isStunned()
           
 void modifyBody(int delta)
           
 void modifyCurrentBody(int delta)
           
 Cooldown.State removeCooldownState(Cooldown.State cd)
           
 void removeStun()
           
 void setBody(int body)
           
 void setCooldownStateMap(java.util.Map<java.lang.String,Cooldown.State> map)
           
 void setCurrentBody(int body)
           
 void setOwnerOID(OID ownerOID)
           
 void setSound(java.lang.String name, java.lang.String value)
           
protected  void setStunCounter(int cnt)
           
 void setTemplateID(int templateID)
           
 
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
 

Field Detail

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
Constructor Detail

AgisObject

public AgisObject()

AgisObject

public AgisObject(OID oid)
Method Detail

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


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