Version 1.5APIs subject to change!

multiverse.mars.plugins
Class QuestClient

java.lang.Object
  extended by multiverse.mars.plugins.QuestClient

public class QuestClient
extends java.lang.Object


Nested Class Summary
static class QuestClient.ConcludeMessage
          mob (quest behavior) is telling us (usually quest state obj) that the quest has been concluded player is subject because it is going to the player's quest state
static class QuestClient.GetQuestStatusMessage
          (usually quest behavior) asking quest plugin for the status of various quest states
static class QuestClient.NewQuestStateMessage
          client accepted a quest, so the quest behavior has created a quest state object and is now alerting the quest plugin about it so it can keep track of it
static class QuestClient.QuestResponseMessage
          client is responding to server, accepting or declining quest
static class QuestClient.RequestConcludeMessage
           
static class QuestClient.RequestQuestInfoMessage
          (usually proxy plugin) asking for quest info
static class QuestClient.StateStatusChangeMessage
          the quest plugin (usually via quest state object) has updated its state, and is alerting others (usually quest behavior) so that they can let the player know if their available actions have changed (such as ability to turn in a quest)
 
Field Summary
static MessageType MSG_TYPE_CONCLUDE_QUEST
           
static MessageType MSG_TYPE_GET_QUEST_STATUS
           
static MessageType MSG_TYPE_NEW_QUESTSTATE
           
static MessageType MSG_TYPE_QUEST_INFO
           
static MessageType MSG_TYPE_QUEST_LOG_INFO
           
static MessageType MSG_TYPE_QUEST_RESP
           
static MessageType MSG_TYPE_QUEST_STATE_INFO
           
static MessageType MSG_TYPE_QUEST_STATE_STATUS_CHANGE
           
static MessageType MSG_TYPE_REMOVE_QUEST_RESP
           
static MessageType MSG_TYPE_REQ_CONCLUDE_QUEST
           
static MessageType MSG_TYPE_REQ_QUEST_INFO
           
static MessageType MSG_TYPE_REQ_RESET_QUESTS
           
static byte QuestStatusCompleted
           
static byte QuestStatusConcluded
           
static byte QuestStatusDNE
           
static byte QuestStatusInProgress
           
 
Constructor Summary
QuestClient()
           
 
Method Summary
static java.util.Map<java.lang.String,java.lang.Byte> getQuestStatus(java.lang.Long playerOid, java.util.Collection<java.lang.String> questRefs)
          makes a request to the questplugin to get the quest completion status for the passed in quest ids for a given player
static void requestConclude(java.lang.Long mobOid, java.lang.Long playerOid)
           
static void requestQuestInfo(java.lang.Long mobOid, java.lang.Long playerOid)
           
static void resetQuests(java.lang.Long playerOid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QuestStatusDNE

public static final byte QuestStatusDNE
See Also:
Constant Field Values

QuestStatusInProgress

public static final byte QuestStatusInProgress
See Also:
Constant Field Values

QuestStatusCompleted

public static final byte QuestStatusCompleted
See Also:
Constant Field Values

QuestStatusConcluded

public static final byte QuestStatusConcluded
See Also:
Constant Field Values

MSG_TYPE_REQ_QUEST_INFO

public static final MessageType MSG_TYPE_REQ_QUEST_INFO

MSG_TYPE_REQ_CONCLUDE_QUEST

public static final MessageType MSG_TYPE_REQ_CONCLUDE_QUEST

MSG_TYPE_QUEST_INFO

public static final MessageType MSG_TYPE_QUEST_INFO

MSG_TYPE_GET_QUEST_STATUS

public static final MessageType MSG_TYPE_GET_QUEST_STATUS

MSG_TYPE_QUEST_RESP

public static final MessageType MSG_TYPE_QUEST_RESP

MSG_TYPE_NEW_QUESTSTATE

public static final MessageType MSG_TYPE_NEW_QUESTSTATE

MSG_TYPE_CONCLUDE_QUEST

public static final MessageType MSG_TYPE_CONCLUDE_QUEST

MSG_TYPE_QUEST_STATE_STATUS_CHANGE

public static final MessageType MSG_TYPE_QUEST_STATE_STATUS_CHANGE

MSG_TYPE_QUEST_LOG_INFO

public static final MessageType MSG_TYPE_QUEST_LOG_INFO

MSG_TYPE_QUEST_STATE_INFO

public static final MessageType MSG_TYPE_QUEST_STATE_INFO

MSG_TYPE_REMOVE_QUEST_RESP

public static final MessageType MSG_TYPE_REMOVE_QUEST_RESP

MSG_TYPE_REQ_RESET_QUESTS

public static final MessageType MSG_TYPE_REQ_RESET_QUESTS
Constructor Detail

QuestClient

public QuestClient()
Method Detail

getQuestStatus

public static java.util.Map<java.lang.String,java.lang.Byte> getQuestStatus(java.lang.Long playerOid,
                                                                            java.util.Collection<java.lang.String> questRefs)
makes a request to the questplugin to get the quest completion status for the passed in quest ids for a given player

Parameters:
playerOid - player
questRefs - name of quests we want the status for

requestQuestInfo

public static void requestQuestInfo(java.lang.Long mobOid,
                                    java.lang.Long playerOid)

requestConclude

public static void requestConclude(java.lang.Long mobOid,
                                   java.lang.Long playerOid)

resetQuests

public static void resetQuests(java.lang.Long playerOid)


Copyright © 2008 The Multiverse Network, Inc.