Package com.smartfoxserver.v2.entities
Class RoomSize
- java.lang.Object
-
- com.smartfoxserver.v2.entities.RoomSize
-
public class RoomSize extends java.lang.ObjectRepresent the size of a Room.
-
-
Constructor Summary
Constructors Constructor Description RoomSize(int userCount, int spectatorCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSpectatorCount()Get the number of SpectatorsintgetTotalUsers()Returns the sum of Users and SpectatorsintgetUserCount()Get the number of Users/Players in the Roomjava.lang.StringtoString()
-
-
-
Method Detail
-
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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-