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