atavism.agis.plugins
Class GuildClient
java.lang.Object
atavism.agis.plugins.GuildClient
public class GuildClient
- extends java.lang.Object
This class is responsible for sending out messages associated with the Guild System.
The majority (if not all) of the messages should be caught by the GuildPlugin class.
- Author:
- Andrew Harrison
Method Summary |
static void |
createGuild(OID oid,
java.lang.String guildName)
Sends the createGuildMessage which will create a new guild if one with
the given name doesn't exist. |
static boolean |
getPlayerIsOnline(OID oid)
Sends the getPlayerIsOnlineMessage which will attempt to get a players oid from their name. |
static void |
guildCommand(OID oid,
java.lang.String commandType,
java.io.Serializable data,
java.io.Serializable dataTwo)
Sends the guildCommandMessage which will deal with the given command appropriately. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MSG_TYPE_GET_PLAYER_IS_ONLINE
public static final MessageType MSG_TYPE_GET_PLAYER_IS_ONLINE
MSG_TYPE_CREATE_GUILD
public static final MessageType MSG_TYPE_CREATE_GUILD
MSG_TYPE_INVITE_RESPONSE
public static final MessageType MSG_TYPE_INVITE_RESPONSE
MSG_TYPE_GUILD_COMMAND
public static final MessageType MSG_TYPE_GUILD_COMMAND
GuildClient
protected GuildClient()
createGuild
public static void createGuild(OID oid,
java.lang.String guildName)
- Sends the createGuildMessage which will create a new guild if one with
the given name doesn't exist.
- Parameters:
oid:
- the identifier of the player who wishes to create the guildguildName:
- the name of the new guild to be created
getPlayerIsOnline
public static boolean getPlayerIsOnline(OID oid)
throws java.io.IOException
- Sends the getPlayerIsOnlineMessage which will attempt to get a players oid from their name.
- Throws:
java.io.IOException
guildCommand
public static void guildCommand(OID oid,
java.lang.String commandType,
java.io.Serializable data,
java.io.Serializable dataTwo)
- Sends the guildCommandMessage which will deal with the given command appropriately.
- Parameters:
oid:
- the identifier of the player who sent the commandcommandType:
- the type of commanddata:
- some data to assist with execution of the commanddataTwo:
- another piece of data to assist with execution of the command0