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