22 package com.realtime.crossfire.jxclient.mapupdater;
31 import org.jetbrains.annotations.NotNull;
50 @SuppressWarnings(
"FieldCanBeLocal")
55 mapUpdaterState.
reset();
59 public void metaserver() {
60 mapUpdaterState.
reset();
64 public void preConnecting(@NotNull
final String serverInfo) {
69 public void connecting(@NotNull
final String serverInfo) {
70 mapUpdaterState.
reset();
79 public void connected() {
84 public void connectFailed(@NotNull
final String reason) {
99 facesManager.addFacesManagerListener(mapUpdaterState);
100 crossfireServerConnection.setCrossfireUpdateMapListener(mapUpdaterState);
102 crossfireServerConnection.addCrossfireTickListener(mapUpdaterState);
Interface for listeners interested gui state changes.
Maintains the current GuiState.
Represents a map (as seen by the client).
final GuiStateListener guiStateListener
The GuiStateListener for detecting established or dropped connections.
Implements the map model which is shown in the map and magic map views.
Manages image information ("faces") needed to display the map view, items, and spell icons...
CfMapUpdater(@NotNull final MapUpdaterState mapUpdaterState, @NotNull final CrossfireServerConnection crossfireServerConnection, @NotNull final FacesManager facesManager, @NotNull final GuiStateManager guiStateManager)
Creates a new instance.
Utility class to update a CfMap model from protocol commands.
void reset()
Resets the animation state.
Update a CfMap model from protocol commands.
final MapUpdaterState mapUpdaterState
The updated MapUpdaterState instance.
Adds encoding/decoding of crossfire protocol packets to a ServerConnection.
Connection progress states of the Crossfire server connection.
Maintains a mapping of face numbers to face data.