接口 GameFixedService

所有超级接口:
PlayerCreator, RoomCreator
所有已知子接口:
GameFlowService, GameRoomService

public interface GameFixedService extends RoomCreator, PlayerCreator
游戏流程 - 相对固定的流程。如,创建房间、创建玩家、进入房间;解散房间、退出房间、玩家准备。
     创建房间
     创建玩家
     进入房间

     解散房间
     退出房间
     玩家准备
 
从以下版本开始:
21.8
作者:
渔民小镇
日期:
2024-05-15
  • 方法详细资料

    • enterRoom

      void enterRoom(GameFlowContext gameFlowContext)
      进入房间 (重连)
      参数:
      gameFlowContext - 进入房间上下文
    • dissolveRoom

      default void dissolveRoom(GameFlowContext gameFlowContext)
      已过时。
      non
      解散房间
      参数:
      gameFlowContext - gameFlowContext
    • quitRoom

      default void quitRoom(GameFlowContext gameFlowContext)
      玩家退出房间
      参数:
      gameFlowContext - gameFlowContext
    • ready

      default void ready(boolean ready, GameFlowContext gameFlowContext)
      玩家准备
      参数:
      ready - true 表示准备,false 则是取消准备
      gameFlowContext - gameFlowContext