atavism.agis.objects
Class CraftingTask
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
recipe
protected CraftingRecipe recipe
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)
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