Class RoomSize

java.lang.Object
com.smartfoxserver.entities.RoomSize

public class RoomSize extends Object
Represent the size of a Room.
  • 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

      public String toString()
      Overrides:
      toString in class Object