Uses of Interface
com.iohao.net.extension.room.Player
Packages that use Player
Package
Description
Provides room-based game infrastructure for board games and similar multiplayer room workflows,
including room management, lifecycle processes, and extensible gameplay operations.
Provides gameplay-operation extension points and handlers for room-based games, including
strategy/flyweight style operation dispatch.
-
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 : userIdSimpleRoom.getPlayerMap()Room.getRealPlayerMap()All real users key : userIdSimpleRoom.getRealPlayerMap()Room.getRobotMap()All Robots key : userIdSimpleRoom.getRobotMap()Methods 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