Package VASSAL.chat
Class SimpleRoom
java.lang.Object
VASSAL.chat.SimpleRoom
-
Constructor Summary
ConstructorDescriptionSimpleRoom
(String name) SimpleRoom
(String name, Player[] players) SimpleRoom
(Room copy) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a player to this roomboolean
boolean
getName()
The display name of this roomReturn an (unmodifiable) list of playersint
hashCode()
int
void
Remove a player from this roomvoid
void
setPlayers
(Player[] players) toString()
-
Constructor Details
-
SimpleRoom
public SimpleRoom() -
SimpleRoom
-
SimpleRoom
-
SimpleRoom
-
-
Method Details
-
getName
-
setName
-
setPlayers
-
addPlayer
-
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
-
equals
-
getPlayerList
Description copied from interface:Room
Return an (unmodifiable) list of players- Specified by:
getPlayerList
in interfaceRoom
-