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