- action(int) - Method in interface com.sun.sgs.example.hack.client.CommandListener
-
Called when the user presses a key.
- action(int) - Method in class com.sun.sgs.example.hack.client.GameManager
-
This method notifies the game server that the client has pressed some
key that signifies an action in the game.
- actionPerformed(ActionEvent) - Method in class com.sun.sgs.example.hack.client.gui.CharacterPanel
-
Called when an item in the popup is selected.
- actionPerformed(ActionEvent) - Method in class com.sun.sgs.example.hack.client.gui.ChatPanel
-
Called when return is typed from the entry field.
- actionPerformed(ActionEvent) - Method in class com.sun.sgs.example.hack.client.gui.CreatorPanel
-
Called when an item in the character class popup is selected, or when
one of the buttons is pressed.
- actionPerformed(ActionEvent) - Method in class com.sun.sgs.example.hack.client.gui.LobbyPanel
-
Called when the user clicks on the join button.
- actionPerformed(ActionEvent) - Method in class com.sun.sgs.example.hack.client.gui.PasswordDialog
-
Called when the user clicks on the OK or Cancel buttons.
- addBoardListener(BoardListener) - Method in class com.sun.sgs.example.hack.client.GameManager
-
Registers a listener for board-related events.
- addChatListener(ChatListener) - Method in class com.sun.sgs.example.hack.client.ChatManager
-
Adds a listener to the set that will be notified when a message
arrives at this manager.
- addCreatorListener(CreatorListener) - Method in class com.sun.sgs.example.hack.client.CreatorManager
-
Adds a listener that will receive any changes made by the
CreatorManager.
- addLobbyListener(LobbyListener) - Method in class com.sun.sgs.example.hack.client.LobbyManager
-
Adds a listener for lobby events.
- addPlayerIdMapping(BigInteger, String) - Method in interface com.sun.sgs.example.hack.client.ChatListener
-
Notifies the listener about a signle mapping from player
identifier to player name.
- addPlayerIdMapping(BigInteger, String) - Method in class com.sun.sgs.example.hack.client.ChatManager
-
- addPlayerIdMapping(BigInteger, String) - Method in class com.sun.sgs.example.hack.client.GameChannelListener
-
Notifies this listener of new user identifier mappings.
- addPlayerIdMapping(BigInteger, String) - Method in class com.sun.sgs.example.hack.client.gui.ChatPanel
-
- addPlayerIdMappings(Map<BigInteger, String>) - Method in interface com.sun.sgs.example.hack.client.ChatListener
-
Notifies the listener about some set of mappings from identifier
to user name.
- addPlayerIdMappings(Map<BigInteger, String>) - Method in class com.sun.sgs.example.hack.client.ChatManager
-
Notifies the manager about some set of mappings from identifier
to user name.
- addPlayerIdMappings(Map<BigInteger, String>) - Method in class com.sun.sgs.example.hack.client.gui.ChatPanel
-
Called when there is new information about the mapping from user
identifiers to user names.
- addPlayerListener(PlayerListener) - Method in class com.sun.sgs.example.hack.client.GameManager
-
Registers a listener for player-related events.
- cancelCreation() - Method in class com.sun.sgs.example.hack.client.CreatorManager
-
Requests that character creation finish without creating a character.
- changeBoard(Board) - Method in interface com.sun.sgs.example.hack.client.BoardListener
-
Notifies the listener that the board has changed.
- changeBoard(Board) - Method in class com.sun.sgs.example.hack.client.GameManager
-
Notifies the manager that the board has changed.
- changeStatistics(int, CharacterStats) - Method in interface com.sun.sgs.example.hack.client.CreatorListener
-
Notifies the listener of new character statistics.
- changeStatistics(int, CharacterStats) - Method in class com.sun.sgs.example.hack.client.CreatorManager
-
Notifies the listener of new character statistics.
- changeStatistics(int, CharacterStats) - Method in class com.sun.sgs.example.hack.client.gui.CreatorPanel
-
Notifies the listener of new character statistics.
- CharacterPanel - Class in com.sun.sgs.example.hack.client.gui
-
This panel is used by the lobby interface to display character details
and allow the player to choose which character they want to play when
they join a game.
- CharacterPanel() - Constructor for class com.sun.sgs.example.hack.client.gui.CharacterPanel
-
Creates an instance of CharacterPanel.
- ChatListener - Interface in com.sun.sgs.example.hack.client
-
This interface is used to listen for incoming chat messages and
membership change events.
- ChatManager - Class in com.sun.sgs.example.hack.client
-
This class manages chat communications, acting both as a listener notifier
for incoming messages and as a broadcast point for outgoing messages.
- ChatManager() - Constructor for class com.sun.sgs.example.hack.client.ChatManager
-
Creates an instance of ChatManager.
- ChatPanel - Class in com.sun.sgs.example.hack.client.gui
-
This implements a simple chat front-end with a text field for sending
messages and a larger text area for displaying messages.
- ChatPanel(ChatManager, JComponent) - Constructor for class com.sun.sgs.example.hack.client.gui.ChatPanel
-
Creates a ChatManager.
- clearList() - Method in class com.sun.sgs.example.hack.client.gui.LobbyPanel
-
Clears the current list of games.
- clearMessages() - Method in class com.sun.sgs.example.hack.client.gui.ChatPanel
-
Clears all the current messages in the display area.
- Client - Class in com.sun.sgs.example.hack.client
-
This is the main class for the client app.
- Client() - Constructor for class com.sun.sgs.example.hack.client.Client
-
Creates an instance of Client.
- com.sun.sgs.example.hack.client - package com.sun.sgs.example.hack.client
-
- com.sun.sgs.example.hack.client.gui - package com.sun.sgs.example.hack.client.gui
-
- CommandListener - Interface in com.sun.sgs.example.hack.client
-
This interface defines a class that listens for commands from the player.
- connect() - Method in class com.sun.sgs.example.hack.client.Client
-
Tries to connect to the game server.
- connect(String, char[]) - Method in class com.sun.sgs.example.hack.client.gui.PasswordDialog
-
- createCurrentCharacter(String) - Method in class com.sun.sgs.example.hack.client.CreatorManager
-
Requests that the server create the current character as one owned
by the player.
- CreatorChannelListener - Class in com.sun.sgs.example.hack.client
-
This class listens for all messages from the creator game.
- CreatorChannelListener(CreatorListener, ChatListener) - Constructor for class com.sun.sgs.example.hack.client.CreatorChannelListener
-
Creates an instance of CreatorChannelListener.
- CreatorListener - Interface in com.sun.sgs.example.hack.client
-
This interface defines a class that listens for creator messages.
- CreatorManager - Class in com.sun.sgs.example.hack.client
-
This manager handles all messages from and to the creator on the server.
- CreatorManager() - Constructor for class com.sun.sgs.example.hack.client.CreatorManager
-
Creates a new instance of CreatorManager.
- CreatorPanel - Class in com.sun.sgs.example.hack.client.gui
-
This is a panel used to interact with the player's charcaters.
- CreatorPanel(CreatorManager) - Constructor for class com.sun.sgs.example.hack.client.gui.CreatorPanel
-
Creates an instance of CreatorPanel.
- gameAdded(String) - Method in interface com.sun.sgs.example.hack.client.LobbyListener
-
Notifies the listener that a game was added.
- gameAdded(String) - Method in class com.sun.sgs.example.hack.client.LobbyManager
-
Notifies the manager that a game was added.
- GameChannelListener - Class in com.sun.sgs.example.hack.client
-
This abstract class is the base for all game-specific listeners.
- GameChannelListener(ChatListener) - Constructor for class com.sun.sgs.example.hack.client.GameChannelListener
-
Creates an instance of GameChannelListener.
- GameManager - Class in com.sun.sgs.example.hack.client
-
This class manages all interaction with an interactive game.
- GameManager() - Constructor for class com.sun.sgs.example.hack.client.GameManager
-
Creates an instance of GameManager.
- GamePanel - Class in com.sun.sgs.example.hack.client.gui
-
This is a panel used to show interaction with a dungeon.
- GamePanel(GameManager) - Constructor for class com.sun.sgs.example.hack.client.gui.GamePanel
-
Creates an instance of GamePanel.
- gameRemoved(String) - Method in interface com.sun.sgs.example.hack.client.LobbyListener
-
Notifies the listener that a game was removed.
- gameRemoved(String) - Method in class com.sun.sgs.example.hack.client.LobbyManager
-
Notifies the manager that a game was removed.
- getCharacterName() - Method in class com.sun.sgs.example.hack.client.gui.CharacterPanel
-
Returns the name of the currently selected character.
- getGameCount() - Method in class com.sun.sgs.example.hack.client.gui.LobbyPanel
-
- getLogin() - Method in class com.sun.sgs.example.hack.client.gui.PasswordDialog
-
Returns the login name that the user provided.
- getObject(ByteBuffer) - Static method in class com.sun.sgs.example.hack.client.GameChannelListener
-
Retrieves a serialized object from the given buffer.
- getPassword() - Method in class com.sun.sgs.example.hack.client.gui.PasswordDialog
-
Returns the password that the user provided.
- getPasswordAuthentication() - Method in class com.sun.sgs.example.hack.client.Client
-
- getSessionId() - Method in class com.sun.sgs.example.hack.client.gui.ChatPanel
-
Returns the current session id for the client.
- sendMessage(String) - Method in class com.sun.sgs.example.hack.client.ChatManager
-
Sends a broadcast chat message to all participants on the current
channel.
- setChannel(ClientChannel) - Method in class com.sun.sgs.example.hack.client.ChatManager
-
Sets the channel that is used for incoming and outgoing communication.
- setCharacter(int, CharacterStats) - Method in class com.sun.sgs.example.hack.client.GameManager
-
Called to tell the manager about the character that the client is
currently using.
- setCharacter(int, CharacterStats) - Method in interface com.sun.sgs.example.hack.client.PlayerListener
-
Called to tell listeners about the character that the client is
currently using.
- setCharacters(Collection<CharacterStats>) - Method in class com.sun.sgs.example.hack.client.gui.CharacterPanel
-
Sets the available set of characters for this player.
- setCharacters(Collection<CharacterStats>) - Method in class com.sun.sgs.example.hack.client.gui.LobbyPanel
-
Sets the characters that are available for the player to use.
- setCharacters(Collection<CharacterStats>) - Method in interface com.sun.sgs.example.hack.client.LobbyListener
-
Notifies the listener of the characters available for the player.
- setCharacters(Collection<CharacterStats>) - Method in class com.sun.sgs.example.hack.client.LobbyManager
-
Notifies the manager of the characters available for the player.
- setClient(SimpleClient) - Method in class com.sun.sgs.example.hack.client.CreatorManager
-
Sets the client that this class uses for all communication with
the game server.
- setClient(SimpleClient) - Method in class com.sun.sgs.example.hack.client.GameManager
-
Sets the client that this class uses for all communication with
the game server.
- setClient(SimpleClient) - Method in class com.sun.sgs.example.hack.client.LobbyManager
-
Sets the client that this class uses for all communication
with the game server.
- setConnectionFailed(String) - Method in class com.sun.sgs.example.hack.client.gui.PasswordDialog
-
- setSessionId(BigInteger) - Method in class com.sun.sgs.example.hack.client.gui.ChatPanel
-
Sets the session id for the client.
- setSpriteMap(int, Map<Integer, Image>) - Method in interface com.sun.sgs.example.hack.client.BoardListener
-
Notifies the listener of the sprite map that should be used.
- setSpriteMap(int, Map<Integer, Image>) - Method in class com.sun.sgs.example.hack.client.GameManager
-
Notifies the manager of the sprite map that should be used.
- showLoadingScreen() - Method in class com.sun.sgs.example.hack.client.gui.GamePanel
-
Tells the panel to render a screen that shows a loading message.