Atavism Version 2018.1AGIS API

atavism.agis.objects
Class MobFactory

java.lang.Object
  extended by atavism.server.objects.ObjectFactory
      extended by atavism.agis.objects.MobFactory
All Implemented Interfaces:
java.io.Serializable

public class MobFactory
extends ObjectFactory
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class atavism.server.objects.ObjectFactory
templateID, templateName
 
Constructor Summary
MobFactory(int templateID)
           
 
Method Summary
 void addBehav(Behavior behav)
           
 java.util.LinkedList<Behavior> getBehavs()
           
 ObjectStub makeObject(SpawnData spawnData, OID instanceOid, Point loc)
          Create object at the given location.
 void setBehavs(java.util.LinkedList<Behavior> behavs)
           
 
Methods inherited from class atavism.server.objects.ObjectFactory
getFactory, getTemplateID, getTemplateName, makeObject, makeObject, makeObject, register, setTemplateID, setTemplateName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MobFactory

public MobFactory(int templateID)
Method Detail

makeObject

public ObjectStub makeObject(SpawnData spawnData,
                             OID instanceOid,
                             Point loc)
Description copied from class: ObjectFactory
Create object at the given location. The SpawnData template name overrides this ObjectFactory template name. Objects are created with MobManagerPlugin.createObject().

Sub-classes should override this method to customize spawned objects.

Overrides:
makeObject in class ObjectFactory

addBehav

public void addBehav(Behavior behav)

setBehavs

public void setBehavs(java.util.LinkedList<Behavior> behavs)

getBehavs

public java.util.LinkedList<Behavior> getBehavs()


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