Package com.tenio.core.handler
Class AbstractHandler
java.lang.Object
com.tenio.common.logger.AbstractLogger
com.tenio.common.logger.SystemLogger
com.tenio.core.handler.AbstractHandler
- Direct Known Subclasses:
AbstractClientCommandHandler,AbstractSystemCommandHandler
public abstract class AbstractHandler
extends com.tenio.common.logger.SystemLogger
This class provides all the necessary APIs for a logic game handling.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final ServerApiapi()Retrieves the server supported API responsible object.protected final com.tenio.common.data.zero.ZeroArrayarray()Retrieves a zero array instance when theDataTypein use isDataType.ZERO.protected final ClientCommandManagerRetrieves a management object of self-defined user commands.protected final com.tenio.common.data.zero.ZeroMapmap()Retrieves a zero map instance when theDataTypein use isDataType.ZERO.protected final com.tenio.common.data.msgpack.element.MsgPackArraymsgarray()Retrieves a msgpack array instance when theDataTypein use isDataType.MSG_PACK.protected final com.tenio.common.data.msgpack.element.MsgPackMapmsgmap()Retrieves a msgpack map instance when theDataTypein use isDataType.MSG_PACK.protected final Responseresponse()Retrieves a response object which is using to send responses to clients side.protected InitialRoomSetting.BuilderRetrieves an initialized room setting.Methods inherited from class com.tenio.common.logger.SystemLogger
debug, debugEvent, isDebugEnabled, isTraceEnabled, trace, traceMethods inherited from class com.tenio.common.logger.AbstractLogger
buildgen, error, error, error, info, info, info, info, info, info, info, info, isErrorEnabled, isInfoEnabled
-
Constructor Details
-
AbstractHandler
public AbstractHandler()
-
-
Method Details
-
api
Retrieves the server supported API responsible object.- Returns:
- an instance of
ServerApi.
-
clientCommand
Retrieves a management object of self-defined user commands.- Returns:
- an instance of
ClientCommandManager - Since:
- 0.5.0
-
response
Retrieves a response object which is using to send responses to clients side.- Returns:
- an instance of
Response
-
array
protected final com.tenio.common.data.zero.ZeroArray array()Retrieves a zero array instance when theDataTypein use isDataType.ZERO.- Returns:
- an instance of
ZeroArray
-
map
protected final com.tenio.common.data.zero.ZeroMap map()Retrieves a zero map instance when theDataTypein use isDataType.ZERO.- Returns:
- an instance of
ZeroMap
-
msgarray
protected final com.tenio.common.data.msgpack.element.MsgPackArray msgarray()Retrieves a msgpack array instance when theDataTypein use isDataType.MSG_PACK.- Returns:
- an instance of
MsgPackArray
-
msgmap
protected final com.tenio.common.data.msgpack.element.MsgPackMap msgmap()Retrieves a msgpack map instance when theDataTypein use isDataType.MSG_PACK.- Returns:
- an instance of
MsgPackMap
-
roomSetting
Retrieves an initialized room setting.- Returns:
- an instance of
InitialRoomSetting.Builder
-