Crossfire JXClient, Trunk
Public Member Functions | List of all members
com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection Interface Reference
Inheritance diagram for com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection:
Collaboration graph

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)
 

Detailed Description

Adds encoding/decoding of crossfire protocol packets to a ServerConnection.

Author
Andreas Kirschbaum

Definition at line 37 of file CrossfireServerConnection.java.

Member Function Documentation

◆ addCrossfireAccountListener()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireAccountListener ( @NotNull CrossfireAccountListener  listener)

Adds a listener to be notified about account events.

Parameters
listenerthe listener to add

Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.

Referenced by com.realtime.crossfire.jxclient.main.JXCWindow.JXCWindow().

Here is the caller graph for this function:

◆ addCrossfireComcListener()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireComcListener ( @NotNull CrossfireComcListener  listener)

Adds a listener to be notified about received comc commands.

Parameters
listenerthe listener to add

Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.

Referenced by com.realtime.crossfire.jxclient.queue.CommandQueue.CommandQueue().

Here is the caller graph for this function:

◆ addCrossfireDrawextinfoListener()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireDrawextinfoListener ( @NotNull CrossfireDrawextinfoListener  listener)

Adds a new listener monitoring the drawextinfo S->C messages.

Parameters
listenerthe listener to remove

Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.

◆ addCrossfireDrawinfoListener()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireDrawinfoListener ( @NotNull CrossfireDrawinfoListener  listener)

Adds a new listener monitoring the drawinfo S->C messages.

Parameters
listenerthe listener to remove

Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.

◆ addCrossfireFailureListener()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireFailureListener ( @NotNull CrossfireFailureListener  listener)

Adds a listener to be notified of failure messages.

Parameters
listenerthe listener to add

Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.

Referenced by com.realtime.crossfire.jxclient.gui.label.GUILabelFailure.GUILabelFailure().

Here is the caller graph for this function:

◆ addCrossfireMagicmapListener()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireMagicmapListener ( @NotNull CrossfireMagicmapListener  listener)

Adds a listener from the list of objects listening to magicmap messages.

Parameters
listenerthe listener to add

Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.

Referenced by com.realtime.crossfire.jxclient.skin.events.CrossfireMagicmapSkinEvent.CrossfireMagicmapSkinEvent().

Here is the caller graph for this function:

◆ addCrossfireMapScrollListener()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireMapScrollListener ( @NotNull CrossfireMapScrollListener  listener)

Registers a listener to be called whenever the map was scolled.

Parameters
listenerthe 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().

Here is the caller graph for this function:

◆ addCrossfireMusicListener()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireMusicListener ( @NotNull CrossfireMusicListener  listener)

Adds a listener to be notified about received music commands.

Parameters
listenerthe listener to add

Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.

◆ addCrossfirePickupListener()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfirePickupListener ( @NotNull CrossfirePickupListener  listener)

Adds a listener to be notified about received "pickup" messages.

Parameters
listenerthe listener to add

Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.

Referenced by com.realtime.crossfire.jxclient.window.JXCConnection.setCharacter().

Here is the caller graph for this function:

◆ addCrossfireQueryListener()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireQueryListener ( @NotNull CrossfireQueryListener  listener)

Adds a new listener monitoring the query S->C messages.

Parameters
listenerthe listener to remove

Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.

Referenced by com.realtime.crossfire.jxclient.gui.label.GUILabelQuery.GUILabelQuery().

Here is the caller graph for this function:

◆ addCrossfireSoundListener()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireSoundListener ( @NotNull CrossfireSoundListener  listener)

Adds a listener to be notified about received sound commands.

Parameters
listenerthe listener to add

Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.

◆ addCrossfireTickListener()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireTickListener ( @NotNull CrossfireTickListener  listener)

Adds a listener to be notified about tick changes.

Parameters
listenerthe listener to add

Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.

Referenced by com.realtime.crossfire.jxclient.queue.CommandQueue.CommandQueue().

Here is the caller graph for this function:

◆ addCrossfireUpdateItemListener()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireUpdateItemListener ( @NotNull CrossfireUpdateItemListener  crossfireUpdateItemListener)

Adds a listener to be notified about item changes.

Parameters
crossfireUpdateItemListenerthe listener to add

Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.

◆ addPacketWatcherListener()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addPacketWatcherListener ( @NotNull ReceivedPacketListener  listener)

Adds a listener to be notified about received packets.

Parameters
listenerthe listener to add

Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.

Referenced by com.realtime.crossfire.jxclient.scripts.PacketWatcher.rebuildPattern().

Here is the caller graph for this function:

◆ addSentPacketListener()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addSentPacketListener ( @NotNull SentPacketListener  listener)

Adds a listener to be notified about sent reply packets.

Parameters
listenerthe listener to add

Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.

Referenced by com.realtime.crossfire.jxclient.main.JXCWindow.JXCWindow().

Here is the caller graph for this function:

◆ drawextinfo()

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.

Parameters
typethe message type
subtypethe message subtype
messagethe message
colorthe color

Referenced by com.realtime.crossfire.jxclient.commands.DebugMessagesCommand.execute(), and com.realtime.crossfire.jxclient.gui.textinput.GUICommandText.execute().

Here is the caller graph for this function:

◆ drawInfo()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.drawInfo ( @NotNull String  message,
int  color 
)

◆ drawInfoSetDebugMode()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.drawInfoSetDebugMode ( boolean  printMessageTypes)

Enables or disables printing of message types.

Parameters
printMessageTypeswhether to enable or disable message types

Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.

Referenced by com.realtime.crossfire.jxclient.commands.DebugMessagesCommand.execute().

Here is the caller graph for this function:

◆ getAccountName()

String com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.getAccountName ( )

Returns the current account name.

Returns
the current account name or
null

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().

Here is the caller graph for this function:

◆ removeCrossfireAccountListener()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.removeCrossfireAccountListener ( @NotNull CrossfireAccountListener  listener)

Removes a listener to be notified about account events.

Parameters
listenerthe listener to remove

Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.

◆ removeCrossfireDrawextinfoListener()

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.

Parameters
listenerthe 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().

Here is the caller graph for this function:

◆ removeCrossfireDrawinfoListener()

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.

Parameters
listenerthe 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().

Here is the caller graph for this function:

◆ removeCrossfireFailureListener()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.removeCrossfireFailureListener ( @NotNull CrossfireFailureListener  listener)

Removes a listener to be notified of failure messages.

Parameters
listenerthe 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().

Here is the caller graph for this function:

◆ removeCrossfireMagicmapListener()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.removeCrossfireMagicmapListener ( @NotNull CrossfireMagicmapListener  listener)

Removes a listener from the list of objects listening to magicmap messages.

Parameters
listenerthe listener to remove

Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.

Referenced by com.realtime.crossfire.jxclient.skin.events.CrossfireMagicmapSkinEvent.dispose().

Here is the caller graph for this function:

◆ removeCrossfirePickupListener()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.removeCrossfirePickupListener ( @NotNull CrossfirePickupListener  listener)

Removes a listener to be notified about received "pickup" messages.

Parameters
listenerthe listener to remove

Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.

Referenced by com.realtime.crossfire.jxclient.window.JXCConnection.setCharacter().

Here is the caller graph for this function:

◆ removeCrossfireQueryListener()

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.

Parameters
listenerthe 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().

Here is the caller graph for this function:

◆ removeCrossfireUpdateItemListener()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.removeCrossfireUpdateItemListener ( @NotNull CrossfireUpdateItemListener  crossfireUpdateItemListener)

Removes a listener to be notified about item changes.

Parameters
crossfireUpdateItemListenerthe listener to remove

Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.

◆ removePacketWatcherListener()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.removePacketWatcherListener ( @NotNull ReceivedPacketListener  listener)

Removes a listener to be notified about received packets.

Parameters
listenerthe 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().

Here is the caller graph for this function:

◆ removeSentPacketListener()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.removeSentPacketListener ( @NotNull SentPacketListener  listener)

Removes a listener to be notified about sent reply packets.

Parameters
listenerthe listener to add

Implemented in com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.

◆ sendAccountCharacterCreate()

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.

Parameters
loginthe character's name
passwordthe character's password
attributesthe 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().

Here is the caller graph for this function:

◆ sendAccountCreate()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendAccountCreate ( @NotNull String  login,
@NotNull String  password 
)

Sends a request to create a new account.

Parameters
loginthe account login
passwordthe 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().

Here is the caller graph for this function:

◆ sendAccountLink()

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.

Parameters
force0 to allow failure, 1 to force in certain situations
loginthe character's login
passwordthe 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().

Here is the caller graph for this function:

◆ sendAccountLogin()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendAccountLogin ( @NotNull String  login,
@NotNull String  password 
)

Asks for an account login.

Parameters
loginthe account login
passwordthe 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().

Here is the caller graph for this function:

◆ sendAccountPassword()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendAccountPassword ( @NotNull String  currentPassword,
@NotNull String  newPassword 
)

Sends a request to change the account's password.

Parameters
currentPasswordcurrent account password
newPasswordnew 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().

Here is the caller graph for this function:

◆ sendAccountPlay()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendAccountPlay ( @NotNull String  name)

Sends a request to play a character from an account.

Parameters
namethe 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().

Here is the caller graph for this function:

◆ sendAddme()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendAddme ( )

◆ sendApply()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendApply ( int  tag)

◆ sendExamine()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendExamine ( int  tag)

◆ sendLock()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendLock ( boolean  val,
int  tag 
)

◆ sendLookat()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendLookat ( final int  dx,
int  dy 
)

Sends a "lookat" command to the server.

Parameters
dxthe x-coordinate in tiles, relative to the player
dythe 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().

Here is the caller graph for this function:

◆ sendMark()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendMark ( int  tag)

◆ sendMove()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendMove ( int  to,
int  tag,
int  nrof 
)

Sends a "move" command to the server.

Parameters
tothe destination location
tagthe item to move
nrofthe 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().

Here is the caller graph for this function:

◆ sendNcom()

int com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendNcom ( int  repeat,
@NotNull String  command 
)

Sends a "ncom" command to the server.

Parameters
repeatthe repeat count
commandthe command
Returns
the packet id

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().

Here is the caller graph for this function:

◆ sendRawString()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendRawString ( @NotNull String  command)

Sends an arbitrary string command to the server.

Parameters
commandthe 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().

Here is the caller graph for this function:

◆ sendReply()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendReply ( @NotNull String  text)

Sends a "reply" command to the server.

Parameters
textthe 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().

Here is the caller graph for this function:

◆ sendRequestinfo()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendRequestinfo ( @NotNull String  infoType)

Sends a "requestinfo" command to the server.

Parameters
infoTypethe info type to request

Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.

◆ sendSetup()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendSetup ( @NotNull String...  options)

Sends a "setup" command to the server.

Parameters
optionsthe 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().

Here is the caller graph for this function:

◆ sendToggleextendedtext()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendToggleextendedtext ( @NotNull int...  types)

Sends a "toggleextendedtext" command to the server.

Parameters
typesthe types to request

Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.

◆ sendVersion()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendVersion ( int  csval,
int  scval,
@NotNull String  vinfo 
)

Sends a "version" command to the server.

Parameters
csvalthe client version number
scvalthe server version number
vinfothe client identification string

Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.

◆ setCrossfireUpdateMapListener()

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.

Parameters
listenerthe listener

Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection.

◆ setPreferredMapSize()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.setPreferredMapSize ( int  preferredMapWidth,
int  preferredMapHeight 
)

Sets the preferred map size.

Parameters
preferredMapWidththe preferred map width in tiles; must be odd
preferredMapHeightthe 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().

Here is the caller graph for this function:

◆ setPreferredNumLookObjects()

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.

Parameters
preferredNumLookObjectsthe number of objects
Exceptions
IllegalArgumentExceptionif 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().

Here is the caller graph for this function:

◆ start()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.start ( )

◆ stop()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.stop ( ) throws InterruptedException

Stops operation.

Exceptions
InterruptedExceptionif 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().

Here is the caller graph for this function:

The documentation for this interface was generated from the following file: