Package | Description |
---|---|
com.tameif.tame |
Base package.
|
com.tameif.tame.element |
Contains the element types.
|
com.tameif.tame.element.context |
Contains context and state data for a TAME context.
|
Modifier and Type | Method and Description |
---|---|
TPlayer |
TAMEModuleContext.getCurrentPlayer()
Gets the current player.
|
TPlayer |
TAMEModule.getPlayerByIdentity(java.lang.String identity)
Retrieves a Player by identity.
|
TPlayer |
TAMEModuleContext.resolvePlayer(java.lang.String playerIdentity)
Resolves a player.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<java.util.Map.Entry<java.lang.String,TPlayer>> |
TAMEModule.getPlayerList() |
Modifier and Type | Method and Description |
---|---|
void |
TAMEModule.addPlayer(TPlayer player)
Adds an player to the module.
|
static boolean |
TAMELogic.checkObjectAccessibility(TAMERequest request,
TAMEResponse response,
TPlayer player,
TObject object)
Checks if an object is accessible to a player.
|
static void |
TAMELogic.doPlayerSwitch(TAMERequest request,
TAMEResponse response,
TPlayer nextPlayer)
Attempts to perform a player switch.
|
static void |
TAMELogic.doRoomPop(TAMERequest request,
TAMEResponse response,
TPlayer player)
Attempts to perform a room stack pop for a player.
|
static void |
TAMELogic.doRoomPush(TAMERequest request,
TAMEResponse response,
TPlayer player,
TRoom nextRoom)
Attempts to perform a room stack push for a player.
|
static void |
TAMELogic.doRoomSwitch(TAMERequest request,
TAMEResponse response,
TPlayer player,
TRoom nextRoom)
Attempts to perform a room switch.
|
TPlayerContext |
TAMEModuleContext.getPlayerContext(TPlayer player)
Gets a player context by player.
|
Modifier and Type | Method and Description |
---|---|
static TPlayer |
TPlayer.create(java.io.InputStream in)
Creates this object from an input stream, expecting its byte representation.
|
TPlayer |
TPlayer.getParent() |
Constructor and Description |
---|
TPlayer(java.lang.String identity,
TPlayer parent)
Creates an empty player.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<TPlayer,java.util.Deque<TRoom>> |
TOwnershipMap.playerToRoomStack
Room stack.
|
Modifier and Type | Method and Description |
---|---|
TPlayer |
TOwnershipMap.getCurrentPlayer()
Gets the current player by the current player id.
|
Modifier and Type | Method and Description |
---|---|
void |
TOwnershipMap.addPlayerToRoom(TPlayer player,
TRoom room)
Adds a player to a room and discards the stack.
|
boolean |
TOwnershipMap.checkPlayerHasRoomInStack(TPlayer player,
TRoom room)
Returns if a player is in a room (or room is in stack).
|
TRoom |
TOwnershipMap.getCurrentRoom(TPlayer player)
Returns the current room for a player.
|
TRoom |
TOwnershipMap.popRoomFromPlayer(TPlayer player)
Pops a room off of a player's room stack.
|
void |
TOwnershipMap.pushRoomOntoPlayer(TPlayer player,
TRoom room)
Pushes a room onto a player's room stack.
|
void |
TOwnershipMap.removePlayer(TPlayer player)
Removes a player from all rooms.
|
void |
TOwnershipMap.setCurrentPlayer(TPlayer player)
Sets the current player.
|
Constructor and Description |
---|
TPlayerContext(TPlayer player)
Creates a player context.
|