类的使用
com.iohao.game.action.skeleton.core.flow.FlowContext
程序包
说明
业务框架 - core
业务框架 - 系统异常全局统一处理,断言 + 异常机制 = 清晰简洁的代码
业务框架 - 核心流程处理。
业务框架 - 业务框架插件。
业务框架 - 工具包,如:线程执行器相关工具、范围内的广播 ..等
逻辑服 - 工具包
扩展模块 - 桌游类、房间类游戏 - 规避并发的领域事件。
扩展模块 - 桌游类、房间类游戏 - 子游戏自定义游戏流程相关的扩展。
扩展模块 - 桌游类、房间类游戏 - 房间内的玩法操作扩展。
-
com.iohao.game.action.skeleton.core中FlowContext的使用
修饰符和类型方法说明void
ActionCommandFlowExecute.execute
(FlowContext flowContext) 模板方法模式:void
InOutManager.fuckIn
(FlowContext flowContext) 执行所有 inOut fuckIn 方法void
InOutManager.fuckOut
(FlowContext flowContext) 执行所有 inOut fuckOut 方法void
BarSkeleton.handle
(FlowContext flowContext) 业务框架处理入口boolean
Handler.handler
(FlowContext flowContext) 处理一个action请求 -
com.iohao.game.action.skeleton.core.exception中FlowContext的使用
-
com.iohao.game.action.skeleton.core.flow中FlowContext的使用
修饰符和类型方法说明FlowContextFactory.createFlowContext()
创建业务框架 flow 上下文FlowContext.setMethodResult
(Object methodResult) 设置响应结果修饰符和类型方法说明void
FlowContextKit.employ
(FlowContext flowContext) FlowContext 自身属性赋值void
ActionAfter.execute
(FlowContext flowContext) 最后执行的方法, 一般将发送到客户端的逻辑存放到这里void
ActionMethodInOut.fuckIn
(FlowContext flowContext) fuck前void
ActionMethodInOut.fuckOut
(FlowContext flowContext) fuck后FlowContextKit.getChannelContext
(FlowContext flowContext) ActionMethodInvoke.invoke
(FlowContext flowContext) 具体的业务方法调用Object[]
ActionMethodParamParser.listParam
(FlowContext flowContext) 参数解析void
ActionMethodResultWrap.wrap
(FlowContext flowContext) 包装结果 -
com.iohao.game.action.skeleton.core.flow.internal中FlowContext的使用
修饰符和类型方法说明void
StatActionInOut.StatActionChangeListener.changed
(StatActionInOut.StatAction statAction, long time, FlowContext flowContext) StatAction 统计记录更新后调用default void
TimeRangeInOut.ChangeListener.changed
(TimeRangeInOut.TimeRangeDay timeRangeDay, LocalTime localTime, FlowContext flowContext) void
DefaultActionAfter.execute
(FlowContext flowContext) default void
StatActionInOut.StatActionChangeListener.flow
(StatActionInOut.StatAction statAction, long time, FlowContext flowContext) StatAction 更新监听流程void
DebugInOut.fuckIn
(FlowContext flowContext) void
StatActionInOut.fuckIn
(FlowContext flowContext) void
ThreadMonitorInOut.fuckIn
(FlowContext flowContext) void
TimeRangeInOut.fuckIn
(FlowContext flowContext) void
TraceIdInOut.fuckIn
(FlowContext flowContext) void
DebugInOut.fuckOut
(FlowContext flowContext) void
StatActionInOut.fuckOut
(FlowContext flowContext) void
ThreadMonitorInOut.fuckOut
(FlowContext flowContext) void
TimeRangeInOut.fuckOut
(FlowContext flowContext) void
TraceIdInOut.fuckOut
(FlowContext flowContext) DefaultActionMethodInvoke.invoke
(FlowContext flowContext) Object[]
DefaultActionMethodParamParser.listParam
(FlowContext flowContext) default boolean
StatActionInOut.StatActionChangeListener.triggerUpdateTimeRange
(StatActionInOut.StatAction statAction, long time, FlowContext flowContext) 触发条件,触发 updateTimeRange 方法的前置条件default void
StatActionInOut.StatActionChangeListener.updateTimeRange
(StatActionInOut.StatAction statAction, long time, FlowContext flowContext) StatAction 统计记录更新中调用,当 trigger 方法为 true 时会调用void
DefaultActionMethodResultWrap.wrap
(FlowContext flowContext) -
com.iohao.game.action.skeleton.kit中FlowContext的使用
修饰符和类型方法说明static RangeBroadcaster
RangeBroadcaster.of
(FlowContext flowContext) 创建一个默认的 RangeBroadcaster 对象(框架内置)boolean
ExecutorSelectKit.processLogic
(BarSkeleton barSkeleton, FlowContext flowContext) 执行业务框架 (执行 action) -
com.iohao.game.bolt.broker.client.kit中FlowContext的使用
修饰符和类型方法说明void
ExternalCommunicationKit.setAttachment
(Attachment attachment, FlowContext flowContext) 设置元信息到游戏对外服boolean
UserIdSettingKit.settingUserId
(FlowContext flowContext, long userId) 已过时。 -
com.iohao.game.bolt.broker.core.common.processor.hook中FlowContext的使用
修饰符和类型方法说明void
RequestMessageClientProcessorHook.processLogic
(BarSkeleton barSkeleton, FlowContext flowContext) 钩子流程逻辑 -
com.iohao.game.widget.light.room.domain中FlowContext的使用
-
com.iohao.game.widget.light.room.flow中FlowContext的使用
修饰符和类型方法说明static GameFlowContext
GameFlowContext.of
(Room room, FlowContext flowContext) 创建 GameFlowContext(框架内置的默认实现)static RoomCreateContext
RoomCreateContext.of
(FlowContext flowContext) 创建一个 RoomCreateContext 对象,使用默认实现 -
com.iohao.game.widget.light.room.operation中FlowContext的使用
UserIdSetting.setUserId(long)
orUserIdSetting.setUserIdAndGetResult(long)