接口的使用
com.iohao.game.widget.light.room.operation.OperationHandler
使用OperationHandler的程序包
-
com.iohao.game.widget.light.room中OperationHandler的使用
修饰符和类型方法说明default OperationContext
Room.ofOperationContext
(OperationHandler operationHandler) create OperationContext -
com.iohao.game.widget.light.room.operation中OperationHandler的使用
修饰符和类型方法说明OperationFactory.getOperationHandler
(int operation) 获取 OperationHandler(玩法操作业务类)default OperationHandler
OperationService.getOperationHandler
(int operation) 获取 OperationHandler(玩法操作业务类)default OperationHandler
OperationService.getOperationHandler
(OperationCode operationCode) OperationFactory.getUserOperationHandler
(int operation) 获取玩家可操作的 OperationHandler(玩法操作业务类)default OperationHandler
OperationService.getUserOperationHandler
(int operation) 获取玩家可操作的 OperationHandler(玩法操作业务类)default OperationHandler
OperationService.getUserOperationHandler
(OperationCode operationCode) 返回变量类型为OperationHandler的类型的com.iohao.game.widget.light.room.operation中的方法修饰符和类型方法说明OperationFactory.optionalOperationHandler
(int operation) 通过操作码得到 OperationHandler Optional修饰符和类型方法说明void
OperationFactory.mapping
(int operation, OperationHandler operationHandler) 将操作码与 OperationHandler(玩法操作业务类)关联default void
OperationFactory.mapping
(OperationCode operationCode, OperationHandler operationHandler) 将操作码与 OperationHandler(玩法操作业务类)关联void
OperationFactory.mappingUser
(int operation, OperationHandler operationHandler) 玩家可操作的 OperationHandler。default void
OperationFactory.mappingUser
(OperationCode operationCode, OperationHandler operationHandler) 玩家可操作的 OperationHandler。static OperationContext
OperationContext.of
(Room room, OperationHandler operationHandler) 创建 OperationContext 对象