Crossfire JXClient, Trunk
|
Public Member Functions | |
void | addCrossfireAccountListener (@NotNull CrossfireAccountListener listener) |
void | addCrossfireComcListener (@NotNull CrossfireComcListener listener) |
void | addCrossfireDrawextinfoListener (@NotNull CrossfireDrawextinfoListener listener) |
void | addCrossfireDrawinfoListener (@NotNull CrossfireDrawinfoListener listener) |
void | addCrossfireFailureListener (@NotNull CrossfireFailureListener listener) |
void | addCrossfireMagicmapListener (@NotNull CrossfireMagicmapListener listener) |
void | addCrossfireMapScrollListener (@NotNull CrossfireMapScrollListener listener) |
void | addCrossfireMusicListener (@NotNull CrossfireMusicListener listener) |
void | addCrossfirePickupListener (@NotNull CrossfirePickupListener listener) |
void | addCrossfireQueryListener (@NotNull CrossfireQueryListener listener) |
void | addCrossfireSoundListener (@NotNull CrossfireSoundListener listener) |
void | addCrossfireTickListener (@NotNull CrossfireTickListener listener) |
void | addCrossfireUpdateItemListener (@NotNull CrossfireUpdateItemListener crossfireUpdateItemListener) |
void | addPacketWatcherListener (@NotNull ReceivedPacketListener listener) |
void | addSentPacketListener (@NotNull SentPacketListener listener) |
void | drawextinfo (int color, int type, int subtype, String message) |
void | drawInfo (@NotNull String message, int color) |
void | drawInfoSetDebugMode (boolean printMessageTypes) |
String | getAccountName () |
void | removeCrossfireAccountListener (@NotNull CrossfireAccountListener listener) |
void | removeCrossfireDrawextinfoListener (@NotNull CrossfireDrawextinfoListener listener) |
void | removeCrossfireDrawinfoListener (@NotNull CrossfireDrawinfoListener listener) |
void | removeCrossfireFailureListener (@NotNull CrossfireFailureListener listener) |
void | removeCrossfireMagicmapListener (@NotNull CrossfireMagicmapListener listener) |
void | removeCrossfirePickupListener (@NotNull CrossfirePickupListener listener) |
void | removeCrossfireQueryListener (@NotNull CrossfireQueryListener listener) |
void | removeCrossfireUpdateItemListener (@NotNull CrossfireUpdateItemListener crossfireUpdateItemListener) |
void | removePacketWatcherListener (@NotNull ReceivedPacketListener listener) |
void | removeSentPacketListener (@NotNull SentPacketListener listener) |
void | sendAccountCharacterCreate (@NotNull String login, @NotNull String password, @NotNull Collection< String > attributes) |
void | sendAccountCreate (@NotNull String login, @NotNull String password) |
void | sendAccountLink (int force, @NotNull String login, @NotNull String password) |
void | sendAccountLogin (@NotNull String login, @NotNull String password) |
void | sendAccountPassword (@NotNull String currentPassword, @NotNull String newPassword) |
void | sendAccountPlay (@NotNull String name) |
void | sendAddme () |
void | sendApply (int tag) |
void | sendExamine (int tag) |
void | sendLock (boolean val, int tag) |
void | sendLookat (final int dx, int dy) |
void | sendMark (int tag) |
void | sendMove (int to, int tag, int nrof) |
int | sendNcom (int repeat, @NotNull String command) |
void | sendRawString (@NotNull String command) |
void | sendReply (@NotNull String text) |
void | sendRequestinfo (@NotNull String infoType) |
void | sendSetup (@NotNull String... options) |
void | sendToggleextendedtext (@NotNull int... types) |
void | sendVersion (int csval, int scval, @NotNull String vinfo) |
void | setCrossfireUpdateMapListener (@NotNull CrossfireUpdateMapListener listener) |
void | setPreferredMapSize (int preferredMapWidth, int preferredMapHeight) |
void | setPreferredNumLookObjects (int preferredNumLookObjects) |
void | start () |
void | stop () throws InterruptedException |
Public Member Functions inherited from com.realtime.crossfire.jxclient.faces.AskfaceQueue | |
void | addFaceReceivedListener (@NotNull AskfaceFaceQueueListener listener) |
void | sendAskface (int faceNum) |
Public Member Functions inherited from com.realtime.crossfire.jxclient.server.server.ServerConnection | |
void | addClientSocketListener (@NotNull ClientSocketListener clientSocketListener) |
void | connect (@NotNull String hostname, int port) |
void | disconnect (@NotNull String reason) |
void | removeClientSocketListener (@NotNull ClientSocketListener clientSocketListener) |
Adds encoding/decoding of crossfire protocol packets to a ServerConnection.
Definition at line 37 of file CrossfireServerConnection.java.
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireAccountListener | ( | @NotNull CrossfireAccountListener | listener | ) |
Adds a listener to be notified about account events.
listener | the listener to add |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.main.JXCWindow.JXCWindow().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireComcListener | ( | @NotNull CrossfireComcListener | listener | ) |
Adds a listener to be notified about received comc commands.
listener | the listener to add |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.queue.CommandQueue.CommandQueue().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireDrawextinfoListener | ( | @NotNull CrossfireDrawextinfoListener | listener | ) |
Adds a new listener monitoring the drawextinfo S->C messages.
listener | the listener to remove |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireDrawinfoListener | ( | @NotNull CrossfireDrawinfoListener | listener | ) |
Adds a new listener monitoring the drawinfo S->C messages.
listener | the listener to remove |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireFailureListener | ( | @NotNull CrossfireFailureListener | listener | ) |
Adds a listener to be notified of failure messages.
listener | the listener to add |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.gui.label.GUILabelFailure.GUILabelFailure().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireMagicmapListener | ( | @NotNull CrossfireMagicmapListener | listener | ) |
Adds a listener from the list of objects listening to magicmap messages.
listener | the listener to add |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.skin.events.CrossfireMagicmapSkinEvent.CrossfireMagicmapSkinEvent().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireMapScrollListener | ( | @NotNull CrossfireMapScrollListener | listener | ) |
Registers a listener to be called whenever the map was scolled.
listener | the listener |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.queue.CommandQueue.CommandQueue().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireMusicListener | ( | @NotNull CrossfireMusicListener | listener | ) |
Adds a listener to be notified about received music commands.
listener | the listener to add |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfirePickupListener | ( | @NotNull CrossfirePickupListener | listener | ) |
Adds a listener to be notified about received "pickup" messages.
listener | the listener to add |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.window.JXCConnection.setCharacter().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireQueryListener | ( | @NotNull CrossfireQueryListener | listener | ) |
Adds a new listener monitoring the query S->C messages.
listener | the listener to remove |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.gui.label.GUILabelQuery.GUILabelQuery().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireSoundListener | ( | @NotNull CrossfireSoundListener | listener | ) |
Adds a listener to be notified about received sound commands.
listener | the listener to add |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireTickListener | ( | @NotNull CrossfireTickListener | listener | ) |
Adds a listener to be notified about tick changes.
listener | the listener to add |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.queue.CommandQueue.CommandQueue().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireUpdateItemListener | ( | @NotNull CrossfireUpdateItemListener | crossfireUpdateItemListener | ) |
Adds a listener to be notified about item changes.
crossfireUpdateItemListener | the listener to add |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addPacketWatcherListener | ( | @NotNull ReceivedPacketListener | listener | ) |
Adds a listener to be notified about received packets.
listener | the listener to add |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.scripts.PacketWatcher.rebuildPattern().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addSentPacketListener | ( | @NotNull SentPacketListener | listener | ) |
Adds a listener to be notified about sent reply packets.
listener | the listener to add |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.main.JXCWindow.JXCWindow().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.drawextinfo | ( | int | color, |
int | type, | ||
int | subtype, | ||
String | message | ||
) |
Pretends that a drawextinfo message has been received.
type | the message type |
subtype | the message subtype |
message | the message |
color | the color |
Referenced by com.realtime.crossfire.jxclient.commands.DebugMessagesCommand.execute(), and com.realtime.crossfire.jxclient.gui.textinput.GUICommandText.execute().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.drawInfo | ( | @NotNull String | message, |
int | color | ||
) |
Pretends that a drawinfo message has been received.
message | the message |
color | the color |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.gui.item.GUIItemInventory.button3Clicked(), com.realtime.crossfire.jxclient.scripts.AbstractScriptProcess.cmdDraw(), com.realtime.crossfire.jxclient.commands.AbstractCommand.drawInfo(), com.realtime.crossfire.jxclient.scripts.ScriptManager.newScript(), and com.realtime.crossfire.jxclient.scripts.AbstractScriptProcess.reportError().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.drawInfoSetDebugMode | ( | boolean | printMessageTypes | ) |
Enables or disables printing of message types.
printMessageTypes | whether to enable or disable message types |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.commands.DebugMessagesCommand.execute().
String com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.getAccountName | ( | ) |
Returns the current account name.
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.openDialog().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.removeCrossfireAccountListener | ( | @NotNull CrossfireAccountListener | listener | ) |
Removes a listener to be notified about account events.
listener | the listener to remove |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.removeCrossfireDrawextinfoListener | ( | @NotNull CrossfireDrawextinfoListener | listener | ) |
Removes the given listener from the list of objects listening to the drawextinfo S->C messages.
listener | the listener to remove |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.dispose(), and com.realtime.crossfire.jxclient.gui.log.MessageBufferUpdater.dispose().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.removeCrossfireDrawinfoListener | ( | @NotNull CrossfireDrawinfoListener | listener | ) |
Removes the given listener from the list of objects listening to the drawinfo S->C messages.
listener | the listener to remove |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.dispose(), and com.realtime.crossfire.jxclient.gui.log.MessageBufferUpdater.dispose().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.removeCrossfireFailureListener | ( | @NotNull CrossfireFailureListener | listener | ) |
Removes a listener to be notified of failure messages.
listener | the listener to remove |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.gui.label.GUILabelFailure.dispose(), and com.realtime.crossfire.jxclient.gui.label.GUINewcharLabel.dispose().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.removeCrossfireMagicmapListener | ( | @NotNull CrossfireMagicmapListener | listener | ) |
Removes a listener from the list of objects listening to magicmap messages.
listener | the listener to remove |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.skin.events.CrossfireMagicmapSkinEvent.dispose().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.removeCrossfirePickupListener | ( | @NotNull CrossfirePickupListener | listener | ) |
Removes a listener to be notified about received "pickup" messages.
listener | the listener to remove |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.window.JXCConnection.setCharacter().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.removeCrossfireQueryListener | ( | @NotNull CrossfireQueryListener | listener | ) |
Removes the given listener from the list of objects listening to the query S->C messages.
listener | the listener to remove |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.gui.label.GUILabelQuery.dispose(), and com.realtime.crossfire.jxclient.gui.log.MessageBufferUpdater.dispose().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.removeCrossfireUpdateItemListener | ( | @NotNull CrossfireUpdateItemListener | crossfireUpdateItemListener | ) |
Removes a listener to be notified about item changes.
crossfireUpdateItemListener | the listener to remove |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.removePacketWatcherListener | ( | @NotNull ReceivedPacketListener | listener | ) |
Removes a listener to be notified about received packets.
listener | the listener to add |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.scripts.PacketWatcher.destroy(), and com.realtime.crossfire.jxclient.scripts.PacketWatcher.rebuildPattern().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.removeSentPacketListener | ( | @NotNull SentPacketListener | listener | ) |
Removes a listener to be notified about sent reply packets.
listener | the listener to add |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendAccountCharacterCreate | ( | @NotNull String | login, |
@NotNull String | password, | ||
@NotNull Collection< String > | attributes | ||
) |
Sends a request to create a new character associated to the account.
login | the character's name |
password | the character's password |
attributes | the character attributes |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.accountCreateCharacter().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendAccountCreate | ( | @NotNull String | login, |
@NotNull String | password | ||
) |
Sends a request to create a new account.
login | the account login |
password | the account password |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.accountCreate().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendAccountLink | ( | int | force, |
@NotNull String | login, | ||
@NotNull String | password | ||
) |
Sends a request to add an existing character to an account.
force | 0 to allow failure, 1 to force in certain situations |
login | the character's login |
password | the character's password |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.accountLink().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendAccountLogin | ( | @NotNull String | login, |
@NotNull String | password | ||
) |
Asks for an account login.
login | the account login |
password | the account password |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.accountLogin().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendAccountPassword | ( | @NotNull String | currentPassword, |
@NotNull String | newPassword | ||
) |
Sends a request to change the account's password.
currentPassword | current account password |
newPassword | new account password |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.accountPassword().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendAccountPlay | ( | @NotNull String | name | ) |
Sends a request to play a character from an account.
name | the character's name to play |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.accountPlayCharacter().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendAddme | ( | ) |
Sends an "addme" command to the server.
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendApply | ( | int | tag | ) |
Sends an "apply" command to the server.
tag | the item to apply |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.gui.item.GUIItemFloor.button1Clicked(), com.realtime.crossfire.jxclient.gui.item.GUIItemInventory.button1Clicked(), com.realtime.crossfire.jxclient.gui.item.GUIItemFloor.button2Clicked(), com.realtime.crossfire.jxclient.gui.item.GUIItemInventory.button2Clicked(), com.realtime.crossfire.jxclient.gui.item.GUIItemFloor.button3Clicked(), com.realtime.crossfire.jxclient.gui.item.GUIItemInventory.button3Clicked(), and com.realtime.crossfire.jxclient.scripts.AbstractScriptProcess.cmdIssueApply().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendExamine | ( | int | tag | ) |
Sends an "examine" command to the server.
tag | the item to examine |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.gui.item.GUIItemFloor.button1Clicked(), and com.realtime.crossfire.jxclient.gui.item.GUIItemInventory.button1Clicked().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendLock | ( | boolean | val, |
int | tag | ||
) |
Sends a "lock" command to the server.
val | whether to lock the item |
tag | the item to lock |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.gui.item.GUIItemInventory.button1Clicked(), and com.realtime.crossfire.jxclient.scripts.AbstractScriptProcess.cmdIssueLock().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendLookat | ( | final int | dx, |
int | dy | ||
) |
Sends a "lookat" command to the server.
dx | the x-coordinate in tiles, relative to the player |
dy | the y-coordinate in tiles, relative to the player |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.gui.map.GUIMap.mouseClicked().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendMark | ( | int | tag | ) |
Sends a "mark" command to the server.
tag | the item to mark |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.gui.item.GUIItemInventory.button1Clicked(), com.realtime.crossfire.jxclient.gui.item.GUIItemInventory.button2Clicked(), and com.realtime.crossfire.jxclient.scripts.AbstractScriptProcess.cmdIssueMark().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendMove | ( | int | to, |
int | tag, | ||
int | nrof | ||
) |
Sends a "move" command to the server.
to | the destination location |
tag | the item to move |
nrof | the number of items to move |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.scripts.AbstractScriptProcess.cmdIssueMove(), and com.realtime.crossfire.jxclient.queue.CommandQueue.sendMove().
int com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendNcom | ( | int | repeat, |
@NotNull String | command | ||
) |
Sends a "ncom" command to the server.
repeat | the repeat count |
command | the command |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.queue.CommandQueue.sendNcom().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendRawString | ( | @NotNull String | command | ) |
Sends an arbitrary string command to the server.
command | the command |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.queue.CommandQueue.sendRawString().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendReply | ( | @NotNull String | text | ) |
Sends a "reply" command to the server.
text | the text to reply |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.gui.textinput.GUIQueryText.execute().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendRequestinfo | ( | @NotNull String | infoType | ) |
Sends a "requestinfo" command to the server.
infoType | the info type to request |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendSetup | ( | @NotNull String... | options | ) |
Sends a "setup" command to the server.
options | the option/value pairs to send |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.server.crossfire.NumLookObjects.negotiateNumLookObjects().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendToggleextendedtext | ( | @NotNull int... | types | ) |
Sends a "toggleextendedtext" command to the server.
types | the types to request |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendVersion | ( | int | csval, |
int | scval, | ||
@NotNull String | vinfo | ||
) |
Sends a "version" command to the server.
csval | the client version number |
scval | the server version number |
vinfo | the client identification string |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.setCrossfireUpdateMapListener | ( | @NotNull CrossfireUpdateMapListener | listener | ) |
Sets a listener to be notified about map changes. At most one such listener may be set.
listener | the listener |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.setPreferredMapSize | ( | int | preferredMapWidth, |
int | preferredMapHeight | ||
) |
Sets the preferred map size.
preferredMapWidth | the preferred map width in tiles; must be odd |
preferredMapHeight | the preferred map height in tiles; must be odd |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.updateServerSettings().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.setPreferredNumLookObjects | ( | int | preferredNumLookObjects | ) |
Sets the maximum number of objects in the ground view. Must not be called in connected state.
preferredNumLookObjects | the number of objects |
IllegalArgumentException | if the number of objects is invalid |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.updateServerSettings().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.start | ( | ) |
Starts operation.
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.main.JXClient.JXClient(), and com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.newString().
void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.stop | ( | ) | throws InterruptedException |
Stops operation.
InterruptedException | if stopping was interrupted |
Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.
Referenced by com.realtime.crossfire.jxclient.main.JXClient.JXClient().