Uses of Class
io.sockit.gameserver.RoomType
Package | Description |
---|---|
io.sockit.gameserver |
This is the core package for the Sockit Multiplayer Game (Server) Engine and provides the classes necessary to implement the server side of a multiplayer turn based game.
|
-
Uses of RoomType in io.sockit.gameserver
Fields in io.sockit.gameserver declared as RoomType Modifier and Type Field Description RoomType
Room. roomType
the room type.Methods in io.sockit.gameserver that return RoomType Modifier and Type Method Description static RoomType
RoomType. valueOf(String name)
Returns the enum constant of this type with the specified name.static RoomType[]
RoomType. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in io.sockit.gameserver with parameters of type RoomType Modifier and Type Method Description Room
Game. createPublicRoom(String locationName, String roomName, RoomType roomType, int totalNoOfSeats, int turnDurationInSecs, JsonObject additionalRoomConfig)
Creates a public room.Room
Location. getFirstRoom(RoomType type)
returns the first room of the given type in this locationCollection<Room>
Location. getRooms(RoomType roomType)
returns all the rooms of the given type in this location.protected abstract Room
Game. newRoom(String roomName, RoomType roomType, int totalNoOfSeats, int turnDurationInSecs, JsonObject additionalRoomConfig)
Factory method which is called to create a new room for the Game at runtime.int
Location. noOfPlayers(RoomType roomtype)
returns the total number of players of the given room type in the locationint
Location. noOfRooms(RoomType roomType)
returns the total number of rooms of the given type in this locationint
Location. noOfSpectators(RoomType roomtype)
returns the total number of spectators of the given room type in the locationint
Location. noOfSpectatorsAndPlayers(RoomType roomtype)
returns the total number of spectators and players of the given room type in the locationConstructors in io.sockit.gameserver with parameters of type RoomType Constructor Description Room(Game game, String roomName, RoomType roomType, int totalNoOfSeats, int turnDurationInSecs, int delayAfterGameEndedInSecs)
Creates a room.Room(Game game, String roomName, RoomType roomType, int totalNoOfSeats, int turnDurationInSecs, int delayAfterGameEndedInSecs, boolean enableDebug)
Creates a roomRoom(Game game, String roomName, RoomType roomType, int totalNoOfSeats, int turnDurationInSecs, int delayAfterGameEndedInSecs, boolean enableDebug, int minNoOfPlayersForGame)