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 RoomTypeRoom. roomTypethe room type.Methods in io.sockit.gameserver that return RoomType Modifier and Type Method Description static RoomTypeRoomType. 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 RoomGame. createPublicRoom(String locationName, String roomName, RoomType roomType, int totalNoOfSeats, int turnDurationInSecs, JsonObject additionalRoomConfig)Creates a public room.RoomLocation. 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 RoomGame. 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.intLocation. noOfPlayers(RoomType roomtype)returns the total number of players of the given room type in the locationintLocation. noOfRooms(RoomType roomType)returns the total number of rooms of the given type in this locationintLocation. noOfSpectators(RoomType roomtype)returns the total number of spectators of the given room type in the locationintLocation. 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)