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 Room
Player. room
the room of the playerMethods in io.sockit.gameserver that return Room Modifier and Type Method Description Room
Game. createPrivateRoom(User user, int totalNoOfSeats, int turnDurationInSecs, JsonObject additionalRoomConfig)
Creates a private room for a user if one does not exist.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 locationRoom
Game. getPrivateRoom(User user)
The method returns a the private room of the user if one existsstatic Room
Game. getRoom(Long roomId)
Returms the room with the specified room IDRoom
Session. getRoom()
Returns the room joined by the session or null if no room has been joinedprotected 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.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 boolean
Location. addRoom(Room room)
adds a room to this locationint
Room. compareTo(Room room)
Compares this object with the specified object for order.void
Session. joinRoom(Room room)
Makes the session join the specified room