|
|||||||||
| Version 1.5 | APIs subject to change! | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmultiverse.server.engine.EnginePlugin
multiverse.mars.plugins.GroupPlugin
public class GroupPlugin
| Nested Class Summary |
|---|
| Field Summary | |
|---|---|
protected static java.util.Map<java.lang.Long,MarsGroup> |
_currentGroups
|
protected static Logger |
_log
|
protected static int |
_maxGroupSize
|
protected static java.util.List<java.lang.String> |
_registeredStats
|
| Fields inherited from interface multiverse.msgsys.MessageCallback |
|---|
NO_FLAGS, RESPONSE_EXPECTED |
| Constructor Summary | |
|---|---|
GroupPlugin()
|
|
| Method Summary | |
|---|---|
protected MarsGroup |
GetGroup(long groupOid)
|
protected static MarsGroupMember |
GetGroupMember(java.lang.Long subjectOid)
|
java.lang.String |
GetName()
|
static java.util.List<java.lang.String> |
GetRegisteredStats()
|
protected boolean |
HandledVoiceStatus(java.lang.Long playerOid,
java.lang.Long groupOid,
java.lang.Boolean voiceEnabled)
HandledVoiceStatus - Logic to handle mv.VOICE_CHAT_STATUS message. |
protected void |
HandleGroupChat(WorldManagerClient.ExtensionMessage groupChatMsg)
Logic to handle group specific chat |
protected java.util.HashSet<java.lang.Long> |
HandleGroupInfoRequest(CombatInfo subject)
HandleGroupInfoRequest handles a request for information about a group. |
protected boolean |
HandleGroupInvite(WorldManagerClient.ExtensionMessage inviteMsg)
Handles invite request by sending invite request message to the invitee |
protected boolean |
HandleInviteResponse(WorldManagerClient.ExtensionMessage inviteMsg)
Handles logic for an invite request response - either accepted or declined Creates a new group if the inviter is not currently grouped |
protected boolean |
HandleMuteGroup(java.lang.Long setterOid,
java.lang.Long groupOid)
HandleMuteGroup - Allows group leader to mute or un-mute the group's voice chat |
protected boolean |
HandleSetAllowedSpeaker(long targetOid,
long setterOid,
long groupOid)
HandleSetAllowedSpeaker - Used to mark the target as an allowed speaker or not of the group's voice chat. |
protected boolean |
HandleVoiceMemberAdded(java.lang.Long memberOid,
java.lang.Long groupOid)
HandleVoiceMemberAdded - Handles logic for processing the VoiceClient.MSG_TYPE_VOICE_MEMBER_ADDED message type. |
void |
onActivate()
for developers extending the EnginePlugin object, it may be easier to use the onActivate() method which gets called when the plugin is being activated by the Engine. |
void |
RegisterHooks()
|
static void |
RegisterStat(java.lang.String stat)
|
protected void |
RemoveGroupMember(CombatInfo info)
|
protected void |
SendGroupPropertyUpdate(java.lang.Long subjectOid,
MarsGroup group,
java.util.Map<java.lang.String,java.io.Serializable> statsToUpdate)
SendGroupPropertyUpdate - Sends a mv.GROUP_PROPERTY_UPDATE message to each client in the group client |
protected void |
SendGroupUpdate(MarsGroup group)
Gets information about the group and its members and sends it to each group member |
protected void |
SendTargetedGroupMessage(long target,
java.lang.String message)
SendTargetedGroupMessage - Handles sending messages to the group com channel |
static void |
SetMaxGroupSize(int size)
Sets the maximum number of players that can be in a single group - Default is 8 |
protected boolean |
UpdateGroupMemberProps(PropertyMessage propMsg)
Sends update to group members about the group and its members |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Logger _log
protected static java.util.List<java.lang.String> _registeredStats
protected static java.util.Map<java.lang.Long,MarsGroup> _currentGroups
protected static int _maxGroupSize
| Constructor Detail |
|---|
public GroupPlugin()
| Method Detail |
|---|
public java.lang.String GetName()
public void onActivate()
EnginePlugin
onActivate in class EnginePluginpublic void RegisterHooks()
public static void RegisterStat(java.lang.String stat)
protected MarsGroup GetGroup(long groupOid)
public static java.util.List<java.lang.String> GetRegisteredStats()
protected void SendGroupUpdate(MarsGroup group)
protected void RemoveGroupMember(CombatInfo info)
public static void SetMaxGroupSize(int size)
protected boolean UpdateGroupMemberProps(PropertyMessage propMsg)
protected void SendGroupPropertyUpdate(java.lang.Long subjectOid,
MarsGroup group,
java.util.Map<java.lang.String,java.io.Serializable> statsToUpdate)
subjectOid - - Player whos property changedgroup - - Group in which the subject belongs tostatsToUpdate - - Mapprotected boolean HandleInviteResponse(WorldManagerClient.ExtensionMessage inviteMsg)
protected void HandleGroupChat(WorldManagerClient.ExtensionMessage groupChatMsg)
protected boolean HandleGroupInvite(WorldManagerClient.ExtensionMessage inviteMsg)
protected java.util.HashSet<java.lang.Long> HandleGroupInfoRequest(CombatInfo subject)
protected void SendTargetedGroupMessage(long target,
java.lang.String message)
protected static MarsGroupMember GetGroupMember(java.lang.Long subjectOid)
protected boolean HandleSetAllowedSpeaker(long targetOid,
long setterOid,
long groupOid)
targetOid - - Player to mute or un-mutesetterOid - - Requesting PlayergroupOid - - Identifier for the group the target and setter belong to
protected boolean HandleMuteGroup(java.lang.Long setterOid,
java.lang.Long groupOid)
setterOid - groupOid -
protected boolean HandledVoiceStatus(java.lang.Long playerOid,
java.lang.Long groupOid,
java.lang.Boolean voiceEnabled)
playerOid - - Player being updatedgroupOid - - Group being referencedvoiceEnabled - - Value to determine if the player's voice is enabled on their client (Voice enabled and join Party enabled)
protected boolean HandleVoiceMemberAdded(java.lang.Long memberOid,
java.lang.Long groupOid)
memberOid - groupOid -
|
Copyright © 2008 The Multiverse Network, Inc. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||