@Deprecated public class QuestBehavior extends Behavior implements MessageCallback
Behavior.CommandMessage, Behavior.EventMessage, Behavior.LinkedAggroMessageLINKED_AGGRO_GET, LINKED_AGGRO_RADIUS, LINKED_AGGRO_SEND, LINKED_CHASING_DISTANCE, lock, MSG_TYPE_COMMAND, MSG_TYPE_EVENT, MSG_TYPE_LINKED_AGGRO, objNO_FLAGS, RESPONSE_EXPECTED| Constructor and Description |
|---|
QuestBehavior()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Deprecated.
|
void |
deactivate()
Deprecated.
Removes the subscriptions this behavior has.
|
void |
endsQuest(AgisQuest quest)
Deprecated.
|
java.util.Collection<java.lang.Integer> |
getAllQuestRefs()
Deprecated.
|
java.util.Collection<AgisQuest> |
getAllQuests()
Deprecated.
|
AgisQuest |
getEndQuest(int questID)
Deprecated.
|
java.util.Collection<AgisQuest> |
getEndQuests()
Deprecated.
|
int |
getMerchantFaction()
Deprecated.
|
int |
getMerchantTable()
Deprecated.
|
java.util.ArrayList<java.lang.String> |
getOtherActions()
Deprecated.
|
AgisQuest |
getQuest(int questID)
Deprecated.
|
java.util.Collection<Dialogue> |
getStartDialogues()
Deprecated.
|
AgisQuest |
getStartQuest(java.lang.String questName)
Deprecated.
|
java.util.Collection<java.lang.Integer> |
getStartQuestRefs()
Deprecated.
|
java.util.Collection<AgisQuest> |
getStartQuests()
Deprecated.
|
protected void |
handleDialogueState(OID playerOid)
Deprecated.
Checks a players faction and/or rep to determine whether this npc will sell items to the player in question.
|
protected void |
handleMerchantState(OID playerOid)
Deprecated.
Checks a players faction and/or rep to determine whether this npc will sell items to the player in question.
|
void |
handleMessage(Message msg,
int flags)
Deprecated.
Handle message.
|
protected void |
handleOtherActionsState(OID playerOid)
Deprecated.
Checks a players faction and/or rep to determine whether this npc will sell items to the player in question.
|
protected void |
handleQuestState(OID playerOid)
Deprecated.
|
void |
initialize()
Deprecated.
Sets up the subscription to receive messages the behavior needs to catch.
|
protected void |
offerDialogueToPlayer(OID playerOid,
Dialogue dialogue)
Deprecated.
|
protected void |
offerQuestToPlayer(OID playerOid,
java.util.LinkedList<AgisQuest> quests)
Deprecated.
|
void |
processLevelChangeMsg(ClassAbilityClient.levelChangeMessage msg)
Deprecated.
|
void |
processSkillLevelChangeMsg(ClassAbilityClient.skillLevelChangeMessage msg)
Deprecated.
|
void |
processUpdateMsg(AgisMobClient.DialogCheckMessage msg)
Deprecated.
|
void |
processUpdateMsg(WorldManagerClient.UpdateMessage msg)
Deprecated.
|
void |
setMerchantFaction(int factionNum)
Deprecated.
|
void |
setMerchantTable(MerchantTable table)
Deprecated.
|
void |
setOtherActions(java.util.ArrayList<java.lang.String> otherActions)
Deprecated.
|
void |
startsDialogue(Dialogue dialogue)
Deprecated.
|
void |
startsQuest(AgisQuest quest)
Deprecated.
|
dispatchMessage, getObjectStub, SendCommand, SendLinkedAggro, setObjectStubpublic void initialize()
initialize in class Behaviorpublic void deactivate()
deactivate in class Behaviorpublic void handleMessage(Message msg, int flags)
MessageCallbackhandleMessage in interface MessageCallbackhandleMessage in class Behaviormsg - Message sent from other agent.flags - Bitwise OR of MessageCallback.NO_FLAGS, MessageCallback.RESPONSE_EXPECTED.protected void offerQuestToPlayer(OID playerOid, java.util.LinkedList<AgisQuest> quests)
protected void offerDialogueToPlayer(OID playerOid, Dialogue dialogue)
public void processUpdateMsg(WorldManagerClient.UpdateMessage msg)
public void processUpdateMsg(AgisMobClient.DialogCheckMessage msg)
public void processLevelChangeMsg(ClassAbilityClient.levelChangeMessage msg)
public void processSkillLevelChangeMsg(ClassAbilityClient.skillLevelChangeMessage msg)
protected void handleQuestState(OID playerOid)
protected void handleMerchantState(OID playerOid)
playerOid - protected void handleOtherActionsState(OID playerOid)
playerOid - protected void handleDialogueState(OID playerOid)
playerOid - public void startsQuest(AgisQuest quest)
public void endsQuest(AgisQuest quest)
public AgisQuest getQuest(int questID)
public AgisQuest getStartQuest(java.lang.String questName)
public AgisQuest getEndQuest(int questID)
public java.util.Collection<AgisQuest> getStartQuests()
public java.util.Collection<AgisQuest> getEndQuests()
public java.util.Collection<AgisQuest> getAllQuests()
public java.util.Collection<java.lang.Integer> getAllQuestRefs()
public java.util.Collection<java.lang.Integer> getStartQuestRefs()
public void startsDialogue(Dialogue dialogue)
public java.util.Collection<Dialogue> getStartDialogues()
public void setMerchantTable(MerchantTable table)
public int getMerchantTable()
public void setMerchantFaction(int factionNum)
public int getMerchantFaction()
public void setOtherActions(java.util.ArrayList<java.lang.String> otherActions)
public java.util.ArrayList<java.lang.String> getOtherActions()