 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.server.crossfire;
28 import java.util.Collection;
29 import org.jetbrains.annotations.NotNull;
30 import org.jetbrains.annotations.Nullable;
48 @SuppressWarnings(
"RedundantThrows")
49 void stop()
throws InterruptedException;
217 void drawInfo(@NotNull String message,
int color);
226 void drawextinfo(
int color,
int type,
int subtype, String message);
253 void sendAccountLink(
int force, @NotNull String login, @NotNull String password);
299 void sendLock(
boolean val,
int tag);
320 void sendMove(
int to,
int tag,
int nrof);
328 int sendNcom(
int repeat, @NotNull String command);
352 void sendSetup(@NotNull String... options);
366 void sendVersion(
int csval,
int scval, @NotNull String vinfo);
Interface for listeners interested in the "failure" messages received from the Crossfire server.
void addCrossfireComcListener(@NotNull CrossfireComcListener listener)
Adds a listener to be notified about received comc commands.
void removeCrossfireDrawextinfoListener(@NotNull CrossfireDrawextinfoListener listener)
Removes the given listener from the list of objects listening to the drawextinfo S->C messages.
void sendMove(int to, int tag, int nrof)
Sends a "move" command to the server.
Interface for listeners interested in drawinfo messages received from the Crossfire server.
Interface for listeners interested in "sound" commands.
void addCrossfireMagicmapListener(@NotNull CrossfireMagicmapListener listener)
Adds a listener from the list of objects listening to magicmap messages.
void sendApply(int tag)
Sends an "apply" command to the server.
void removePacketWatcherListener(@NotNull ReceivedPacketListener listener)
Removes a listener to be notified about received packets.
void sendVersion(int csval, int scval, @NotNull String vinfo)
Sends a "version" command to the server.
Interface for listeners interested in "pickup" messages.
void sendReply(@NotNull String text)
Sends a "reply" command to the server.
void setPreferredNumLookObjects(int preferredNumLookObjects)
Sets the maximum number of objects in the ground view.
Interface for listeners interested in magicmap messages received from the Crossfire server.
void removeCrossfireQueryListener(@NotNull CrossfireQueryListener listener)
Removes the given listener from the list of objects listening to the query S->C messages.
void removeCrossfireDrawinfoListener(@NotNull CrossfireDrawinfoListener listener)
Removes the given listener from the list of objects listening to the drawinfo S->C messages.
Adds encoding/decoding of crossfire protocol packets to a ServerConnection.
void removeSentPacketListener(@NotNull SentPacketListener listener)
Removes a listener to be notified about sent reply packets.
Interface for listeners interested in comc commands received from the server.
void addCrossfireSoundListener(@NotNull CrossfireSoundListener listener)
Adds a listener to be notified about received sound commands.
void addCrossfireDrawinfoListener(@NotNull CrossfireDrawinfoListener listener)
Adds a new listener monitoring the drawinfo S->C messages.
void addCrossfireDrawextinfoListener(@NotNull CrossfireDrawextinfoListener listener)
Adds a new listener monitoring the drawextinfo S->C messages.
void addPacketWatcherListener(@NotNull ReceivedPacketListener listener)
Adds a listener to be notified about received packets.
Interface for listeners interested in account information related messages received from the Crossfir...
Manages image information ("faces") needed to display the map view, items, and spell icons.
void sendExamine(int tag)
Sends an "examine" command to the server.
Interface for classes that allow sending "askface" commands.
void start()
Starts operation.
Performs most of the network-related work.
void setPreferredMapSize(int preferredMapWidth, int preferredMapHeight)
Sets the preferred map size.
void addCrossfireMusicListener(@NotNull CrossfireMusicListener listener)
Adds a listener to be notified about received music commands.
void addCrossfirePickupListener(@NotNull CrossfirePickupListener listener)
Adds a listener to be notified about received "pickup" messages.
void sendMark(int tag)
Sends a "mark" command to the server.
void sendToggleextendedtext(@NotNull int... types)
Sends a "toggleextendedtext" command to the server.
Listener for classes interested in commands sent to the Crossfire server.
void addCrossfireFailureListener(@NotNull CrossfireFailureListener listener)
Adds a listener to be notified of failure messages.
void removeCrossfirePickupListener(@NotNull CrossfirePickupListener listener)
Removes a listener to be notified about received "pickup" messages.
void sendRequestinfo(@NotNull String infoType)
Sends a "requestinfo" command to the server.
Interface for listeners interested in "music" commands.
void drawextinfo(int color, int type, int subtype, String message)
Pretends that a drawextinfo message has been received.
void removeCrossfireMagicmapListener(@NotNull CrossfireMagicmapListener listener)
Removes a listener from the list of objects listening to magicmap messages.
void sendAccountCharacterCreate(@NotNull String login, @NotNull String password, @NotNull Collection< String > attributes)
Sends a request to create a new character associated to the account.
Interface for listeners interested in received packets.
void addCrossfireQueryListener(@NotNull CrossfireQueryListener listener)
Adds a new listener monitoring the query S->C messages.
void sendAccountLink(int force, @NotNull String login, @NotNull String password)
Sends a request to add an existing character to an account.
String getAccountName()
Returns the current account name.
int sendNcom(int repeat, @NotNull String command)
Sends a "ncom" command to the server.
void sendRawString(@NotNull String command)
Sends an arbitrary string command to the server.
void sendAccountLogin(@NotNull String login, @NotNull String password)
Asks for an account login.
void sendAccountPassword(@NotNull String currentPassword, @NotNull String newPassword)
Sends a request to change the account's password.
Interface for listeners interested in "tick" commands.
Interface for listeners interested in query messages received from the Crossfire server.
void sendAddme()
Sends an "addme" command to the server.
void sendLock(boolean val, int tag)
Sends a "lock" command to the server.
void addCrossfireMapScrollListener(@NotNull CrossfireMapScrollListener listener)
Registers a listener to be called whenever the map was scolled.
void addSentPacketListener(@NotNull SentPacketListener listener)
Adds a listener to be notified about sent reply packets.
Interface for listeners interested in map related commands.
void removeCrossfireUpdateItemListener(@NotNull CrossfireUpdateItemListener crossfireUpdateItemListener)
Removes a listener to be notified about item changes.
Interface for listeners interested in drawextinfo messages received from the Crossfire server.
void drawInfo(@NotNull String message, int color)
Pretends that a drawinfo message has been received.
void addCrossfireUpdateItemListener(@NotNull CrossfireUpdateItemListener crossfireUpdateItemListener)
Adds a listener to be notified about item changes.
Interface for listeners interested in item related commands.
void addCrossfireAccountListener(@NotNull CrossfireAccountListener listener)
Adds a listener to be notified about account events.
void setCrossfireUpdateMapListener(@NotNull CrossfireUpdateMapListener listener)
Sets a listener to be notified about map changes.
void stop()
Stops operation.
void sendAccountPlay(@NotNull String name)
Sends a request to play a character from an account.
void sendAccountCreate(@NotNull String login, @NotNull String password)
Sends a request to create a new account.
void removeCrossfireFailureListener(@NotNull CrossfireFailureListener listener)
Removes a listener to be notified of failure messages.
void drawInfoSetDebugMode(boolean printMessageTypes)
Enables or disables printing of message types.
void sendSetup(@NotNull String... options)
Sends a "setup" command to the server.
void removeCrossfireAccountListener(@NotNull CrossfireAccountListener listener)
Removes a listener to be notified about account events.
void sendLookat(final int dx, int dy)
Sends a "lookat" command to the server.
void addCrossfireTickListener(@NotNull CrossfireTickListener listener)
Adds a listener to be notified about tick changes.