类 AbstractInputCommandRegion
java.lang.Object
com.iohao.game.external.client.AbstractInputCommandRegion
- 所有已实现的接口:
InputCommandRegion
- 作者:
- 渔民小镇
- 日期:
- 2023-07-10
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidexecuteCommand(int subCmd) protected InputCommandofCommand(int subCmd) 创建模拟命令protected InputCommandofCommandInt(int subCmd) 创建模拟命令,在使用命令时需要在控制台输入 int 类型的请求参数protected InputCommandofCommandLong(int subCmd) 创建模拟命令,在使用命令时需要在控制台输入 long 类型的请求参数protected InputCommandofCommandString(int subCmd) 创建模拟命令,在使用命令时需要在控制台输入 String 类型的请求参数protected InputCommandofCommandUserId(int subCmd) 创建模拟命令,在使用命令时需要在控制台输入 long 类型的 userId 请求参数protected voidofListen(CallbackDelegate callback, int subCmd, String title) protected voidofListen(CallbackDelegate callback, CmdInfo cmd, String title) ofRequestCommand(int subCmd) 创建请求命令执行ofRequestCommand(CmdInfo cmdInfo) 创建请求命令执行voidsetClientUser(ClientUser clientUser) 设置 clientUser从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.iohao.game.external.client.InputCommandRegion
initInputCommand, loginSuccessCallback
-
构造器详细资料
-
AbstractInputCommandRegion
public AbstractInputCommandRegion()
-
-
方法详细资料
-
setClientUser
从接口复制的说明:InputCommandRegion设置 clientUser会在客户端启动时,自动赋值- 指定者:
setClientUser在接口中InputCommandRegion- 参数:
clientUser- clientUser
-
ofCommand
创建模拟命令- 参数:
subCmd- 子路由- 返回:
- InputCommand
-
ofCommandLong
创建模拟命令,在使用命令时需要在控制台输入 long 类型的请求参数- 参数:
subCmd- 子路由- 返回:
- InputCommand
-
ofCommandUserId
创建模拟命令,在使用命令时需要在控制台输入 long 类型的 userId 请求参数- 参数:
subCmd- 子路由- 返回:
- InputCommand
-
ofCommandInt
创建模拟命令,在使用命令时需要在控制台输入 int 类型的请求参数- 参数:
subCmd- 子路由- 返回:
- InputCommand
-
ofCommandString
创建模拟命令,在使用命令时需要在控制台输入 String 类型的请求参数- 参数:
subCmd- 子路由- 返回:
- InputCommand
-
ofListen
-
ofListen
-
ofRequestCommand
创建请求命令执行- 参数:
subCmd- 子路由- 返回:
- 请求命令执行
-
ofRequestCommand
创建请求命令执行- 参数:
cmdInfo- 路由信息- 返回:
- 请求命令执行
-
executeCommand
public void executeCommand(int subCmd)
-