接口 GameFixedService
- 所有超级接口:
PlayerCreator
,RoomCreator
- 所有已知子接口:
GameFlowService
,GameRoomService
游戏流程 - 相对固定的流程。如,创建房间、创建玩家、进入房间;解散房间、退出房间、玩家准备。
创建房间 创建玩家 进入房间 解散房间 退出房间 玩家准备
- 从以下版本开始:
- 21.8
- 作者:
- 渔民小镇
- 日期:
- 2024-05-15
-
方法概要
修饰符和类型方法说明default void
dissolveRoom
(GameFlowContext gameFlowContext) 已过时。nonvoid
enterRoom
(GameFlowContext gameFlowContext) 进入房间 (重连)default void
quitRoom
(GameFlowContext gameFlowContext) 玩家退出房间default void
ready
(boolean ready, GameFlowContext gameFlowContext) 玩家准备从接口继承的方法 com.iohao.game.widget.light.room.flow.PlayerCreator
createPlayer
从接口继承的方法 com.iohao.game.widget.light.room.flow.RoomCreator
createRoom
-
方法详细资料
-
enterRoom
进入房间 (重连)- 参数:
gameFlowContext
- 进入房间上下文
-
dissolveRoom
已过时。non解散房间- 参数:
gameFlowContext
- gameFlowContext
-
quitRoom
玩家退出房间- 参数:
gameFlowContext
- gameFlowContext
-
ready
玩家准备- 参数:
ready
- true 表示准备,false 则是取消准备gameFlowContext
- gameFlowContext
-