Package VASSAL.chat
Class SimpleRoom
java.lang.Object
VASSAL.chat.SimpleRoom
- All Implemented Interfaces:
Room
- Direct Known Subclasses:
JabberRoom
,NodeRoom
public class SimpleRoom extends Object implements Room
A simple Room bean
-
Constructor Summary
Constructors Constructor Description SimpleRoom()
SimpleRoom(String name)
SimpleRoom(String name, Player[] players)
SimpleRoom(Room copy)
-
Method Summary
Modifier and Type Method Description void
addPlayer(Player p)
Add a player to this roomboolean
contains(Player p)
boolean
equals(Object o)
String
getName()
The display name of this roomPlayer
getPlayer(String id)
List<Player>
getPlayerList()
Return an (unmodifiable) list of playersIterator<Player>
getPlayers()
Deprecated, for removal: This API element is subject to removal in a future version.int
hashCode()
int
numPlayers()
void
removePlayer(Player p)
Remove a player from this roomvoid
setName(String name)
void
setPlayers(Player[] players)
String
toString()
-
Constructor Details
-
SimpleRoom
public SimpleRoom() -
SimpleRoom
-
SimpleRoom
-
SimpleRoom
-
-
Method Details
-
getName
Description copied from interface:Room
The display name of this room -
setName
-
setPlayers
-
addPlayer
Description copied from interface:Room
Add a player to this room -
getPlayer
-
removePlayer
Description copied from interface:Room
Remove a player from this room- Specified by:
removePlayer
in interfaceRoom
-
contains
-
toString
-
numPlayers
public int numPlayers() -
hashCode
public int hashCode() -
equals
-
getPlayers
Deprecated, for removal: This API element is subject to removal in a future version.UsegetPlayerList()
instead. -
getPlayerList
Description copied from interface:Room
Return an (unmodifiable) list of players- Specified by:
getPlayerList
in interfaceRoom
-
getPlayerList()
instead.