Uses of Class
io.sockit.gameserver.Room
| 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 Room in io.sockit.gameserver
Fields in io.sockit.gameserver declared as Room Modifier and Type Field Description RoomPlayer. roomthe room of the playerMethods in io.sockit.gameserver that return Room Modifier and Type Method Description RoomGame. createPrivateRoom(User user, int totalNoOfSeats, int turnDurationInSecs, JsonObject additionalRoomConfig)Creates a private room for a user if one does not exist.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 locationRoomGame. getPrivateRoom(User user)The method returns a the private room of the user if one existsstatic RoomGame. getRoom(Long roomId)Returms the room with the specified room IDRoomSession. getRoom()Returns the room joined by the session or null if no room has been joinedprotected 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.Methods in io.sockit.gameserver that return types with arguments of type Room Modifier and Type Method Description Collection<Room>Location. getRooms(RoomType roomType)returns all the rooms of the given type in this location.Methods in io.sockit.gameserver with parameters of type Room Modifier and Type Method Description booleanLocation. addRoom(Room room)adds a room to this locationintRoom. compareTo(Room room)Compares this object with the specified object for order.voidSession. joinRoom(Room room)Makes the session join the specified room