接口的使用
com.iohao.game.widget.light.room.flow.GameFlowContext
使用GameFlowContext的程序包
-
com.iohao.game.widget.light.room.flow中GameFlowContext的使用
修饰符和类型方法说明static GameFlowContext
创建 GameFlowContext(框架内置的默认实现)static GameFlowContext
创建 GameFlowContext(框架内置的默认实现)static GameFlowContext
GameFlowContext.of
(Room room, FlowContext flowContext) 创建 GameFlowContext(框架内置的默认实现)default <T> GameFlowContext
GameFlowContext.option
(AttrOption<T> option, T value) 设置动态属性。修饰符和类型方法说明GameFixedService.createPlayer
(GameFlowContext gameFlowContext) 创建房间内的玩家default void
GameFixedService.dissolveRoom
(GameFlowContext gameFlowContext) 解散房间void
GameFixedService.enterRoom
(GameFlowContext gameFlowContext) 进入房间 (重连)default void
GameFixedService.quitRoom
(GameFlowContext gameFlowContext) 玩家退出房间default void
GameFixedService.ready
(boolean ready, GameFlowContext gameFlowContext) 玩家准备default void
GameStartService.startGame
(GameFlowContext gameFlowContext) void
GameStartService.startGameVerify
(GameFlowContext gameFlowContext) 游戏开始前的逻辑校验void
GameStartService.startGameVerifyAfter
(GameFlowContext gameFlowContext) 游戏开始,会在GameStartService.startGameVerify(GameFlowContext)
校验成功后执行。