A B C D G H I J K L M N P R S U V 

A

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.

B

BoardListener - Interface in com.sun.sgs.example.hack.client
This interface defines a class that listenens for updates to the game board and associated state.

C

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.

D

disconnected(boolean, String) - Method in class com.sun.sgs.example.hack.client.Client
 
DungeonChannelListener - Class in com.sun.sgs.example.hack.client
This class listens for all messages from a dungeon.
DungeonChannelListener(BoardListener, ChatListener, PlayerListener) - Constructor for class com.sun.sgs.example.hack.client.DungeonChannelListener
Creates an instance of DungeonChannelListener.

G

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.

H

hearMessage(String) - Method in interface com.sun.sgs.example.hack.client.BoardListener
Notifies the listener of a message.
hearMessage(String) - Method in class com.sun.sgs.example.hack.client.GameManager
Notifies the manager of a message.

I

isCancel() - Method in class com.sun.sgs.example.hack.client.gui.PasswordDialog
 

J

joinedChannel(ClientChannel) - Method in class com.sun.sgs.example.hack.client.Client
Called when the client joins a communication channel.
joinGame(String, String) - Method in class com.sun.sgs.example.hack.client.LobbyManager
This method is used to tell the server that the player wants to join the given game as the given player.

K

keyPressed(KeyEvent) - Method in class com.sun.sgs.example.hack.client.gui.GamePanel
Called when the user presses a key.
keyReleased(KeyEvent) - Method in class com.sun.sgs.example.hack.client.gui.GamePanel
Called when the user releases a key.
keyTyped(KeyEvent) - Method in class com.sun.sgs.example.hack.client.gui.GamePanel
Called when the user types a key.

L

leftChannel(ClientChannel) - Method in class com.sun.sgs.example.hack.client.GameChannelListener
LobbyChannelListener - Class in com.sun.sgs.example.hack.client
This class listens for all messages from the lobby.
LobbyChannelListener(LobbyListener, ChatListener) - Constructor for class com.sun.sgs.example.hack.client.LobbyChannelListener
Creates an instance of LobbyListener.
LobbyListener - Interface in com.sun.sgs.example.hack.client
This interface defines a class that listens for events from the lobby.
LobbyManager - Class in com.sun.sgs.example.hack.client
This class manages interaction with the lobby.
LobbyManager() - Constructor for class com.sun.sgs.example.hack.client.LobbyManager
Creates a new instance of LobbyManager.
LobbyPanel - Class in com.sun.sgs.example.hack.client.gui
A panel that manages all the lobby GUI elements.
LobbyPanel(LobbyManager) - Constructor for class com.sun.sgs.example.hack.client.gui.LobbyPanel
Creates an instance of LobbyPanel.
loggedIn() - Method in class com.sun.sgs.example.hack.client.Client
 
loginFailed(String) - Method in class com.sun.sgs.example.hack.client.Client
 

M

main(String[]) - Static method in class com.sun.sgs.example.hack.client.Client
The main-line for the client app.
messageArrived(String) - Method in interface com.sun.sgs.example.hack.client.ChatListener
Notify the listener when a message has arrived.
messageArrived(String) - Method in class com.sun.sgs.example.hack.client.ChatManager
Notify the manager when a message has arrived.
messageArrived(String) - Method in class com.sun.sgs.example.hack.client.gui.ChatPanel
Callback that is invoked when a message arrives.

N

notifyChatMessage(ByteBuffer) - Method in class com.sun.sgs.example.hack.client.GameChannelListener
Notifies this listener that a chat message arrived from the given player.
notifyJoin(ByteBuffer) - Method in class com.sun.sgs.example.hack.client.GameChannelListener
Notifies the game that a player has joined.
notifyLeave(ByteBuffer) - Method in class com.sun.sgs.example.hack.client.GameChannelListener
Notifies the game that a player has left.

P

PasswordDialog - Class in com.sun.sgs.example.hack.client.gui
This is a dialog used to prompt the user for a login name and password.
PasswordDialog(Frame, String, String) - Constructor for class com.sun.sgs.example.hack.client.gui.PasswordDialog
Creates an instance of PasswordDialog.
playerCountUpdated(int) - Method in interface com.sun.sgs.example.hack.client.LobbyListener
Notifies the listener that the membership count of the lobby has changed.
playerCountUpdated(String, int) - Method in interface com.sun.sgs.example.hack.client.LobbyListener
Notifies the listener that the membership count of some game has changed.
playerCountUpdated(int) - Method in class com.sun.sgs.example.hack.client.LobbyManager
Notifies the manager that the membership count of the lobby has changed.
playerCountUpdated(String, int) - Method in class com.sun.sgs.example.hack.client.LobbyManager
Notifies the manager that the membership count of some game has changed.
playerJoined(BigInteger) - Method in interface com.sun.sgs.example.hack.client.ChatListener
Called when a player joins the chat group.
playerJoined(BigInteger) - Method in class com.sun.sgs.example.hack.client.ChatManager
Called when a player joins the chat group.
playerJoined(BigInteger) - Method in class com.sun.sgs.example.hack.client.gui.ChatPanel
Called when a player joins the chat.
playerLeft(BigInteger) - Method in interface com.sun.sgs.example.hack.client.ChatListener
Called when a player leaves the chat group.
playerLeft(BigInteger) - Method in class com.sun.sgs.example.hack.client.ChatManager
Called when a player leaves the chat group.
playerLeft(BigInteger) - Method in class com.sun.sgs.example.hack.client.gui.ChatPanel
Called when a player leaves the chat.
PlayerListener - Interface in com.sun.sgs.example.hack.client
This interface is used to listen for player character events.

R

receivedMessage(ByteBuffer) - Method in class com.sun.sgs.example.hack.client.Client
 
receivedMessage(ClientChannel, ByteBuffer) - Method in class com.sun.sgs.example.hack.client.CreatorChannelListener
Notifies this listener that some data has arrived from a given player.
receivedMessage(ClientChannel, ByteBuffer) - Method in class com.sun.sgs.example.hack.client.DungeonChannelListener
Notifies this listener that some data has arrived.
receivedMessage(ClientChannel, ByteBuffer) - Method in class com.sun.sgs.example.hack.client.LobbyChannelListener
Notifies this listener that some data has arrived from a given player.
reconnected() - Method in class com.sun.sgs.example.hack.client.Client
 
reconnecting() - Method in class com.sun.sgs.example.hack.client.Client
 
rollForStats(int) - Method in class com.sun.sgs.example.hack.client.CreatorManager
Requests new statistics be rolled for the given character

S

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.

U

updateCharacter() - Method in class com.sun.sgs.example.hack.client.GameManager
Called to update aspects of the player's currrent character.
updateCharacter() - Method in interface com.sun.sgs.example.hack.client.PlayerListener
Called to update aspects of the player's currrent character.
updateLobbyCount(int) - Method in class com.sun.sgs.example.hack.client.gui.LobbyPanel
Called when the lobby count changes.
updateSpaces(BoardSpace[]) - Method in interface com.sun.sgs.example.hack.client.BoardListener
Notifies the listener that some set of spaces on the board have changed.
updateSpaces(BoardSpace[]) - Method in class com.sun.sgs.example.hack.client.GameManager
Notifies the manager that some set of spaces on the board have changed.

V

valueChanged(ListSelectionEvent) - Method in class com.sun.sgs.example.hack.client.gui.LobbyPanel
Called when the selected item in the GUI list changes.
A B C D G H I J K L M N P R S U V 

Copyright © 2013. All Rights Reserved.