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

A

addCharacter(CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.BasicTile
Adds the given character to this tile if possible.
addCharacter(CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.ConnectorTile
Adds the given character to this tile if possible.
addCharacter(CharacterManager) - Method in interface com.sun.sgs.example.hack.server.level.Level
Adds a character to this level at some random point.
addCharacter(CharacterManager, int, int) - Method in interface com.sun.sgs.example.hack.server.level.Level
Adds a character to this level at the given location.
addCharacter(CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.SimpleLevel
Adds a character to this level at some random point.
addCharacter(CharacterManager, int, int) - Method in class com.sun.sgs.example.hack.server.level.SimpleLevel
Adds a character to this level at the given location.
addCharacter(CharacterManager) - Method in interface com.sun.sgs.example.hack.server.level.Tile
Adds the given character to this tile if possible.
addCharacter(PlayerCharacter) - Method in class com.sun.sgs.example.hack.server.PlayerCharacterManager
Adds a character to this manager.
addCharacterAt(int, int, CharacterManager) - Method in interface com.sun.sgs.example.hack.server.level.LevelBoard
Tries to add a character at the given location.
addCharacterAt(int, int, CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.SimpleBoard
Tries to add a character at the given location.
addGameChangeListener(GameChangeListener) - Method in class com.sun.sgs.example.hack.server.GameChangeManager
Adds a listener to this manager.
addItem(Item) - Method in class com.sun.sgs.example.hack.server.level.BasicTile
Adds the given item to this tile if possible.
addItem(Item) - Method in class com.sun.sgs.example.hack.server.level.ConnectorTile
Always returns false, since you can't have items on this tile.
addItem(Item) - Method in interface com.sun.sgs.example.hack.server.level.Level
Adds an item to this level at some random position.
addItem(Item, int, int) - Method in interface com.sun.sgs.example.hack.server.level.Level
Adds an item to this level at the given position.
addItem(Item) - Method in class com.sun.sgs.example.hack.server.level.SimpleLevel
Adds an item to this level at some random position.
addItem(Item, int, int) - Method in class com.sun.sgs.example.hack.server.level.SimpleLevel
Adds an item to this level at the given position.
addItem(Item) - Method in interface com.sun.sgs.example.hack.server.level.Tile
Adds the given item to this tile if possible.
addItemAt(int, int, Item) - Method in interface com.sun.sgs.example.hack.server.level.LevelBoard
Tries to add an item at the given location.
addItemAt(int, int, Item) - Method in class com.sun.sgs.example.hack.server.level.SimpleBoard
Tries to add an item at the given location.
AICharacter - Class in com.sun.sgs.example.hack.server.ai
This implementation of Character is the base for all AI creatures (ie, Monsters and NPCs).
AICharacter(int, String) - Constructor for class com.sun.sgs.example.hack.server.ai.AICharacter
Creates an instance of AICharacter.
AICharacterManager - Class in com.sun.sgs.example.hack.server.ai
This implementation of CharacterManager is used for all AI creatures.

B

BasicCharacterManager - Class in com.sun.sgs.example.hack.server
This abstract implementation of CharacterManager provides some of the common functionality for all managers, and is extended by the managers for players and AIs.
BasicCharacterManager(String) - Constructor for class com.sun.sgs.example.hack.server.BasicCharacterManager
Creates an instance of BasicCharacterManager.
BasicTile - Class in com.sun.sgs.example.hack.server.level
This is an abstract implementation of Tile that provides the base for PassableTile, ImpassableTile, etc.
BasicTile(int) - Constructor for class com.sun.sgs.example.hack.server.level.BasicTile
Creates an instance of BasicTile.
broadcastBoardUpdate(Channel, Collection<BoardSpace>) - Static method in class com.sun.sgs.example.hack.server.Messages
Sends updates about a Collection of spaces.
broadcastBoardUpdate(Collection<BoardSpace>) - Method in class com.sun.sgs.example.hack.server.Player
Sends a graphical update of specific spaces to the client.
broadcastGameAdded(Channel, String) - Static method in class com.sun.sgs.example.hack.server.Messages
Sends notice to a set of clients that a game has been added.
broadcastGameCountChanged(Channel, int, String) - Static method in class com.sun.sgs.example.hack.server.Messages
Sends notice to a set of clients that the membership of a given game has changed.
broadcastGameRemoved(Channel, String) - Static method in class com.sun.sgs.example.hack.server.Messages
Sends notice to a set of clients that a game has been removed.
broadcastPlayerID(Channel, String, BigInteger) - Static method in class com.sun.sgs.example.hack.server.Messages
Sends the command to add the mapping from player ID to player name to all the clients on the provided channel.
broadcastPlayerJoined(Channel, BigInteger) - Static method in class com.sun.sgs.example.hack.server.Messages
Notifies all the sessons on the channel that the provided ClientSession has joined.
broadcastPlayerLeft(Channel, BigInteger) - Static method in class com.sun.sgs.example.hack.server.Messages
Notifies all the sessons on the channel that the provided ClientSession has left.
broadcastUpdates(Collection<BoardSpace>) - Method in class com.sun.sgs.example.hack.server.ai.AICharacterManager
Sends space updates to this AI creature.
broadcastUpdates(Collection<BoardSpace>) - Method in interface com.sun.sgs.example.hack.server.CharacterManager
Sends space updates to the backing controller (eg, a player) of this manager.
broadcastUpdates(Collection<BoardSpace>) - Method in class com.sun.sgs.example.hack.server.PlayerCharacterManager
Sends space updates to the player.

C

canOccupy(CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.BasicTile
Checks if the there is anything currently occupying this tile that would keep the character from occupying it.
canOccupy(CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.ConnectorTile
Always returns true, because connection points are, by definition, spaces you can occupy.
canOccupy(CharacterManager) - Method in interface com.sun.sgs.example.hack.server.level.Tile
Returns whether or not this tile, in its current state, can be occupied by the given character.
CHANGE_MANAGER_FREQUENCY - Static variable in class com.sun.sgs.example.hack.server.GameChangeManager
The default number of milliseconds between update calls.
CHANGE_MANAGER_FREQUENCY - Static variable in class com.sun.sgs.example.hack.server.GameSimBoot
The number of milliseconds between update calls to the membership change manager.
Character - Interface in com.sun.sgs.example.hack.server
The is the Character interface.
CharacterManager - Interface in com.sun.sgs.example.hack.server
This interface defines all classes that manage Character instances.
charMoveTo(CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.BasicTile
Test to move the given character to this tile.
CollectMonster - Class in com.sun.sgs.example.hack.server.ai
This is a very simple monster that implements the "yellow box" logic for the game of secret collect.
CollectMonster(AICharacterManager) - Constructor for class com.sun.sgs.example.hack.server.ai.CollectMonster
Creates an instance of CollectMonster using the default identifier.
CollectMonster(int, AICharacterManager) - Constructor for class com.sun.sgs.example.hack.server.ai.CollectMonster
Creates an instance of CollectMonster based on the given identifier.
collidedFrom(Character) - Method in class com.sun.sgs.example.hack.server.ai.CollectMonster
Called when the given character collides with us.
collidedFrom(Character) - Method in class com.sun.sgs.example.hack.server.ai.DemonMonster
Called when a character collides into us.
collidedFrom(Character) - Method in class com.sun.sgs.example.hack.server.ai.NPCharacter
Called when the given character collides with us.
collidedFrom(Character) - Method in class com.sun.sgs.example.hack.server.ai.RodentMonster
Called when a character collides into us.
collidedFrom(Character) - Method in interface com.sun.sgs.example.hack.server.Character
Called when the given character collides with us.
collidedFrom(Character) - Method in class com.sun.sgs.example.hack.server.PlayerCharacter
Called when a character collides into us.
collidedInto(Character) - Method in class com.sun.sgs.example.hack.server.ai.CollectMonster
Called when you collide with the character.
collidedInto(Character) - Method in class com.sun.sgs.example.hack.server.ai.DemonMonster
Called when you collide with the character
collidedInto(Character) - Method in class com.sun.sgs.example.hack.server.ai.NPCharacter
Called when you collide with the character.
collidedInto(Character) - Method in class com.sun.sgs.example.hack.server.ai.RodentMonster
Called when you collide with the character.
collidedInto(Character) - Method in interface com.sun.sgs.example.hack.server.Character
Called when you collide with the character.
collidedInto(Character) - Method in class com.sun.sgs.example.hack.server.PlayerCharacter
Called when you collide into the character.
com.sun.sgs.example.hack.server - package com.sun.sgs.example.hack.server
 
com.sun.sgs.example.hack.server.ai - package com.sun.sgs.example.hack.server.ai
 
com.sun.sgs.example.hack.server.level - package com.sun.sgs.example.hack.server.level
 
Connector - Interface in com.sun.sgs.example.hack.server.level
A Connector is something that moves a Character from one point in a game to another, or to another game.
ConnectorTile - Class in com.sun.sgs.example.hack.server.level
This implementation of Tile is used to handle interaction with Connectors.
ConnectorTile(int, Connector) - Constructor for class com.sun.sgs.example.hack.server.level.ConnectorTile
Creates an instance of ConnectorTile.
Creator - Class in com.sun.sgs.example.hack.server
The creator is where all players can create new characters.
CreatorMessageHandler - Class in com.sun.sgs.example.hack.server
This MessageHandler is used by Creator to define and handle all messages sent from the client.
CreatorMessageHandler() - Constructor for class com.sun.sgs.example.hack.server.CreatorMessageHandler
Creates a new CreatorMessageHandler.

D

DemonMonster - Class in com.sun.sgs.example.hack.server.ai
This is an implementation of MonsterCharacter that models a demon creature that is strong, retaliatory, but only somewhat mobile.
DemonMonster(AICharacterManager) - Constructor for class com.sun.sgs.example.hack.server.ai.DemonMonster
Creates an instance of DemonMonster using the default identifier.
DemonMonster(int, AICharacterManager) - Constructor for class com.sun.sgs.example.hack.server.ai.DemonMonster
Creates an instance of DemonMonster.
disconnected(boolean) - Method in class com.sun.sgs.example.hack.server.Player
Removes this Player from the current game.
Dungeon - Class in com.sun.sgs.example.hack.server
This implementation of Game is what players actually play with.
Dungeon(String, int, GameConnector) - Constructor for class com.sun.sgs.example.hack.server.Dungeon
Creates a new instance of a Dungeon.
DUNGEON_FILE_DEFAULT - Static variable in class com.sun.sgs.example.hack.server.GameSimBoot
Standard location for the "dungeons file" that defines all the games available through this app instance.
DUNGEON_FILE_PROPERTY - Static variable in class com.sun.sgs.example.hack.server.GameSimBoot
The property you define to override the standard dungeons file location.
DungeonDataLoader - Class in com.sun.sgs.example.hack.server
This utility class provides static interfaces for loading the simple dungeon and sprite file formats used to setup an app.
DungeonDataLoader() - Constructor for class com.sun.sgs.example.hack.server.DungeonDataLoader
 
DungeonFactory - Class in com.sun.sgs.example.hack.server.level
This is a fairly simple static factory class that handles loading the contents of a single Dungeon.
DungeonFactory() - Constructor for class com.sun.sgs.example.hack.server.level.DungeonFactory
 
DungeonMessageHandler - Class in com.sun.sgs.example.hack.server
This MessageHandler is used by Dungeon to define and handle all messages sent from the client.
DungeonMessageHandler(Dungeon) - Constructor for class com.sun.sgs.example.hack.server.DungeonMessageHandler
Creates a new DungeonMessageHandler.

E

enteredConnection(CharacterManager) - Method in class com.sun.sgs.example.hack.server.GameConnector
Transitions the given character to the game if they're in the level, and to the level if they're in the game.
enteredConnection(CharacterManager) - Method in interface com.sun.sgs.example.hack.server.level.Connector
Transitions the given character from one point to another.
enteredConnection(CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.OneWayConnector
Transitions the given character to the target point.
enteredConnection(CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.PlayerConnector
Transitions the given character to the other point connected to their current location, checking first that this character belongs to a player.
enteredConnection(CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.SimpleConnector
Transitions the given character to the other point connected to their current location.
equals(Object) - Method in class com.sun.sgs.example.hack.server.BasicCharacterManager
Compares another instance of BasicCharacterManager against this one for equality.

G

Game - Interface in com.sun.sgs.example.hack.server
This is the generic interface for a game.
gameAdded(Collection<String>) - Method in interface com.sun.sgs.example.hack.server.GameChangeListener
Notifies the listener that games were added to the app.
gameAdded(Collection<String>) - Method in class com.sun.sgs.example.hack.server.Lobby
Notifies the listener that some games were added to the app.
GameChangeListener - Interface in com.sun.sgs.example.hack.server
This interface represents anything that listens for updates to changing details of games.
GameChangeManager - Class in com.sun.sgs.example.hack.server
This class acts as an aggregator for game updates.
GameConnector - Class in com.sun.sgs.example.hack.server
This is a Connector that is used to connect a game to an initial Level.
GameConnector(Game, Level, int, int) - Constructor for class com.sun.sgs.example.hack.server.GameConnector
Creates an instance of GameConnector.
gameRemoved(Collection<String>) - Method in interface com.sun.sgs.example.hack.server.GameChangeListener
Notifies the listener that games were removed from the app.
gameRemoved(Collection<String>) - Method in class com.sun.sgs.example.hack.server.Lobby
Notifies the listener that some games were removed from the app.
GameSimBoot - Class in com.sun.sgs.example.hack.server
This is the root element of the game demo app.
GameSimBoot() - Constructor for class com.sun.sgs.example.hack.server.GameSimBoot
 
getAt(int, int) - Method in class com.sun.sgs.example.hack.server.level.SimpleBoard
Returns the stack of identifiers at the given position.
getBoardSnapshot() - Method in interface com.sun.sgs.example.hack.server.level.Level
Returns a snapshot (ie, static) view of the level.
getBoardSnapshot() - Method in class com.sun.sgs.example.hack.server.level.SimpleLevel
Returns a snapshot (ie, static) view of the level.
getCharacterCount() - Method in class com.sun.sgs.example.hack.server.PlayerCharacterManager
Returns the number of characters managed by this class.
getCharacterManager() - Method in class com.sun.sgs.example.hack.server.Player
Returns the CharacterManager that this Player uses to manage their Characters.
getCharacterNames() - Method in class com.sun.sgs.example.hack.server.PlayerCharacterManager
Returns the names of the characters managed by this class.
getCharacters() - Method in class com.sun.sgs.example.hack.server.PlayerCharacterManager
Returns the characters managed by this class.
getCurrentCharacter() - Method in class com.sun.sgs.example.hack.server.ai.AICharacterManager
Returns the current character being played through this manager.
getCurrentCharacter() - Method in interface com.sun.sgs.example.hack.server.CharacterManager
Returns the current character being played through this manager.
getCurrentCharacter() - Method in class com.sun.sgs.example.hack.server.PlayerCharacterManager
Returns the current character being played through this manager.
getCurrentLevel() - Method in class com.sun.sgs.example.hack.server.BasicCharacterManager
Returns the current level where this manager is playing.
getCurrentLevel() - Method in interface com.sun.sgs.example.hack.server.CharacterManager
Returns the current level where this manager is playing.
getCurrentSession() - Method in class com.sun.sgs.example.hack.server.Player
Returns this Player's current UserID.
getHeight() - Method in class com.sun.sgs.example.hack.server.level.SimpleBoard
Returns the height of this board.
getID() - Method in class com.sun.sgs.example.hack.server.ai.AICharacter
Returns this entity's identifier.
getID() - Method in interface com.sun.sgs.example.hack.server.Character
Returns this entity's identifier.
getID() - Method in interface com.sun.sgs.example.hack.server.Item
Returns the item's identifier.
getID() - Method in class com.sun.sgs.example.hack.server.level.BasicTile
Returns the identifier for this tile.
getID() - Method in class com.sun.sgs.example.hack.server.level.ConnectorTile
Returns the identifier for this tile.
getID() - Method in interface com.sun.sgs.example.hack.server.level.Tile
Returns the identifier for this tile.
getID() - Method in class com.sun.sgs.example.hack.server.PlayerCharacter
Returns this entity's identifier.
getID() - Method in class com.sun.sgs.example.hack.server.SimpleItem
Returns the item's identifier.
getIdStack() - Method in class com.sun.sgs.example.hack.server.level.BasicTile
Returns a stack of identifiers, specifying everything on this Tile.
getIdStack() - Method in class com.sun.sgs.example.hack.server.level.ConnectorTile
Returns a stack of identifiers, specifying everything on this Tile.
getIdStack() - Method in interface com.sun.sgs.example.hack.server.level.Tile
Returns a stack of identifiers, specifying everything on this Tile.
getImpassableSet(String) - Static method in class com.sun.sgs.example.hack.server.DungeonDataLoader
Returns the set of impassible tiles for the dungeon stored in the provided file.
getInstance() - Static method in class com.sun.sgs.example.hack.server.Creator
Provides access to the single instance of Creator.
getInstance() - Static method in class com.sun.sgs.example.hack.server.GameChangeManager
Provides access to the single instance of GameChangeManager.
getInstance(GameChangeManager) - Static method in class com.sun.sgs.example.hack.server.Lobby
Provides access to the single instance of Lobby.
getInstance(String) - Static method in class com.sun.sgs.example.hack.server.Player
Looks for an existing instance of Player for the given name, and creates one if an instance doesn't already exist.
getItem(CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.BasicTile
Tries to take an item on this tile.
getItem(CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.ConnectorTile
This always fails, since no items are allowed on this tile.
getItem(int, int, CharacterManager) - Method in interface com.sun.sgs.example.hack.server.level.LevelBoard
Gets the items available at the given location.
getItem(int, int, CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.SimpleBoard
Tries to take an item on this tile.
getItem(CharacterManager) - Method in interface com.sun.sgs.example.hack.server.level.Tile
Tries to take an item on this tile.
getLevelXPos() - Method in class com.sun.sgs.example.hack.server.BasicCharacterManager
Returns the current character's x-coordinate.
getLevelXPos() - Method in interface com.sun.sgs.example.hack.server.CharacterManager
Returns the current character's x-coordinate.
getLevelYPos() - Method in class com.sun.sgs.example.hack.server.BasicCharacterManager
Returns the current character's x-coordinate.
getLevelYPos() - Method in interface com.sun.sgs.example.hack.server.CharacterManager
Returns the current character's x-coordinate.
getManager() - Method in class com.sun.sgs.example.hack.server.ai.MonsterCharacter
Returns the character manager for this character.
getMonster(int, String) - Static method in class com.sun.sgs.example.hack.server.ai.MonsterFactory
Creates an instance of AICharacterManager and returns a reference to the new instance
getName() - Method in class com.sun.sgs.example.hack.server.ai.AICharacter
Returns the name of this entity.
getName() - Method in interface com.sun.sgs.example.hack.server.Character
Returns the name of this entity.
getName() - Method in class com.sun.sgs.example.hack.server.Creator
Returns the name of the creator.
getName() - Method in class com.sun.sgs.example.hack.server.Dungeon
Returns the name of this dungeon.
getName() - Method in interface com.sun.sgs.example.hack.server.Game
Returns the name of this Game.
getName() - Method in interface com.sun.sgs.example.hack.server.level.Level
Returns the name of this level.
getName() - Method in class com.sun.sgs.example.hack.server.level.SimpleLevel
Returns the name of this level.
getName() - Method in class com.sun.sgs.example.hack.server.Lobby
Returns the name of the lobby.
getName() - Method in class com.sun.sgs.example.hack.server.Player
Returns the user's name.
getName() - Method in class com.sun.sgs.example.hack.server.PlayerCharacter
Returns the name of this entity.
getPlayer() - Method in class com.sun.sgs.example.hack.server.PlayerCharacterManager
Returns a reference to the Player that owns this manager.
getSpriteMap() - Method in class com.sun.sgs.example.hack.server.SpriteMap
Returns the map from sprite identifier to sprite image bytes.
getSpriteSize() - Method in class com.sun.sgs.example.hack.server.SpriteMap
Returns the dimension of the sprites in this map.
getStatistics() - Method in class com.sun.sgs.example.hack.server.ai.CollectMonster
Returns the statistics associated with this character.
getStatistics() - Method in class com.sun.sgs.example.hack.server.ai.DemonMonster
Returns this character's statistics.
getStatistics() - Method in class com.sun.sgs.example.hack.server.ai.NPCharacter
Returns the statistics associated with this character.
getStatistics() - Method in class com.sun.sgs.example.hack.server.ai.RodentMonster
Returns the statistics associated with this character.
getStatistics() - Method in interface com.sun.sgs.example.hack.server.Character
Returns the statistics associated with this character.
getStatistics() - Method in class com.sun.sgs.example.hack.server.PlayerCharacter
Returns the statistics associated with this character.
getWidth() - Method in class com.sun.sgs.example.hack.server.level.SimpleBoard
Returns the width of this board.
giveTo(CharacterManager) - Method in interface com.sun.sgs.example.hack.server.Item
Called when this Item is being given to the character.
giveTo(CharacterManager) - Method in class com.sun.sgs.example.hack.server.SimpleItem
Called when this Item is being given to the character.

H

handleEntered(CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.SimpleConnector
Figures out which end to send the character to, based on which end they're on right now, and moves the character.
handleMessage(Player, byte[]) - Method in class com.sun.sgs.example.hack.server.CreatorMessageHandler
Called when the given Player has a message to handle.
handleMessage(Player, byte[]) - Method in class com.sun.sgs.example.hack.server.DungeonMessageHandler
Called when the given Player has a message to handle.
handleMessage(Player, byte[]) - Method in class com.sun.sgs.example.hack.server.LobbyMessageHandler
Called when the given Player has a message to handle.
handleMessage(Player, byte[]) - Method in interface com.sun.sgs.example.hack.server.MessageHandler
Called to handle a message.
hashCode() - Method in class com.sun.sgs.example.hack.server.BasicCharacterManager
Returns a hash code for this manager, which is calculated by getting the hash code on the value from toString.

I

IDENTIFIER - Static variable in class com.sun.sgs.example.hack.server.Creator
The identifier for the creator
IDENTIFIER - Static variable in class com.sun.sgs.example.hack.server.GameChangeManager
The identifier for the single manager.
IDENTIFIER - Static variable in class com.sun.sgs.example.hack.server.Lobby
The identifier for the lobby
ImpassableTile - Class in com.sun.sgs.example.hack.server.level
This implementation of Tile represents a space that no character may pass, unless they override this behavior.
ImpassableTile(int) - Constructor for class com.sun.sgs.example.hack.server.level.ImpassableTile
Creates an instance of ImpassableTile
initialize(Properties) - Method in class com.sun.sgs.example.hack.server.GameSimBoot
Called by the game server to actually start this game application.
isDark() - Method in class com.sun.sgs.example.hack.server.level.SimpleBoard
Returns whether or not this board is dark.
isPassable(CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.ConnectorTile
Always returns true, because connection points are, by definition, passable.
isPassable(CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.ImpassableTile
Typically returns false, since this space is always impassable.
isPassable(CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.PassableTile
Always returns true, since this space is always passable.
isPassable(CharacterManager) - Method in interface com.sun.sgs.example.hack.server.level.Tile
Returns whether or not this space could be entered by the given character.
isPlaying() - Method in class com.sun.sgs.example.hack.server.Player
Returns whether this Player is currently logged in and playing.
Item - Interface in com.sun.sgs.example.hack.server
This is the interface for all items in the game.

J

join(Player) - Method in class com.sun.sgs.example.hack.server.Creator
Joins a player to the creator.
join(Player) - Method in class com.sun.sgs.example.hack.server.Dungeon
Adds the given Player to this Game.
join(Player) - Method in interface com.sun.sgs.example.hack.server.Game
Joins the given Player to this Game.
join(Player) - Method in class com.sun.sgs.example.hack.server.Lobby
Joins a player to the lobby.

L

leave(Player) - Method in class com.sun.sgs.example.hack.server.Creator
Removes a player from the creator.
leave(Player) - Method in class com.sun.sgs.example.hack.server.Dungeon
Removed the given Player from this Game.
leave(Player) - Method in interface com.sun.sgs.example.hack.server.Game
Removes the given Player from this Game.
leave(Player) - Method in class com.sun.sgs.example.hack.server.Lobby
Removes the player from the lobby.
leaveCurrentLevel() - Method in class com.sun.sgs.example.hack.server.Player
This is used to handle leaving dungeons before we can actually call the moveToGame (eg, when we die).
Level - Interface in com.sun.sgs.example.hack.server.level
This interface represents a single level in a Dungeon.
LevelBoard - Interface in com.sun.sgs.example.hack.server.level
This is an extension to Board that is used to manage levels.
LevelBoard.ActionResult - Enum in com.sun.sgs.example.hack.server.level
The possible results of taking an action on this board.
loadDungeon(StreamTokenizer, String, Set<Integer>, Game) - Static method in class com.sun.sgs.example.hack.server.level.DungeonFactory
This method takes a StreamTokenizer that is setup at the start of a single dungeon file, and loads all the data, creating the AIs, stitching together all connectors between levels, etc.
loadSpriteMap(String, int) - Static method in class com.sun.sgs.example.hack.server.DungeonDataLoader
Loads a sprite map file.
Lobby - Class in com.sun.sgs.example.hack.server
The lobby is where all players go to join a game, and it manages players while they're deciding which game to join.
LobbyMessageHandler - Class in com.sun.sgs.example.hack.server
This MessageHandler is used by Lobby to define and handle all messages sent from the client.
LobbyMessageHandler() - Constructor for class com.sun.sgs.example.hack.server.LobbyMessageHandler
Creates a new LobbyMessageHandler.
loggedIn(ClientSession) - Method in class com.sun.sgs.example.hack.server.GameSimBoot
Called when a new user joins the game app.
logger - Static variable in class com.sun.sgs.example.hack.server.level.DungeonFactory
 

M

membershipChanged(Collection<GameMembershipDetail>) - Method in interface com.sun.sgs.example.hack.server.GameChangeListener
Notifies the listener that some game membership information has changed.
membershipChanged(Collection<GameMembershipDetail>) - Method in class com.sun.sgs.example.hack.server.Lobby
Called when it's time to send out membership change messages.
MessageHandler - Interface in com.sun.sgs.example.hack.server
This interface is used by classes that consume messages.
Messages - Class in com.sun.sgs.example.hack.server
This class provides a single point for static methods that send messages the client.
MonsterCharacter - Class in com.sun.sgs.example.hack.server.ai
This abstract implementation of AICharacter is the base for all Monsters.
MonsterCharacter(int, String, AICharacterManager) - Constructor for class com.sun.sgs.example.hack.server.ai.MonsterCharacter
Creates an instance of MonsterCharacter.
MonsterFactory - Class in com.sun.sgs.example.hack.server.ai
This class is a prototype example of a pluggable object creator; so you can easily introduce new kinds of monsters and reference them, but for now just making sure that we use a factory gives us that flexability in the future.
MonsterFactory() - Constructor for class com.sun.sgs.example.hack.server.ai.MonsterFactory
 
move(CharacterManager, KeyMessages.Type) - Method in interface com.sun.sgs.example.hack.server.level.Level
Tries to move the given character in the given direction
move(CharacterManager, KeyMessages.Type) - Method in class com.sun.sgs.example.hack.server.level.SimpleLevel
Tries to move the given character in the given direction
MoveGameTask - Class in com.sun.sgs.example.hack.server
 
MoveGameTask(Player, Game) - Constructor for class com.sun.sgs.example.hack.server.MoveGameTask
 
moveTo(CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.ConnectorTile
Test to move the given character to this tile.
moveTo(CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.ImpassableTile
Test to move the given character onto this tile.
moveTo(int, int, CharacterManager) - Method in interface com.sun.sgs.example.hack.server.level.LevelBoard
Moves the given character to the given location.
moveTo(CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.PassableTile
Test to move the given character onto this tile.
moveTo(int, int, CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.SimpleBoard
Moves the given character to the given location.
moveTo(CharacterManager) - Method in interface com.sun.sgs.example.hack.server.level.Tile
Test to move the given character to this tile.
moveToGame(Game) - Method in class com.sun.sgs.example.hack.server.Player
Moves the player into the provided Game.

N

NAME_PREFIX - Static variable in interface com.sun.sgs.example.hack.server.Game
The standard namespace prefix for all games.
NAME_PREFIX - Static variable in interface com.sun.sgs.example.hack.server.level.Level
The standard name prefix for all levels.
NAME_PREFIX - Static variable in class com.sun.sgs.example.hack.server.Player
The standard namespace prefix for all players.
NAME_PREFIX - Static variable in class com.sun.sgs.example.hack.server.SpriteMap
The standard namespace prefix.
newInstance() - Static method in class com.sun.sgs.example.hack.server.ai.AICharacterManager
Returns a reference to a new instance of AICharacterManager that is registered correctly.
notifyCharacterDied() - Method in class com.sun.sgs.example.hack.server.ai.AICharacterManager
Notify the manager that its character has died.
notifyGameAdded(String) - Method in class com.sun.sgs.example.hack.server.GameChangeManager
Notifies the manager that a game was added to the app.
notifyGameRemoved(String) - Method in class com.sun.sgs.example.hack.server.GameChangeManager
Notifies the manager that a game was removed from the app.
notifyMembershipChanged(GameMembershipDetail) - Method in class com.sun.sgs.example.hack.server.GameChangeManager
Notifies the manager that membership detail has changed in a specific game.
notifyStatsChanged() - Method in class com.sun.sgs.example.hack.server.ai.MonsterCharacter
This method tends to have common behavior, so a default implementation is provided here.
notifyStatsChanged() - Method in class com.sun.sgs.example.hack.server.ai.NPCharacter
This method tells the character that their stats have changed.
notifyStatsChanged() - Method in interface com.sun.sgs.example.hack.server.Character
This method tells the character that their stats have changed.
notifyStatsChanged() - Method in class com.sun.sgs.example.hack.server.PlayerCharacter
This method tells the character that their stats have changed.
notifyUnhandledCommand(String, Commands.Command) - Method in class com.sun.sgs.example.hack.server.Player
Notifies the client that they have sent an unhandled command to the specified channel.
NPCharacter - Class in com.sun.sgs.example.hack.server.ai
This is an implementation of AICharacter that supports Non-Player Characters.
NPCharacter(int, String, String[], AICharacterManager) - Constructor for class com.sun.sgs.example.hack.server.ai.NPCharacter
Creates an instance of NPCharacter.
NSidedDie - Class in com.sun.sgs.example.hack.server
This is a simple utility class that simulates rolling common dies.
numPlayers() - Method in class com.sun.sgs.example.hack.server.Creator
Returns the number of players currently in the creator.
numPlayers() - Method in class com.sun.sgs.example.hack.server.Dungeon
Returns the number of players currently in this dungeon.
numPlayers() - Method in interface com.sun.sgs.example.hack.server.Game
Returns the number of players in this Game.
numPlayers() - Method in class com.sun.sgs.example.hack.server.Lobby
Returns the number of players currently in the lobby.

O

OneWayConnector - Class in com.sun.sgs.example.hack.server.level
This is a Connector that transitions in only one direction.
OneWayConnector(Level, int, int) - Constructor for class com.sun.sgs.example.hack.server.level.OneWayConnector
Creates an instance of OneWayConnector.

P

parse(StreamTokenizer, Set<Integer>) - Static method in class com.sun.sgs.example.hack.server.level.SimpleBoard
Creates a new instance of SimpleBoard from the given tokenized stream.
PassableTile - Class in com.sun.sgs.example.hack.server.level
This implementation of Tile represents a space that any single character may occupy.
PassableTile(int) - Constructor for class com.sun.sgs.example.hack.server.level.PassableTile
Creates an instance of PassableTile
Player - Class in com.sun.sgs.example.hack.server
This class represents a single player (user) in the system.
PlayerCharacter - Class in com.sun.sgs.example.hack.server
This is an implementation of Character used by all Players.
PlayerCharacter(Player, int, CharacterStats) - Constructor for class com.sun.sgs.example.hack.server.PlayerCharacter
Creates an instance of PlayerCharacter.
PlayerCharacterManager - Class in com.sun.sgs.example.hack.server
This is an implementation of CharacterManager used to manage PlayerCharacters.
PlayerCharacterManager(Player) - Constructor for class com.sun.sgs.example.hack.server.PlayerCharacterManager
Creates an instance of PlayerCharacterManager.
PlayerConnector - Class in com.sun.sgs.example.hack.server.level
This is an extension of SimpleConnector that only allows PlayerCharacters to enter.
PlayerConnector(Level, int, int, Level, int, int) - Constructor for class com.sun.sgs.example.hack.server.level.PlayerConnector
Creates an instance of PlayerConnector.

R

receivedMessage(Channel, ClientSession, ByteBuffer) - Method in class com.sun.sgs.example.hack.server.level.SimpleLevel
 
receivedMessage(ByteBuffer) - Method in class com.sun.sgs.example.hack.server.Player
Called when data arrives from the a user.
regenerate() - Method in class com.sun.sgs.example.hack.server.ai.AICharacter
Resets the character's details and makes them ready to re-enter a level.
regenerate() - Method in class com.sun.sgs.example.hack.server.ai.CollectMonster
This has no affect on CollectMonster since they have no meaningful statistics.
regenerate() - Method in class com.sun.sgs.example.hack.server.ai.DemonMonster
Re-generates the character by creating a new set of statistics.
regenerate() - Method in class com.sun.sgs.example.hack.server.ai.NPCharacter
This has no affect on NPCharacter since NPCs have no meaningful statistics.
regenerate() - Method in class com.sun.sgs.example.hack.server.ai.RodentMonster
Re-generates the character by creating a new set of statistics.
removeCharacter(CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.BasicTile
Removes the given character from this tile, if and only if this character is already on this tile.
removeCharacter(CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.ConnectorTile
Removes the given character from this tile, if and only if this character is already on this tile.
removeCharacter(CharacterManager) - Method in interface com.sun.sgs.example.hack.server.level.Level
Removes a character from the level.
removeCharacter(CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.SimpleLevel
Removes a character from the level.
removeCharacter(CharacterManager) - Method in interface com.sun.sgs.example.hack.server.level.Tile
Removes the given character from this tile, if and only if this character is already on this tile.
removeCharacter(String) - Method in class com.sun.sgs.example.hack.server.PlayerCharacterManager
Tries to remove the given sharacter from the manager.
removeCharacterAt(int, int, CharacterManager) - Method in interface com.sun.sgs.example.hack.server.level.LevelBoard
Tries to remove a character from the given location.
removeCharacterAt(int, int, CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.SimpleBoard
Tries to remove a character from the given location.
removeItem(Item) - Method in class com.sun.sgs.example.hack.server.level.BasicTile
Removes the given item from this tile, if and only if this item is already on this tile.
removeItem(Item) - Method in class com.sun.sgs.example.hack.server.level.ConnectorTile
Always returns false, since you can't have items on this tile.
removeItem(Item) - Method in interface com.sun.sgs.example.hack.server.level.Tile
Removes the given item from this tile, if and only if this item is already on this tile.
removeItemAt(int, int, Item) - Method in interface com.sun.sgs.example.hack.server.level.LevelBoard
Tries to remove an item from the given location.
removeItemAt(int, int, Item) - Method in class com.sun.sgs.example.hack.server.level.SimpleBoard
Tries to remove an item from the given location.
RodentMonster - Class in com.sun.sgs.example.hack.server.ai
This is an implementation of MonsterCharacter that supports behavior for a rodent.
RodentMonster(AICharacterManager) - Constructor for class com.sun.sgs.example.hack.server.ai.RodentMonster
Creates an instance of RodentMonster with the default identifier.
RodentMonster(int, AICharacterManager) - Constructor for class com.sun.sgs.example.hack.server.ai.RodentMonster
Creates an instance of RodentMonster.
roll10Sided() - Static method in class com.sun.sgs.example.hack.server.NSidedDie
Provides the result of rolling a 10-sided die.
roll12Sided() - Static method in class com.sun.sgs.example.hack.server.NSidedDie
Provides the result of rolling a 12-sided die.
roll20Sided() - Static method in class com.sun.sgs.example.hack.server.NSidedDie
Provides the result of rolling a 20-sided die.
roll4Sided() - Static method in class com.sun.sgs.example.hack.server.NSidedDie
Provides the result of rolling a 4-sided die.
roll6Sided() - Static method in class com.sun.sgs.example.hack.server.NSidedDie
Provides the result of rolling a 6-sided die.
roll8Sided() - Static method in class com.sun.sgs.example.hack.server.NSidedDie
Provides the result of rolling an 8-sided die.
rollNSided(int) - Static method in class com.sun.sgs.example.hack.server.NSidedDie
Provides the results of rolling an N-sided die.
run() - Method in class com.sun.sgs.example.hack.server.ai.AICharacter
Called periodically to give this character a chance to do some processing.
run() - Method in class com.sun.sgs.example.hack.server.ai.AICharacterManager
Tells the AI creature that it's their turn to take some action.
run() - Method in class com.sun.sgs.example.hack.server.ai.CollectMonster
Called periodically, but this is always ignored, because this creature never moves.
run() - Method in class com.sun.sgs.example.hack.server.ai.DemonMonster
Calls the character to make a move, which may result in moving or attacking.
run() - Method in class com.sun.sgs.example.hack.server.ai.NPCharacter
Called periodically to give this character a chance to walk around the level.
run() - Method in class com.sun.sgs.example.hack.server.ai.RodentMonster
There is a good chance that we'll move
run() - Method in class com.sun.sgs.example.hack.server.GameChangeManager
Called at periodic intervals by the system, this method notifies all registered listeners if there have been any updates since the last notification.
run() - Method in class com.sun.sgs.example.hack.server.MoveGameTask
 

S

sendBoard(Board) - Method in class com.sun.sgs.example.hack.server.ai.AICharacterManager
Sends the given board to this AI creature.
sendBoard(Board) - Method in interface com.sun.sgs.example.hack.server.CharacterManager
Sends the given board to the backing controller (eg, a player) of this manager.
sendBoard(ClientSession, Board) - Static method in class com.sun.sgs.example.hack.server.Messages
Sends a complete Board to a client.
sendBoard(Board) - Method in class com.sun.sgs.example.hack.server.Player
Sends a complete Board to the client.
sendBoard(Board) - Method in class com.sun.sgs.example.hack.server.PlayerCharacterManager
Sends the given board to the player.
sendBulkPlayerIDs(ClientSession, Map<ManagedReference<ClientSession>, String>) - Static method in class com.sun.sgs.example.hack.server.Messages
Sends the command to add the all of the provided mappings from player ID to player name to the specified client.
sendCharacter(ClientSession, int, CharacterStats) - Static method in class com.sun.sgs.example.hack.server.Messages
Sends detail about a single character.
sendCharacter(PlayerCharacter) - Method in class com.sun.sgs.example.hack.server.Player
Sends the statistics of the given character to the client.
sendCharacter() - Method in class com.sun.sgs.example.hack.server.PlayerCharacterManager
Sends the current character's stats to the player.
sendCharacterStats(int, CharacterStats) - Method in class com.sun.sgs.example.hack.server.Player
Sends a set of character statistics to the player.
sendGameListing(ClientSession, Collection<GameMembershipDetail>) - Static method in class com.sun.sgs.example.hack.server.Messages
Sends the initial welcome message when a client enters the lobby.
sendMessage(String) - Method in class com.sun.sgs.example.hack.server.ai.CollectMonster
Sends a text message to the character's manager.
sendMessage(String) - Method in class com.sun.sgs.example.hack.server.ai.DemonMonster
Sends a message to this character.
sendMessage(String) - Method in class com.sun.sgs.example.hack.server.ai.NPCharacter
Sends a text message to the character's manager.
sendMessage(String) - Method in class com.sun.sgs.example.hack.server.ai.RodentMonster
Sends a text message to the character's manager.
sendMessage(String) - Method in interface com.sun.sgs.example.hack.server.Character
Sends a text message to the character's manager.
sendMessage(String) - Method in class com.sun.sgs.example.hack.server.PlayerCharacter
Sends a text message to the character's player.
sendNotificationOfUnhandledCommand(ClientSession, String, Commands.Command) - Static method in class com.sun.sgs.example.hack.server.Messages
 
sendPlayableCharacters(ClientSession, Collection<CharacterStats>) - Static method in class com.sun.sgs.example.hack.server.Messages
Sends a Collection of player statistics.
sendServerMessage(ClientSession, String) - Static method in class com.sun.sgs.example.hack.server.Messages
Sends a text message to the client.
sendServerMessage(String) - Method in class com.sun.sgs.example.hack.server.Player
Sends a server text message (different from a client chat message) to the client.
sendSpriteMap(ClientSession, SpriteMap) - Static method in class com.sun.sgs.example.hack.server.Messages
Sends a new mapping from identifiers to sprite images.
setAsConnector(int, int, Connector) - Method in class com.sun.sgs.example.hack.server.level.SimpleBoard
Sets the given space as a connector.
setBoard(LevelBoard) - Method in class com.sun.sgs.example.hack.server.level.SimpleLevel
Sets the Board that maintains state for this level.
setCharacter(AICharacter) - Method in class com.sun.sgs.example.hack.server.ai.AICharacterManager
Sets the character for this manager.
setCurrentCharacter(String) - Method in class com.sun.sgs.example.hack.server.PlayerCharacterManager
Sets the current character, if the given name is known.
setCurrentLevel(Level) - Method in class com.sun.sgs.example.hack.server.BasicCharacterManager
Sets the current level.
setCurrentLevel(Level) - Method in interface com.sun.sgs.example.hack.server.CharacterManager
Sets the current level.
setCurrentSession(ClientSession) - Method in class com.sun.sgs.example.hack.server.Player
Sets the current Session for this Player, which changes from session to session.
setLevelPosition(int, int) - Method in class com.sun.sgs.example.hack.server.BasicCharacterManager
Sets the current character's position on the current level.
setLevelPosition(int, int) - Method in interface com.sun.sgs.example.hack.server.CharacterManager
Sets the current character's position on the current level.
setupDungeons(String, String, Lobby, GameChangeManager) - Static method in class com.sun.sgs.example.hack.server.DungeonDataLoader
This will load the given file, and use its contents to load all the dungeons and sprite maps, handling all registration and task installation required.
SimpleBoard - Class in com.sun.sgs.example.hack.server.level
A server-side LevelBoard implementation that utilizes individual tile-locking to achieve maximum concurrency.
SimpleBoard(int, int) - Constructor for class com.sun.sgs.example.hack.server.level.SimpleBoard
Creates a new instance of SimpleBoard with an empty tile set
SimpleConnector - Class in com.sun.sgs.example.hack.server.level
This implementation of Connector acts as a simple, two-way connection between two fixed points.
SimpleConnector(Level, int, int, Level, int, int) - Constructor for class com.sun.sgs.example.hack.server.level.SimpleConnector
Creates an instance of SimpleConnector.
SimpleItem - Class in com.sun.sgs.example.hack.server
This is a simple implementation of Item that provides non-interactive items.
SimpleItem(int) - Constructor for class com.sun.sgs.example.hack.server.SimpleItem
Creates an instance of SimpleItem.
SimpleLevel - Class in com.sun.sgs.example.hack.server.level
This is a simple implementation of Level that doesn't try to do anything fancy with managing the internal state.
SimpleLevel(String, String) - Constructor for class com.sun.sgs.example.hack.server.level.SimpleLevel
Creates a SimpleLevel.
SpriteMap - Class in com.sun.sgs.example.hack.server
This represents a single sprite map.
SpriteMap(int, Map<Integer, byte[]>) - Constructor for class com.sun.sgs.example.hack.server.SpriteMap
Creates an instance of SpriteMap.

T

take(CharacterManager) - Method in interface com.sun.sgs.example.hack.server.level.Level
Tries to take items at the character's current location.
take(CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.SimpleLevel
Tries to take items at the character's current location.
testMove(int, int, CharacterManager) - Method in interface com.sun.sgs.example.hack.server.level.LevelBoard
Tests to see if a move would be possible to the given location for the given character.
testMove(int, int, CharacterManager) - Method in class com.sun.sgs.example.hack.server.level.SimpleBoard
Tests to see if a move would be possible to the given location for the given character.
Tile - Interface in com.sun.sgs.example.hack.server.level
This interface defines a single square on a board.
toString() - Method in class com.sun.sgs.example.hack.server.BasicCharacterManager
Returns a unique representation of this manager.
toString() - Method in class com.sun.sgs.example.hack.server.Creator
 
toString() - Method in class com.sun.sgs.example.hack.server.Dungeon
 
toString() - Method in class com.sun.sgs.example.hack.server.Lobby
 
toString() - Method in class com.sun.sgs.example.hack.server.Player
 

U

userJoinedChannel(Channel) - Method in class com.sun.sgs.example.hack.server.Player
Called when the player joins a channel.

V

valueOf(String) - Static method in enum com.sun.sgs.example.hack.server.level.LevelBoard.ActionResult
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.sun.sgs.example.hack.server.level.LevelBoard.ActionResult
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D E G H I J L M N O P R S T U V 

Copyright © 2013. All Rights Reserved.