Atavism Version 2018.1AGIS API

atavism.agis.objects
Class CraftingTask

java.lang.Object
  extended by atavism.agis.objects.CraftingTask
All Implemented Interfaces:
MessageCallback, java.lang.Runnable

public class CraftingTask
extends java.lang.Object
implements java.lang.Runnable, MessageCallback

Runs the task of crafting resulting in an item upon completion.

Author:
Andrew

Field Summary
protected  CraftingRecipe recipe
           
 
Fields inherited from interface atavism.msgsys.MessageCallback
NO_FLAGS, RESPONSE_EXPECTED
 
Constructor Summary
CraftingTask(CraftingRecipe r, java.util.LinkedList<java.lang.Long> cid, java.util.LinkedList<java.lang.Integer> cs, OID oid, int recipeId)
           
CraftingTask(CraftingRecipe recipe, OID oid, int recipeId)
           
 
Method Summary
 void handleMessage(Message msg, int flags)
          Handle message.
 void PlayCoordinatedEffect(java.lang.String coordEffect)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

recipe

protected CraftingRecipe recipe
Constructor Detail

CraftingTask

public CraftingTask(CraftingRecipe recipe,
                    OID oid,
                    int recipeId)

CraftingTask

public CraftingTask(CraftingRecipe r,
                    java.util.LinkedList<java.lang.Long> cid,
                    java.util.LinkedList<java.lang.Integer> cs,
                    OID oid,
                    int recipeId)
Method Detail

handleMessage

public void handleMessage(Message msg,
                          int flags)
Description copied from interface: MessageCallback
Handle message.

Specified by:
handleMessage in interface MessageCallback
Parameters:
msg - Message sent from other agent.
flags - Bitwise OR of MessageCallback.NO_FLAGS, MessageCallback.RESPONSE_EXPECTED.

PlayCoordinatedEffect

public void PlayCoordinatedEffect(java.lang.String coordEffect)

run

public void run()
Specified by:
run in interface java.lang.Runnable


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