Uses of Interface
com.iohao.net.extension.room.Player
Packages that use Player
Package
Description
Extension Module - Board Game/Room Game, light-game-room + Domain Event + Built-in Kit = Easily Handle Board Games
Extension Module - Board Games, Room-Based Games - Extension of Gameplay Operations within a Room.
-
Uses of Player in com.iohao.net.extension.room
Classes in com.iohao.net.extension.room that implement PlayerMethods in com.iohao.net.extension.room with type parameters of type PlayerModifier and TypeMethodDescriptiondefault <T extends Player>
TRoom.getPlayerById(long userId) Find player by userIddefault <T extends Player>
TRoom.getPlayerBySeat(int seat) Find player by seatdefault <T extends Player>
voidRoom.ifPlayerExist(long userId, Consumer<T> action) Executes the given action if the player is in the room, otherwise does nothing.default <T extends Player>
Collection<T> Room.listPlayer()Player list: All users, including Robotdefault <T extends Player>
Collection<T> Room.listRealPlayer()Real player list: All real users (excluding Robots)default <T extends Player>
Collection<T> Room.listRobot()RobotListRoom.streamPlayer()stream playersRoom.streamRealPlayer()stream real playersRoom.streamRobot()stream robotsMethods in com.iohao.net.extension.room that return types with arguments of type PlayerModifier and TypeMethodDescriptionRoom.getPlayerMap()Users, including Robot. key : userIdRoom.getRealPlayerMap()All real users key : userIdRoom.getRobotMap()All Robots key : userIdMethods in com.iohao.net.extension.room with parameters of type PlayerModifier and TypeMethodDescriptiondefault voidAdd player to the roomdefault voidAdd user to the room and associate userId with roomIddefault voidRoom.removePlayer(Player player) Remove playerdefault voidRoomService.removePlayer(Room room, Player player) Remove user from the room and delete the association between userId and roomIdMethod parameters in com.iohao.net.extension.room with type arguments of type PlayerModifier and TypeMethodDescriptiondefault voidRoom.forEach(BiConsumer<Long, Player> action) forEach players, the first argument is the userId -
Uses of Player in com.iohao.net.extension.room.operation
Methods in com.iohao.net.extension.room.operation with type parameters of type Player