Package com.smartfoxserver.entities
Class RoomSize
java.lang.Object
com.smartfoxserver.entities.RoomSize
Represent the size of a Room.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the number of SpectatorsintReturns the sum of Users and SpectatorsintGet the number of Users/Players in the RoomtoString()
-
Constructor Details
-
RoomSize
public RoomSize(int userCount, int spectatorCount)
-
-
Method Details
-
getUserCount
public int getUserCount()Get the number of Users/Players in the Room- Returns:
- the number of users/players
-
getSpectatorCount
public int getSpectatorCount()Get the number of Spectators- Returns:
- the number of spectators
-
getTotalUsers
public int getTotalUsers()Returns the sum of Users and Spectators- Returns:
- the total number of users (both players and spectators) in the Room
-
toString
-