A B C D E F G H I K L M N O P Q R S T U V W X Y Z _ 
All Classes All Packages

A

AbstractApp - Class in com.tenio
Your application will start from here.
AbstractApp() - Constructor for class com.tenio.AbstractApp
 
AbstractEntity - Class in com.tenio.engine.fsm.entity
An entity is an element of one game, such as a hero, a dragon, a wall, ...
AbstractEntity() - Constructor for class com.tenio.engine.fsm.entity.AbstractEntity
 
AbstractEntity(String) - Constructor for class com.tenio.engine.fsm.entity.AbstractEntity
Create own entity.
AbstractExtensionHandler - Class in com.tenio.extension
This class provides you all the necessary APIs for your own logic game handling.
AbstractExtensionHandler() - Constructor for class com.tenio.extension.AbstractExtensionHandler
 
AbstractHeartBeat - Class in com.tenio.engine.heartbeat
The game loop is the overall flow control for the entire game program.
AbstractHeartBeat() - Constructor for class com.tenio.engine.heartbeat.AbstractHeartBeat
Create a new instance with default FPS value, see 60
AbstractHeartBeat(int, int) - Constructor for class com.tenio.engine.heartbeat.AbstractHeartBeat
Create a new instance
AbstractLogger - Class in com.tenio.logger
The recording logs of a developer is important for every system.
AbstractLogger() - Constructor for class com.tenio.logger.AbstractLogger
 
AbstractPlayer - Class in com.tenio.entity
A player is one of the base elements in your server.
AbstractPlayer(String) - Constructor for class com.tenio.entity.AbstractPlayer
Create a new player
AbstractRoom - Class in com.tenio.entity
A room or simpler is a group of related players, see AbstractPlayer.
AbstractRoom(String, String, int) - Constructor for class com.tenio.entity.AbstractRoom
 
AbstractSystem<TEntity extends IEntity> - Class in com.tenio.engine.ecs.system
The base system.
AbstractSystem(IContext<TEntity>) - Constructor for class com.tenio.engine.ecs.system.AbstractSystem
 
actionPerformed(ActionEvent) - Method in class com.tenio.engine.heartbeat.AbstractHeartBeat
 
add(float, float) - Method in class com.tenio.engine.physic.math.Vector2
 
add(ISystem) - Method in class com.tenio.engine.ecs.system.Systems
Adds the system instance to the systems list.
add(Vector2) - Method in class com.tenio.engine.physic.math.Vector2
 
add(AbstractPlayer) - Method in class com.tenio.entity.AbstractRoom
Add a player to this room, this action was handled by system logic.
add(AbstractPlayer) - Method in interface com.tenio.entity.manager.IPlayerManager
Add a new player to your server (this player is known as one NCP or a BOT) without a attached connection.
add(AbstractPlayer) - Method in class com.tenio.entity.manager.PlayerManager
 
add(AbstractPlayer, Connection) - Method in interface com.tenio.entity.manager.IPlayerManager
Add a new player to your server (this player was upgraded from one connection).
add(AbstractPlayer, Connection) - Method in class com.tenio.entity.manager.PlayerManager
 
add(AbstractRoom) - Method in class com.tenio.api.RoomApi
Add a new room to your server.
add(AbstractRoom) - Method in interface com.tenio.entity.manager.IRoomManager
Add a new room to your server.
add(AbstractRoom) - Method in class com.tenio.entity.manager.RoomManager
 
add(String, Object) - Method in class com.tenio.entity.element.TObject
 
add(X, X) - Method in class com.tenio.engine.physic.utility.Smoother
 
ADD_ELEMENT_POOL - Static variable in class com.tenio.configuration.constant.Constants
When the desired number of elements exceeded the first configuration.
addEntity(E) - Method in class com.tenio.engine.physic.utility.CellSpacePartition
Used to add the entities to the data structure adds entities to the class by allocating them to the appropriate cell
addPath(Path) - Method in class com.tenio.configuration.Http
 
addSystem(ISystem) - Method in class com.tenio.engine.heartbeat.ecs.ECSHeartBeat
 
ANTI_CLOCK_WISE - Static variable in class com.tenio.engine.physic.math.Vector2
 
ArrayPool - Class in com.tenio.api.pool
The object pool mechanism for TArray.
ArrayPool() - Constructor for class com.tenio.api.pool.ArrayPool
 
ATTACH_CONNECTION_FAILED - com.tenio.configuration.constant.TEvent
The client failed to attach his desired sub connection.
ATTACH_CONNECTION_REQUEST - com.tenio.configuration.constant.TEvent
In this server, you can create other sub connections.
ATTACH_CONNECTION_SUCCESS - com.tenio.configuration.constant.TEvent
When a a sub connection link is established, you can inform its own player here.
available() - Method in class com.tenio.message.codec.ByteArrayInputStream
 

B

BACKGROUND_RED - Static variable in class com.tenio.engine.physic.graphic.window.Windows
 
backup() - Method in interface com.tenio.entity.annotation.IBackup
Convert an object data to a JSON data
BANDWIDTH - com.tenio.configuration.constant.TEvent
The amount of data that can be transmitted in a fixed amount of time.
BASE_ELEMENT_POOL - Static variable in class com.tenio.configuration.constant.Constants
The number of elements in a bulk those created for the first time.
BaseConfiguration - Class in com.tenio.configuration
This server needs some basic configuration to start running.
BaseConfiguration(String) - Constructor for class com.tenio.configuration.BaseConfiguration
The constructor
BaseGameEntity - Class in com.tenio.engine.physic.common
The base game entity class, it aims for creating movable objects.
BaseGameEntity() - Constructor for class com.tenio.engine.physic.common.BaseGameEntity
 
BaseGameEntity(int) - Constructor for class com.tenio.engine.physic.common.BaseGameEntity
 
BaseGameEntity(int, float, float, float) - Constructor for class com.tenio.engine.physic.common.BaseGameEntity
 
BaseNettyHandler - Class in com.tenio.network.netty
Use Netty to handle message.
BaseNettyHandler(IEventManager, int, ConnectionType) - Constructor for class com.tenio.network.netty.BaseNettyHandler
 
BaseProcessServlet - Class in com.tenio.network.http.servlet.base
 
BaseProcessServlet() - Constructor for class com.tenio.network.http.servlet.base.BaseProcessServlet
 
BaseResponse - Class in com.tenio.network.http.servlet
 
BaseResponse() - Constructor for class com.tenio.network.http.servlet.BaseResponse
 
BaseServlet - Class in com.tenio.network.http.servlet.base
 
BaseServlet() - Constructor for class com.tenio.network.http.servlet.base.BaseServlet
 
buildgen(Object...) - Method in class com.tenio.logger.AbstractLogger
To generate StringBuilder for logging information by the corresponding objects
ByteArrayInputStream - Class in com.tenio.message.codec
 
ByteArrayInputStreamPool - Class in com.tenio.message.pool
The object pool mechanism for ByteArrayInputStream.
ByteArrayInputStreamPool() - Constructor for class com.tenio.message.pool.ByteArrayInputStreamPool
 
byteToShort(byte[]) - Static method in class com.tenio.message.codec.MessagePacker
Convert an array of bytes to its corresponding value in short type.

C

calculateNeighbors(Vector2, float) - Method in class com.tenio.engine.physic.utility.CellSpacePartition
This must be called to create the vector of neighbors.This method examines each cell within range of the target, If the cells contain entities then they are tested to see if they are situated within the target's neighborhood region.
call() - Method in class com.tenio.engine.heartbeat.AbstractHeartBeat
 
CCU - com.tenio.configuration.constant.TEvent
You can see the number of concurrent users (CCU) in period time.
CCU_SCAN - Static variable in class com.tenio.configuration.BaseConfiguration
The period checking CCU in seconds
CCUScanTask - Class in com.tenio.task.schedule
To retrieve the CCU in period time.
CCUScanTask(IEventManager, PlayerApi, int) - Constructor for class com.tenio.task.schedule.CCUScanTask
 
CellSpacePartition<E extends BaseGameEntity> - Class in com.tenio.engine.physic.utility
This class is used to divide a 2D space into a grid of cells each of which may contain a number of entities.
CellSpacePartition(float, float, int, int, int) - Constructor for class com.tenio.engine.physic.utility.CellSpacePartition
Create a new instance
changeState(State<T>) - Method in class com.tenio.engine.fsm.entity.FSMComponent
 
CHANNEL_HANDLE - com.tenio.configuration.constant.LEvent
You can handle the message sent from a connection here.
channelInactive(ChannelHandlerContext) - Method in class com.tenio.network.netty.socket.NettySocketHandler
 
channelInactive(ChannelHandlerContext) - Method in class com.tenio.network.netty.ws.NettyWSHandler
 
channelRead(ChannelHandlerContext, Object) - Method in class com.tenio.network.netty.datagram.NettyDatagramHandler
 
channelRead(ChannelHandlerContext, Object) - Method in class com.tenio.network.netty.socket.NettySocketHandler
 
channelRead(ChannelHandlerContext, Object) - Method in class com.tenio.network.netty.ws.NettyWSHandler
 
channelRead(ChannelHandlerContext, Object) - Method in class com.tenio.network.netty.ws.NettyWSHandShake
 
clamp(T, T, T) - Static method in class com.tenio.utility.MathUtility
 
clean() - Method in class com.tenio.network.Connection
Delete the keys which are used to identify a player in one "connection".
clean() - Method in class com.tenio.network.netty.NettyConnection
 
clean(AbstractPlayer) - Method in interface com.tenio.entity.manager.IPlayerManager
Make sure one player is removed from this management (as well as your server).
clean(AbstractPlayer) - Method in class com.tenio.entity.manager.PlayerManager
 
cleanup() - Method in class com.tenio.api.pool.ArrayPool
 
cleanup() - Method in class com.tenio.api.pool.ObjectPool
 
cleanup() - Method in class com.tenio.engine.ecs.pool.ComponentPool
 
cleanup() - Method in class com.tenio.engine.ecs.pool.EntityPool
 
cleanup() - Method in class com.tenio.logger.pool.StringBuilderPool
 
cleanup() - Method in class com.tenio.message.pool.ByteArrayInputStreamPool
 
cleanup() - Method in interface com.tenio.pool.IElementPool
Clean up, after that all arrays will be set to null
clear() - Method in class com.tenio.engine.fsm.EntityManager
 
clear() - Method in class com.tenio.engine.fsm.MessageDispatcher
 
clear() - Method in class com.tenio.engine.heartbeat.HeartBeatManager
 
clear() - Method in interface com.tenio.engine.heartbeat.IHeartBeatManager
Destroy all heart-beats and clear all references.
clear() - Method in class com.tenio.engine.physic.common.Path
 
clear() - Method in class com.tenio.entity.AbstractRoom
Remove all players from this room
clear() - Method in interface com.tenio.entity.manager.IPlayerManager
Remove all players.
clear() - Method in interface com.tenio.entity.manager.IRoomManager
Remove all rooms
clear() - Method in class com.tenio.entity.manager.PlayerManager
 
clear() - Method in class com.tenio.entity.manager.RoomManager
 
clear() - Method in class com.tenio.event.EventManager
 
clear() - Method in class com.tenio.event.external.TEventHandler
Clear all events and these handlers.
clear() - Method in class com.tenio.event.external.TEventManager
Clear all subscribers and these corresponding events.
clear() - Method in class com.tenio.event.external.TEventProducer
Clear all events and these handlers.
clear() - Method in interface com.tenio.event.IEventManager
Clear all subscribers and these corresponding events.
clear() - Method in class com.tenio.event.internal.LEventHandler
Clear all events and these handlers
clear() - Method in class com.tenio.event.internal.LEventManager
Clear all subscribers and these corresponding events.
clear() - Method in class com.tenio.event.internal.LEventProducer
Clear all events and these handlers
clear() - Method in interface com.tenio.task.ITaskManager
Kill or stop all running tasks.
clear() - Method in class com.tenio.task.TaskManager
 
clearCells() - Method in class com.tenio.engine.physic.utility.CellSpacePartition
Clears the cells of all entities
clearSystems() - Method in class com.tenio.engine.ecs.system.Systems
Remove all systems
clearSystems() - Method in class com.tenio.engine.heartbeat.ecs.ECSHeartBeat
 
CLOCK_WISE - Static variable in class com.tenio.engine.physic.math.Vector2
 
clone() - Method in class com.tenio.engine.physic.math.Vector2
 
close() - Method in class com.tenio.network.Connection
Close a "connection" between a client with the server
close() - Method in class com.tenio.network.netty.NettyConnection
 
closeAllConnections() - Method in class com.tenio.entity.AbstractPlayer
 
closeConnection(int) - Method in class com.tenio.entity.AbstractPlayer
 
Column - Annotation Type in com.tenio.annotation
This annotation is treated as a "Column".
com.tenio - package com.tenio
 
com.tenio.annotation - package com.tenio.annotation
 
com.tenio.api - package com.tenio.api
 
com.tenio.api.pool - package com.tenio.api.pool
 
com.tenio.configuration - package com.tenio.configuration
 
com.tenio.configuration.constant - package com.tenio.configuration.constant
 
com.tenio.engine.ecs.base - package com.tenio.engine.ecs.base
 
com.tenio.engine.ecs.pool - package com.tenio.engine.ecs.pool
 
com.tenio.engine.ecs.system - package com.tenio.engine.ecs.system
 
com.tenio.engine.fsm - package com.tenio.engine.fsm
 
com.tenio.engine.fsm.entity - package com.tenio.engine.fsm.entity
 
com.tenio.engine.heartbeat - package com.tenio.engine.heartbeat
 
com.tenio.engine.heartbeat.ecs - package com.tenio.engine.heartbeat.ecs
 
com.tenio.engine.physic.common - package com.tenio.engine.physic.common
 
com.tenio.engine.physic.graphic - package com.tenio.engine.physic.graphic
 
com.tenio.engine.physic.graphic.window - package com.tenio.engine.physic.graphic.window
 
com.tenio.engine.physic.math - package com.tenio.engine.physic.math
 
com.tenio.engine.physic.utility - package com.tenio.engine.physic.utility
 
com.tenio.entity - package com.tenio.entity
 
com.tenio.entity.annotation - package com.tenio.entity.annotation
 
com.tenio.entity.element - package com.tenio.entity.element
 
com.tenio.entity.manager - package com.tenio.entity.manager
 
com.tenio.event - package com.tenio.event
 
com.tenio.event.external - package com.tenio.event.external
 
com.tenio.event.internal - package com.tenio.event.internal
 
com.tenio.exception - package com.tenio.exception
 
com.tenio.extension - package com.tenio.extension
 
com.tenio.logger - package com.tenio.logger
 
com.tenio.logger.pool - package com.tenio.logger.pool
 
com.tenio.message.codec - package com.tenio.message.codec
 
com.tenio.message.pool - package com.tenio.message.pool
 
com.tenio.network - package com.tenio.network
 
com.tenio.network.http - package com.tenio.network.http
 
com.tenio.network.http.servlet - package com.tenio.network.http.servlet
 
com.tenio.network.http.servlet.base - package com.tenio.network.http.servlet.base
 
com.tenio.network.netty - package com.tenio.network.netty
 
com.tenio.network.netty.datagram - package com.tenio.network.netty.datagram
 
com.tenio.network.netty.socket - package com.tenio.network.netty.socket
 
com.tenio.network.netty.ws - package com.tenio.network.netty.ws
 
com.tenio.pool - package com.tenio.pool
 
com.tenio.server - package com.tenio.server
 
com.tenio.task - package com.tenio.task
 
com.tenio.task.schedule - package com.tenio.task.schedule
 
com.tenio.utility - package com.tenio.utility
 
compareTo(Object) - Method in class com.tenio.engine.fsm.entity.Telegram
 
Component<T> - Class in com.tenio.engine.fsm
An Entity represents a single object in your world.
Component(T) - Constructor for class com.tenio.engine.fsm.Component
 
ComponentIsNotExistedException - Exception in com.tenio.exception
 
ComponentIsNotExistedException() - Constructor for exception com.tenio.exception.ComponentIsNotExistedException
 
ComponentPool - Class in com.tenio.engine.ecs.pool
The object pool mechanism for IComponent.
ComponentPool(Class<?>) - Constructor for class com.tenio.engine.ecs.pool.ComponentPool
 
Connection - Class in com.tenio.network
A connection is created when the first request from client reach and pass in your server.
Connection(IEventManager, ConnectionType, int) - Constructor for class com.tenio.network.Connection
 
CONNECTION_CLOSE - com.tenio.configuration.constant.LEvent
When a client is disconnected from your server for any reason, you can handle it in this event.
CONNECTION_EXCEPTION - com.tenio.configuration.constant.LEvent
The exceptions occur when the server handles messages from a client.
CONNECTION_FAILED - com.tenio.configuration.constant.TEvent
When the client sends its first request to your server and because of some reason it was treated as an invalid connection.
CONNECTION_SUCCESS - com.tenio.configuration.constant.TEvent
When the client sends its first request to your server and is made a valid connection.
ConnectionType - Enum in com.tenio.configuration.constant
 
Constants - Class in com.tenio.configuration.constant
All base constants' values for the server are defined here.
contain(String) - Method in class com.tenio.api.PlayerApi
Determine if the player has existed or not.
contain(String) - Method in class com.tenio.api.RoomApi
Determine if the room has existed or not.
contain(String) - Method in class com.tenio.engine.fsm.EntityManager
 
contain(String) - Method in class com.tenio.entity.AbstractRoom
 
contain(String) - Method in class com.tenio.entity.element.TObject
 
contain(String) - Method in interface com.tenio.entity.manager.IPlayerManager
Determine if the player has existed or not.
contain(String) - Method in interface com.tenio.entity.manager.IRoomManager
Determine if the room has existed or not.
contain(String) - Method in class com.tenio.entity.manager.PlayerManager
 
contain(String) - Method in class com.tenio.entity.manager.RoomManager
 
contains(String) - Method in class com.tenio.engine.heartbeat.HeartBeatManager
 
contains(String) - Method in interface com.tenio.engine.heartbeat.IHeartBeatManager
Check if a heart-beat is existed or not.
CONTENT_TYPE_JSON - Static variable in class com.tenio.configuration.constant.Constants
The HTTP response with content type in JSON
CONTENT_TYPE_TEXT - Static variable in class com.tenio.configuration.constant.Constants
The HTTP response with content type in text
Context<TEntity extends Entity> - Class in com.tenio.engine.ecs.base
A context manages the life-cycle of entities and groups.
Context(ContextInfo, Class<TEntity>) - Constructor for class com.tenio.engine.ecs.base.Context
 
ContextInfo - Class in com.tenio.engine.ecs.base
The context information
ContextInfo(String, String[], Class<?>[], int) - Constructor for class com.tenio.engine.ecs.base.ContextInfo
 
count() - Method in class com.tenio.api.PlayerApi
 
count() - Method in class com.tenio.engine.fsm.EntityManager
 
count() - Method in class com.tenio.entity.AbstractRoom
 
count() - Method in interface com.tenio.entity.manager.IPlayerManager
 
count() - Method in interface com.tenio.entity.manager.IRoomManager
 
count() - Method in class com.tenio.entity.manager.PlayerManager
 
count() - Method in class com.tenio.entity.manager.RoomManager
 
countPlayers() - Method in class com.tenio.api.PlayerApi
 
countPlayers() - Method in interface com.tenio.entity.manager.IPlayerManager
 
countPlayers() - Method in class com.tenio.entity.manager.PlayerManager
 
create(String, AbstractHeartBeat) - Method in class com.tenio.api.HeartBeatApi
Create a new heart-beat.
create(String, AbstractHeartBeat) - Method in class com.tenio.engine.heartbeat.HeartBeatManager
 
create(String, AbstractHeartBeat) - Method in interface com.tenio.engine.heartbeat.IHeartBeatManager
Create a new heart-beat.
create(String, ScheduledFuture<?>) - Method in interface com.tenio.task.ITaskManager
Create a new task.
create(String, ScheduledFuture<?>) - Method in class com.tenio.task.TaskManager
 
CREATED_ROOM - com.tenio.configuration.constant.TEvent
Created a new room.
createEntity() - Method in class com.tenio.engine.ecs.base.Context
 
createEntity() - Method in interface com.tenio.engine.ecs.base.IContext
Create new entity
createRandomPath(int, float, float, float, float) - Method in class com.tenio.engine.physic.common.Path
 
createWhiskers(int, float, float, Vector2, Vector2) - Static method in class com.tenio.engine.physic.utility.Transformation
 
currentTimeSeconds() - Static method in class com.tenio.utility.TimeUtility
 

D

DATAGRAM - com.tenio.configuration.constant.ConnectionType
UDP
debug(String) - Method in class com.tenio.engine.heartbeat.AbstractHeartBeat
Display a window for debugging
debug(String, Object, String, String) - Method in class com.tenio.logger.AbstractLogger
Only use for debugging PACKAGE in the server system.
DEFAULT_ENTITY_TYPE - Static variable in class com.tenio.engine.physic.common.BaseGameEntity
 
degsToRads(float) - Static method in class com.tenio.utility.MathUtility
 
DELETE - com.tenio.configuration.constant.RestMethod
Delete
destroyAllEntities() - Method in class com.tenio.engine.ecs.base.Context
 
destroyAllEntities() - Method in interface com.tenio.engine.ecs.base.IContext
Remove all context's entities
destroyEntity(TEntity) - Method in class com.tenio.engine.ecs.base.Context
 
destroyEntity(TEntity) - Method in interface com.tenio.engine.ecs.base.IContext
Remove this entity from the current context
DISCONNECT_CONNECTION - com.tenio.configuration.constant.TEvent
When a connection between one non-connection player and your service is closed (for any reason), this event occurs.
DISCONNECT_PLAYER - com.tenio.configuration.constant.TEvent
When a connection between one player and your service is closed (for any reason), this event occurs.
dispatch(Object...) - Method in interface com.tenio.event.ISubscriber
To dispatch results from one event.
dispatchMessage(double, String, String, int, TObject) - Method in class com.tenio.engine.fsm.MessageDispatcher
Given a message, a receiver, a sender and any time delay , this function routes the message to the correct agent (if no delay) or stores in the message queue to be dispatched at the correct time
dispose(String) - Method in class com.tenio.api.HeartBeatApi
Dispose a heart-beat.
dispose(String) - Method in class com.tenio.engine.heartbeat.HeartBeatManager
 
dispose(String) - Method in interface com.tenio.engine.heartbeat.IHeartBeatManager
Dispose a heart-beat.
div(float) - Method in class com.tenio.engine.physic.math.Vector2
 
div(X, float) - Method in class com.tenio.engine.physic.utility.Smoother
 
doAccounting(TrafficCounter) - Method in class com.tenio.network.netty.GlobalTrafficShapingHandlerCustomize
 
doDelete(HttpServletRequest, HttpServletResponse) - Method in class com.tenio.network.http.servlet.TServlet
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class com.tenio.network.http.servlet.PingServlet
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class com.tenio.network.http.servlet.TServlet
 
doPost(HttpServletRequest, HttpServletResponse) - Method in class com.tenio.network.http.servlet.PingServlet
 
doPost(HttpServletRequest, HttpServletResponse) - Method in class com.tenio.network.http.servlet.TServlet
 
doPut(HttpServletRequest, HttpServletResponse) - Method in class com.tenio.network.http.servlet.TServlet
 
DPoint() - Constructor for class com.tenio.engine.physic.graphic.window.Windows.DPoint
 
drawCircle(float, float, float) - Method in class com.tenio.engine.physic.graphic.Paint
 
drawCircle(int, int, float) - Method in class com.tenio.engine.physic.graphic.Paint
 
drawCircle(Vector2, float) - Method in class com.tenio.engine.physic.graphic.Paint
 
drawClosedShape(List<Vector2>) - Method in class com.tenio.engine.physic.graphic.Paint
 
drawCross(Vector2, int) - Method in class com.tenio.engine.physic.graphic.Paint
 
drawDot(int, int, Color) - Method in class com.tenio.engine.physic.graphic.Paint
 
drawDot(Vector2, Color) - Method in class com.tenio.engine.physic.graphic.Paint
 
drawLine(float, float, float, float) - Method in class com.tenio.engine.physic.graphic.Paint
 
drawLine(int, int, int, int) - Method in class com.tenio.engine.physic.graphic.Paint
 
drawLine(Vector2, Vector2) - Method in class com.tenio.engine.physic.graphic.Paint
 
drawLineWithArrow(Vector2, Vector2, float) - Method in class com.tenio.engine.physic.graphic.Paint
 
drawPolyLine(List<Vector2>) - Method in class com.tenio.engine.physic.graphic.Paint
 
drawRect(float, float, float, float) - Method in class com.tenio.engine.physic.graphic.Paint
 
drawRect(int, int, int, int) - Method in class com.tenio.engine.physic.graphic.Paint
 
drawTextAtPosition(float, float, String) - Method in class com.tenio.engine.physic.graphic.Paint
 
drawTextAtPosition(int, int, String) - Method in class com.tenio.engine.physic.graphic.Paint
 
drawTextAtPosition(Vector2, String) - Method in class com.tenio.engine.physic.graphic.Paint
 
DuplicatedComponentException - Exception in com.tenio.exception
 
DuplicatedComponentException() - Constructor for exception com.tenio.exception.DuplicatedComponentException
 
DuplicatedEntityException - Exception in com.tenio.exception
 
DuplicatedEntityException() - Constructor for exception com.tenio.exception.DuplicatedEntityException
 
DuplicatedPlayerException - Exception in com.tenio.exception
 
DuplicatedPlayerException() - Constructor for exception com.tenio.exception.DuplicatedPlayerException
 
DuplicatedRoomException - Exception in com.tenio.exception
 
DuplicatedRoomException() - Constructor for exception com.tenio.exception.DuplicatedRoomException
 
DuplicatedUriAndMethodException - Exception in com.tenio.exception
 
DuplicatedUriAndMethodException(String) - Constructor for exception com.tenio.exception.DuplicatedUriAndMethodException
 

E

ECSHeartBeat - Class in com.tenio.engine.heartbeat.ecs
The ECS system base on heart-beat
ECSHeartBeat(int, int) - Constructor for class com.tenio.engine.heartbeat.ecs.ECSHeartBeat
 
emit(LEvent, Object...) - Method in class com.tenio.event.internal.LEventManager
Emit an event with its parameters
emit(LEvent, Object...) - Method in class com.tenio.event.internal.LEventProducer
Emit an event with its parameters
emit(LEvent, T...) - Method in class com.tenio.event.internal.LEventHandler
Emit an event with its parameters
emit(TEvent, Object...) - Method in class com.tenio.event.external.TEventManager
Emit an event with its parameters.
emit(TEvent, Object...) - Method in class com.tenio.event.external.TEventProducer
Emit an event with its parameters.
emit(TEvent, T...) - Method in class com.tenio.event.external.TEventHandler
Emit an event with its parameters.
emit(T...) - Method in interface com.tenio.event.IEvent
To invoke an event.
EMPTY_ROOM_SCAN - Static variable in class com.tenio.configuration.BaseConfiguration
Get the period checking in seconds which server can keep the empty room
EmptyRoomScanTask - Class in com.tenio.task.schedule
To remove the empty room (a room without any players) in period time.
EmptyRoomScanTask(RoomApi, int) - Constructor for class com.tenio.task.schedule.EmptyRoomScanTask
 
enableLoop(boolean) - Method in class com.tenio.engine.physic.common.Path
 
enableOpaqueText(boolean) - Method in class com.tenio.engine.physic.graphic.Paint
 
enableTag(boolean) - Method in class com.tenio.engine.physic.common.BaseGameEntity
 
enforceNonPenetrationConstraint(T, conT) - Static method in class com.tenio.engine.physic.utility.EntitiesRelationship
 
enter(T) - Method in class com.tenio.engine.fsm.entity.State
This will execute when the state is entered
EntitiesRelationship - Class in com.tenio.engine.physic.utility
Some useful entities functions 3D Matrix Transforms
EntitiesRelationship() - Constructor for class com.tenio.engine.physic.utility.EntitiesRelationship
 
Entity - Class in com.tenio.engine.ecs.base
An entity is something that exists in your game world.
Entity - Annotation Type in com.tenio.annotation
This annotation is treated as a "Table".
Entity() - Constructor for class com.tenio.engine.ecs.base.Entity
 
EntityManager - Class in com.tenio.engine.fsm
This class for managing entities.
EntityManager() - Constructor for class com.tenio.engine.fsm.EntityManager
 
EntityPool - Class in com.tenio.engine.ecs.pool
The object pool mechanism for IEntity.
EntityPool(Class<? extends Entity>, ContextInfo) - Constructor for class com.tenio.engine.ecs.pool.EntityPool
 
EntityProcess - Class in com.tenio.entity.annotation
This class is used to export game objects with supported annotation to JSON data (backup) or create game objects from JSON data (restore).
EntityProcess() - Constructor for class com.tenio.entity.annotation.EntityProcess
 
EPSILON_FLOAT - Static variable in class com.tenio.utility.MathUtility
 
equals(Object) - Method in class com.tenio.engine.ecs.base.Entity
 
equals(Object) - Method in class com.tenio.engine.fsm.entity.Telegram
 
error(Throwable, Object...) - Method in class com.tenio.logger.AbstractLogger
Only use for EXCEPTION detection in the server system.
ErrorMsg - Class in com.tenio.configuration.constant
All base errors' messages for the server are defined here.
EventManager - Class in com.tenio.event
Manage all events in the server
EventManager() - Constructor for class com.tenio.event.EventManager
 
exceptionCaught(ChannelHandlerContext, Throwable) - Method in class com.tenio.network.netty.socket.NettySocketHandler
 
exceptionCaught(ChannelHandlerContext, Throwable) - Method in class com.tenio.network.netty.ws.NettyWSHandler
 
execute(float) - Method in interface com.tenio.engine.ecs.system.IExecuteSystem
 
execute(float) - Method in class com.tenio.engine.ecs.system.Systems
Calls execute() on all IExecuteSystem and other nested systems instances in the order you added them.
execute(T) - Method in class com.tenio.engine.fsm.entity.State
This is the state's normal update function
exit(T) - Method in class com.tenio.engine.fsm.entity.State
This will execute when the state is exited
exportToJSON(Object) - Static method in class com.tenio.entity.annotation.EntityProcess
Convert the desired object to JSON data

F

fillRect(Color, int, int, int, int) - Method in class com.tenio.engine.physic.graphic.Paint
 
FORCE_PLAYER_LEAVE_ROOM - com.tenio.configuration.constant.LEvent
When a player is forced to leave his current room.
FOREGROUND_BLUE - Static variable in class com.tenio.engine.physic.graphic.window.Windows
 
FOREGROUND_GREEN - Static variable in class com.tenio.engine.physic.graphic.window.Windows
 
FOREGROUND_INTENSITY - Static variable in class com.tenio.engine.physic.graphic.window.Windows
 
FOREGROUND_RED - Static variable in class com.tenio.engine.physic.graphic.window.Windows
 
FSMComponent<T> - Class in com.tenio.engine.fsm.entity
Check out the FSM for more details.
FSMComponent(MessageDispatcher, T) - Constructor for class com.tenio.engine.fsm.entity.FSMComponent
 

G

Geometry - Class in com.tenio.engine.physic.utility
Some useful 2D geometry functions
Geometry() - Constructor for class com.tenio.engine.physic.utility.Geometry
 
Geometry.SpanType - Enum in com.tenio.engine.physic.utility
 
get() - Method in class com.tenio.api.pool.ArrayPool
 
get() - Method in class com.tenio.api.pool.ObjectPool
 
get() - Method in class com.tenio.engine.ecs.pool.ComponentPool
 
get() - Method in class com.tenio.engine.ecs.pool.EntityPool
 
get() - Method in class com.tenio.logger.pool.StringBuilderPool
 
get() - Method in class com.tenio.message.pool.ByteArrayInputStreamPool
 
get() - Method in interface com.tenio.pool.IElementPool
Retrieves an element in the current pool
get(String) - Method in class com.tenio.api.PlayerApi
Retrieve a player by the player's name.
get(String) - Method in class com.tenio.api.RoomApi
Retrieve a room by its ID.
get(String) - Method in class com.tenio.engine.fsm.EntityManager
 
get(String) - Method in interface com.tenio.entity.manager.IPlayerManager
Retrieve a player by the player's name.
get(String) - Method in interface com.tenio.entity.manager.IRoomManager
Retrieve a room by its ID.
get(String) - Method in class com.tenio.entity.manager.PlayerManager
 
get(String) - Method in class com.tenio.entity.manager.RoomManager
 
GET - com.tenio.configuration.constant.RestMethod
Retrieve
getAddress() - Method in class com.tenio.network.Connection
Retrieve the "connection" address in string type
getAllPlayerBaseInfos() - Method in class com.tenio.api.PlayerApi
 
getAllRoomInfos() - Method in class com.tenio.api.RoomApi
 
getArray() - Method in class com.tenio.message.codec.ByteArrayInputStream
 
getArrayPack() - Method in class com.tenio.api.MessageApi
 
getAttrVal(Node, String) - Static method in class com.tenio.utility.XMLUtility
Retrieve node's attribute value
getBoolean(int) - Method in class com.tenio.entity.element.TArray
 
getBoolean(String) - Method in class com.tenio.configuration.BaseConfiguration
 
getBoolean(String) - Method in class com.tenio.entity.element.TObject
 
getBottom() - Method in class com.tenio.engine.physic.common.InvertedAABBox2D
 
getBoundingRadius() - Method in class com.tenio.engine.physic.common.BaseGameEntity
 
getCapacity() - Method in class com.tenio.entity.AbstractRoom
 
getCCU() - Method in class com.tenio.api.PlayerApi
 
getCircleArea(float) - Static method in class com.tenio.engine.physic.utility.Geometry
 
getClosestEntityLineSegmentIntersection(conT, String, Vector2, Vector2) - Static method in class com.tenio.engine.physic.utility.EntitiesRelationship
 
getClosestEntityLineSegmentIntersection(conT, String, Vector2, Vector2, float) - Static method in class com.tenio.engine.physic.utility.EntitiesRelationship
 
getComponent(int) - Method in class com.tenio.engine.ecs.base.Entity
 
getComponent(int) - Method in interface com.tenio.engine.ecs.base.IEntity
Retrieves the component by index
getComponentNames() - Method in class com.tenio.engine.ecs.base.ContextInfo
 
getComponentPools() - Method in class com.tenio.engine.ecs.base.Entity
 
getComponentPools() - Method in interface com.tenio.engine.ecs.base.IEntity
Retrieves the list of component pools
getComponents() - Method in class com.tenio.engine.ecs.base.Entity
 
getComponents() - Method in interface com.tenio.engine.ecs.base.IEntity
Retrieves a list of the current entity
getComponentTypes() - Method in class com.tenio.engine.ecs.base.ContextInfo
 
getConfiguration() - Method in class com.tenio.AbstractApp
 
getConnection(int) - Method in class com.tenio.entity.AbstractPlayer
 
getContext() - Method in class com.tenio.engine.ecs.system.AbstractSystem
Retrieves the current context
getContextInfo() - Method in class com.tenio.engine.ecs.base.Context
 
getContextInfo() - Method in class com.tenio.engine.ecs.base.Entity
 
getContextInfo() - Method in interface com.tenio.engine.ecs.base.IContext
Retrieves the context information
getContextInfo() - Method in interface com.tenio.engine.ecs.base.IEntity
Retrieves the context information
getCreatedTime() - Method in class com.tenio.engine.fsm.entity.Telegram
 
getCurrentState() - Method in class com.tenio.engine.fsm.entity.FSMComponent
 
getCurrentWayPoint() - Method in class com.tenio.engine.physic.common.Path
 
getDelayTime() - Method in class com.tenio.engine.fsm.entity.Telegram
 
getDescription() - Method in class com.tenio.configuration.Path
 
getDispatcher() - Method in class com.tenio.engine.fsm.entity.FSMComponent
 
getDistancePointSegment(Vector2, Vector2, Vector2) - Static method in class com.tenio.engine.physic.utility.Geometry
 
getDistancePointSegmentSqr(Vector2, Vector2, Vector2) - Static method in class com.tenio.engine.physic.utility.Geometry
 
getDistanceRayCircleIntersect(Vector2, Vector2, Vector2, float) - Static method in class com.tenio.engine.physic.utility.Geometry
 
getDistanceRayPlaneIntersection(Vector2, Vector2, Vector2, Vector2) - Static method in class com.tenio.engine.physic.utility.Geometry
 
getDistanceSqrValue(Vector2) - Method in class com.tenio.engine.physic.math.Vector2
Squared version of distance: Calculates the Euclidean distance squared between two vectors
getDistanceTwoSegmentIntersect(Vector2, Vector2, Vector2, Vector2) - Static method in class com.tenio.engine.physic.utility.Geometry
 
getDistanceValue(Vector2) - Method in class com.tenio.engine.physic.math.Vector2
Calculates the Euclidean distance between two vectors
getDotProductValue(Vector2) - Method in class com.tenio.engine.physic.math.Vector2
Calculates the dot product
getDouble(int) - Method in class com.tenio.entity.element.TArray
 
getDouble(String) - Method in class com.tenio.entity.element.TObject
 
getEntitesCount() - Method in class com.tenio.engine.ecs.base.Context
 
getEntitesCount() - Method in interface com.tenio.engine.ecs.base.IContext
Retrieves the number of entities
getEntities() - Method in class com.tenio.engine.ecs.base.Context
 
getEntities() - Method in interface com.tenio.engine.ecs.base.IContext
Retrieves all entities of the current context
getEntity(String) - Method in class com.tenio.engine.ecs.base.Context
 
getEntity(String) - Method in interface com.tenio.engine.ecs.base.IContext
Retrieves an entity by entity id
getEntityId() - Method in class com.tenio.entity.AbstractPlayer
 
getEntityLineSegmentIntersections(conT, String, Vector2, Vector2) - Static method in class com.tenio.engine.physic.utility.EntitiesRelationship
 
getEventHandler() - Method in class com.tenio.event.external.TEventProducer
Retrieves an event handler
getEventHandler() - Method in class com.tenio.event.internal.LEventProducer
Retrieves an event handler
getEventManager() - Method in class com.tenio.server.Server
 
getExtension() - Method in class com.tenio.AbstractApp
 
getExtension() - Method in class com.tenio.server.Server
 
getExternal() - Method in class com.tenio.event.EventManager
 
getExternal() - Method in interface com.tenio.event.IEventManager
 
getFirstPlayer() - Method in class com.tenio.entity.AbstractRoom
 
getFloat(int) - Method in class com.tenio.entity.element.TArray
 
getFloat(String) - Method in class com.tenio.configuration.BaseConfiguration
 
getFloat(String) - Method in class com.tenio.entity.element.TObject
 
getFontHeight() - Method in class com.tenio.engine.physic.graphic.Paint
 
getFrontOfNeighbor() - Method in class com.tenio.engine.physic.utility.CellSpacePartition
 
getGetEntityLineSegmentIntersections(conT, String, Vector2, Vector2, float) - Static method in class com.tenio.engine.physic.utility.EntitiesRelationship
 
getGlobalState() - Method in class com.tenio.engine.fsm.entity.FSMComponent
 
getHeading() - Method in class com.tenio.engine.physic.common.MoveableEntity
 
getHeadingX() - Method in class com.tenio.engine.physic.common.MoveableEntity
 
getHeadingY() - Method in class com.tenio.engine.physic.common.MoveableEntity
 
getHeartBeatApi() - Method in class com.tenio.server.Server
 
getHttpPorts() - Method in class com.tenio.configuration.BaseConfiguration
 
getId() - Method in class com.tenio.engine.ecs.base.Entity
 
getId() - Method in interface com.tenio.engine.ecs.base.IEntity
Retrieves the entity's id
getId() - Method in class com.tenio.engine.fsm.entity.AbstractEntity
Retrieves the entity id
getId() - Method in class com.tenio.entity.AbstractRoom
 
getIndex() - Method in class com.tenio.network.Connection
 
getInfo() - Method in class com.tenio.engine.fsm.entity.Telegram
 
getInstance() - Static method in class com.tenio.engine.physic.graphic.Paint
 
getInstance() - Static method in class com.tenio.logger.pool.StringBuilderPool
 
getInstance() - Static method in class com.tenio.server.Server
 
getInt(int) - Method in class com.tenio.entity.element.TArray
 
getInt(String) - Method in class com.tenio.configuration.BaseConfiguration
 
getInt(String) - Method in class com.tenio.entity.element.TObject
 
getInternal() - Method in class com.tenio.event.EventManager
 
getInternal() - Method in interface com.tenio.event.IEventManager
 
getLeft() - Method in class com.tenio.engine.physic.common.InvertedAABBox2D
 
getLength() - Method in class com.tenio.engine.physic.math.Vector2
 
getLength() - Method in class com.tenio.message.codec.ByteArrayInputStream
 
getLengthSqr() - Method in class com.tenio.engine.physic.math.Vector2
 
getLong(int) - Method in class com.tenio.entity.element.TArray
 
getLong(String) - Method in class com.tenio.entity.element.TObject
 
getMass() - Method in class com.tenio.engine.physic.common.MoveableEntity
 
getMaxForce() - Method in class com.tenio.engine.physic.common.MoveableEntity
 
getMaxSpeed() - Method in class com.tenio.engine.physic.common.MoveableEntity
 
getMaxTurnRate() - Method in class com.tenio.engine.physic.common.MoveableEntity
 
getMessageApi() - Method in class com.tenio.server.Server
 
getMethod() - Method in class com.tenio.configuration.Path
 
getName() - Method in class com.tenio.configuration.Http
 
getName() - Method in class com.tenio.configuration.Path
 
getName() - Method in class com.tenio.configuration.Sock
 
getName() - Method in class com.tenio.engine.ecs.base.ContextInfo
 
getName() - Method in class com.tenio.entity.AbstractPlayer
 
getName() - Method in class com.tenio.entity.AbstractRoom
 
getNameOfCurrentState() - Method in class com.tenio.engine.fsm.entity.FSMComponent
Only be used during debugging to grab the name of the current state
getNextOfNeighbor() - Method in class com.tenio.engine.physic.utility.CellSpacePartition
 
getNode(Node, String) - Static method in class com.tenio.utility.XMLUtility
Retrieve a node
getNodeList(Node, String) - Static method in class com.tenio.utility.XMLUtility
Get a list of nodes
getNodeValue(Node) - Static method in class com.tenio.utility.XMLUtility
Get the node content
getNumberComponents() - Method in class com.tenio.engine.ecs.base.ContextInfo
 
getObject(int) - Method in class com.tenio.entity.element.TArray
 
getObject(String) - Method in class com.tenio.entity.element.TObject
 
getOffset() - Method in class com.tenio.message.codec.ByteArrayInputStream
 
getPaths() - Method in class com.tenio.configuration.Http
 
getPlayerApi() - Method in class com.tenio.server.Server
 
getPlayers() - Method in class com.tenio.entity.AbstractRoom
 
getPointTwoSegmentIntersect(Vector2, Vector2, Vector2, Vector2) - Static method in class com.tenio.engine.physic.utility.Geometry
 
getPoolSize() - Method in class com.tenio.api.pool.ArrayPool
 
getPoolSize() - Method in class com.tenio.api.pool.ObjectPool
 
getPoolSize() - Method in class com.tenio.engine.ecs.pool.ComponentPool
 
getPoolSize() - Method in class com.tenio.engine.ecs.pool.EntityPool
 
getPoolSize() - Method in class com.tenio.logger.pool.StringBuilderPool
 
getPoolSize() - Method in class com.tenio.message.pool.ByteArrayInputStreamPool
 
getPoolSize() - Method in interface com.tenio.pool.IElementPool
Retrieves the pool size
getPort() - Method in class com.tenio.configuration.Http
 
getPort() - Method in class com.tenio.configuration.Sock
 
getPosition() - Method in class com.tenio.engine.physic.common.BaseGameEntity
 
getPositionX() - Method in class com.tenio.engine.physic.common.BaseGameEntity
 
getPositionY() - Method in class com.tenio.engine.physic.common.BaseGameEntity
 
getPreviousState() - Method in class com.tenio.engine.fsm.entity.FSMComponent
 
getReaderTime() - Method in class com.tenio.entity.AbstractPlayer
 
getReceiver() - Method in class com.tenio.engine.fsm.entity.Telegram
 
getRemainTime(String) - Method in interface com.tenio.task.ITaskManager
Retrieve the remain time of one task.
getRemainTime(String) - Method in class com.tenio.task.TaskManager
 
getRight() - Method in class com.tenio.engine.physic.common.InvertedAABBox2D
 
getRoom() - Method in class com.tenio.entity.AbstractPlayer
 
getRoomApi() - Method in class com.tenio.server.Server
 
getRotation() - Method in class com.tenio.engine.physic.common.MoveableEntity
 
gets() - Method in class com.tenio.api.PlayerApi
 
gets() - Method in class com.tenio.api.RoomApi
 
gets() - Method in class com.tenio.engine.fsm.EntityManager
Retrieves the list of entities
gets() - Method in interface com.tenio.entity.manager.IPlayerManager
 
gets() - Method in interface com.tenio.entity.manager.IRoomManager
 
gets() - Method in class com.tenio.entity.manager.PlayerManager
 
gets() - Method in class com.tenio.entity.manager.RoomManager
 
getScale() - Method in class com.tenio.engine.physic.common.BaseGameEntity
 
getScaleX() - Method in class com.tenio.engine.physic.common.BaseGameEntity
 
getScaleY() - Method in class com.tenio.engine.physic.common.BaseGameEntity
 
getSender() - Method in class com.tenio.engine.fsm.entity.Telegram
 
getSide() - Method in class com.tenio.engine.physic.common.MoveableEntity
 
getSideX() - Method in class com.tenio.engine.physic.common.MoveableEntity
 
getSideY() - Method in class com.tenio.engine.physic.common.MoveableEntity
 
getSignValue(Vector2) - Method in class com.tenio.engine.physic.math.Vector2
Get sign value between 2 vectors
getSocketPorts() - Method in class com.tenio.configuration.BaseConfiguration
 
getSpeed() - Method in class com.tenio.engine.physic.common.MoveableEntity
 
getSpeedSqr() - Method in class com.tenio.engine.physic.common.MoveableEntity
 
getState() - Method in class com.tenio.entity.AbstractPlayer
 
getState() - Method in class com.tenio.entity.AbstractRoom
 
getString(int) - Method in class com.tenio.entity.element.TArray
 
getString(String) - Method in class com.tenio.configuration.BaseConfiguration
 
getString(String) - Method in class com.tenio.entity.element.TObject
 
getSub() - Method in class com.tenio.event.external.TSubscriber
 
getSub() - Method in class com.tenio.event.internal.LSubscriber
 
getTangentPoints(Vector2, float, Vector2) - Static method in class com.tenio.engine.physic.utility.Geometry
 
getTArray(int) - Method in class com.tenio.entity.element.TArray
 
getTArray(String) - Method in class com.tenio.entity.element.TObject
 
getTaskApi() - Method in class com.tenio.server.Server
 
getTaskRemainTime(String) - Method in class com.tenio.api.TaskApi
Retrieve the remain time of one task.
getThis() - Method in class com.tenio.network.Connection
Retrieve this connection itself by channel
getThis() - Method in class com.tenio.network.netty.NettyConnection
 
getTObject(String) - Method in class com.tenio.entity.element.TObject
 
getTop() - Method in class com.tenio.engine.physic.common.InvertedAABBox2D
 
getTwoCirclesIntersectionArea(float, float, float, float, float, float) - Static method in class com.tenio.engine.physic.utility.Geometry
 
getTwoCirclesIntersectionPoints(float, float, float, float, float, float) - Static method in class com.tenio.engine.physic.utility.Geometry
 
getType() - Method in class com.tenio.configuration.Sock
 
getType() - Method in class com.tenio.engine.fsm.entity.Telegram
 
getType() - Method in class com.tenio.engine.physic.common.BaseGameEntity
 
getType() - Method in class com.tenio.event.external.TSubscriber
 
getType() - Method in class com.tenio.event.internal.LSubscriber
 
getType() - Method in class com.tenio.network.Connection
Retrieve the "connection" type, see ConnectionType
getUri() - Method in class com.tenio.configuration.Path
 
getUsername() - Method in class com.tenio.network.Connection
Retrieve the "connection" id, this id is player's name, see AbstractPlayer.getName()
getVelocity() - Method in class com.tenio.engine.physic.common.MoveableEntity
 
getVelocityX() - Method in class com.tenio.engine.physic.common.MoveableEntity
 
getVelocityY() - Method in class com.tenio.engine.physic.common.MoveableEntity
 
getVersion() - Method in class com.tenio.configuration.Path
 
getWayPoints() - Method in class com.tenio.engine.physic.common.Path
 
getWebSocketPorts() - Method in class com.tenio.configuration.BaseConfiguration
 
getWhereIsPoint(Vector2, Vector2, Vector2) - Static method in class com.tenio.engine.physic.utility.Geometry
 
getWriterTime() - Method in class com.tenio.entity.AbstractPlayer
 
GlobalTrafficShapingHandlerCustomize - Class in com.tenio.network.netty
This implementation of the GlobalTrafficShapingHandler is for global traffic shaping, that is to say a global limitation of the bandwidth, whatever the number of opened channels.
GlobalTrafficShapingHandlerCustomize(IEventManager, ScheduledExecutorService, long, long, long) - Constructor for class com.tenio.network.netty.GlobalTrafficShapingHandlerCustomize
 

H

HALF_PI - Static variable in class com.tenio.utility.MathUtility
 
handle(HttpServletRequest, HttpServletResponse) - Method in class com.tenio.network.http.servlet.base.BaseProcessServlet
 
handle(HttpServletRequest, HttpServletResponse) - Method in interface com.tenio.network.http.servlet.IServletHandler
 
handleMessage(Telegram) - Method in class com.tenio.engine.fsm.entity.AbstractEntity
All entities can communicate using messages.
handleMessage(Telegram) - Method in class com.tenio.engine.fsm.entity.FSMComponent
 
hasAnyComponent(int...) - Method in class com.tenio.engine.ecs.base.Entity
 
hasAnyComponent(int...) - Method in interface com.tenio.engine.ecs.base.IEntity
Check if one of components in list are existed or not
hasComponent(int) - Method in class com.tenio.engine.ecs.base.Entity
 
hasComponent(int) - Method in interface com.tenio.engine.ecs.base.IEntity
Check if the component is existed or not
hasComponents(int...) - Method in class com.tenio.engine.ecs.base.Entity
 
hasComponents(int...) - Method in interface com.tenio.engine.ecs.base.IEntity
Check if all the components in list are existed or not
hasConnection(int) - Method in class com.tenio.entity.AbstractPlayer
 
hasEntity(TEntity) - Method in class com.tenio.engine.ecs.base.Context
 
hasEntity(TEntity) - Method in interface com.tenio.engine.ecs.base.IContext
Check if the entity is existed by entity id
hashCode() - Method in class com.tenio.engine.ecs.base.Entity
 
hashCode() - Method in class com.tenio.engine.fsm.entity.Telegram
It is generally necessary to override the hashCode method whenever equals method is overridden, so as to maintain the general contract for the hashCode method, which states that equal objects must have equal hash codes.
hasHeaderKey(HttpServletRequest, String) - Method in class com.tenio.network.http.servlet.base.BaseServlet
 
hasHeaderKey(HttpServletRequest, String) - Method in class com.tenio.network.http.servlet.BaseResponse
 
hasSubscriber(LEvent) - Method in class com.tenio.event.internal.LEventManager
Check if an event has any subscribers or not.
hasSubscriber(TEvent) - Method in class com.tenio.event.external.TEventManager
Check if an event has any subscribers or not.
HEADER_BYTES - Static variable in class com.tenio.configuration.constant.Constants
In TCP, because of the stream transmission, it's necessary to know a data package's length for extracting the number of bytes of its content (divide stream data into smaller package data).
HeartBeatApi - Class in com.tenio.api
This class provides you a necessary interface for managing heart beats.
HeartBeatApi(IHeartBeatManager) - Constructor for class com.tenio.api.HeartBeatApi
 
HeartBeatManager - Class in com.tenio.engine.heartbeat
The Java ExecutorService is a construct that allows you to pass a task to be executed by a thread asynchronously.
HeartBeatManager() - Constructor for class com.tenio.engine.heartbeat.HeartBeatManager
 
HeartbeatNotFoundException - Exception in com.tenio.exception
 
HeartbeatNotFoundException() - Constructor for exception com.tenio.exception.HeartbeatNotFoundException
 
Http - Class in com.tenio.configuration
 
Http(String, int) - Constructor for class com.tenio.configuration.Http
 
HTTP - com.tenio.configuration.constant.ConnectionType
HTTP
HTTP_HANDLER - com.tenio.configuration.constant.TEvent
The main process for a HTTP request which comes from client parameter[0] REST method, see RestMethod parameter[1] The request object, see HttpServletRequest parameter[2] The response object, see HttpServletResponse Return null
HTTP_REQUEST - com.tenio.configuration.constant.TEvent
You can authenticate the request in here parameter[0] REST method, see RestMethod parameter[1] The request object, see HttpServletRequest parameter[2] The response object, see HttpServletResponse Return null if the confirmation was passed or HttpServletResponse object otherwise
HttpManagerTask - Class in com.tenio.network.http
The HTTP request and response handlers class
HttpManagerTask(IEventManager, String, int, List<Path>) - Constructor for class com.tenio.network.http.HttpManagerTask
 

I

IBackup<T> - Interface in com.tenio.entity.annotation
This interface is used for backing up and restoring an object.
IComponent - Interface in com.tenio.engine.ecs.base
A component can be likened to a C struct.
IContext<TEntity extends IEntity> - Interface in com.tenio.engine.ecs.base
A context is used to manage all relative entities and components.
IDLE_READER - Static variable in class com.tenio.configuration.BaseConfiguration
The max IDLE time in seconds which server can wait from the last getting message from client
IDLE_WRITER - Static variable in class com.tenio.configuration.BaseConfiguration
The max IDLE time in seconds which server can wait from the last sending message to client
IElementPool<Element> - Interface in com.tenio.pool
In an application, you can have resources that are limited or time-consuming to create a new one.
IEntity - Interface in com.tenio.engine.ecs.base
An entity is something that exists in your game world.
IEvent<T> - Interface in com.tenio.event
This function interface provides one method for invoking an event.
IEventManager - Interface in com.tenio.event
Manage all events in the server
IExecuteSystem - Interface in com.tenio.engine.ecs.system
Execute systems run once per frame.
IExtension - Interface in com.tenio.extension
An entry point class is the first one you start to handle your own logic in-game.
IHeartBeatManager - Interface in com.tenio.engine.heartbeat
The Java ExecutorService is a construct that allows you to pass a task to be executed by a thread asynchronously.
IInitializeSystem - Interface in com.tenio.engine.ecs.system
Initialize systems run once at the start of your program.
IManager - Interface in com.tenio.entity.manager
 
IMessageListener - Interface in com.tenio.engine.fsm
This interface provides a method for listening all messages of entities
INetwork - Interface in com.tenio.network
A network is one of the most important parts of this server for the main purpose of communication.
info(StringBuilder, StringBuilder) - Method in class com.tenio.logger.AbstractLogger
Always use AbstractLogger.buildgen(Object...) for creating StringBuilder to avoid memory leak.
info(StringBuilder, StringBuilder, Object) - Method in class com.tenio.logger.AbstractLogger
Always use AbstractLogger.buildgen(Object...) for creating StringBuilder to avoid memory leak.
info(StringBuilder, StringBuilder, StringBuilder) - Method in class com.tenio.logger.AbstractLogger
Always use AbstractLogger.buildgen(Object...) for creating StringBuilder to avoid memory leak.
info(StringBuilder, String, StringBuilder) - Method in class com.tenio.logger.AbstractLogger
Always use AbstractLogger.buildgen(Object...) for creating StringBuilder to avoid memory leak.
info(String, Object) - Method in class com.tenio.logger.AbstractLogger
Always use AbstractLogger.buildgen(Object...) for creating StringBuilder to avoid memory leak.
info(String, StringBuilder) - Method in class com.tenio.logger.AbstractLogger
Always use AbstractLogger.buildgen(Object...) for creating StringBuilder to avoid memory leak.
info(String, String, Object) - Method in class com.tenio.logger.AbstractLogger
Always use AbstractLogger.buildgen(Object...) for creating StringBuilder to avoid memory leak.
info(String, String, StringBuilder) - Method in class com.tenio.logger.AbstractLogger
Always use AbstractLogger.buildgen(Object...) for creating StringBuilder to avoid memory leak.
initChannel(DatagramChannel) - Method in class com.tenio.network.netty.datagram.NettyDatagramInitializer
 
initChannel(SocketChannel) - Method in class com.tenio.network.netty.socket.NettySocketInitializer
 
initChannel(SocketChannel) - Method in class com.tenio.network.netty.ws.NettyWSInitializer
 
initialize() - Method in interface com.tenio.engine.ecs.system.IInitializeSystem
 
initialize() - Method in class com.tenio.engine.ecs.system.Systems
Calls initialize() on all IInitializeSystem and other nested systems instances in the order you added them.
initialize() - Method in class com.tenio.engine.physic.math.Matrix3
Create an identity matrix
initialize() - Method in interface com.tenio.extension.IExtension
Initialize list subscribers, use Event Emitter with this method on(String name, ISubscriber sub)
initialize(int) - Method in class com.tenio.api.HeartBeatApi
The number of maximum heart-beats that the server can handle.
initialize(int) - Method in class com.tenio.engine.heartbeat.HeartBeatManager
 
initialize(int) - Method in interface com.tenio.engine.heartbeat.IHeartBeatManager
The number of maximum heart-beats that the server can handle.
initialize(BaseConfiguration) - Method in class com.tenio.engine.heartbeat.HeartBeatManager
 
initialize(BaseConfiguration) - Method in interface com.tenio.engine.heartbeat.IHeartBeatManager
The number of maximum heart-beats that the server can handle.
initialize(BaseConfiguration) - Method in interface com.tenio.entity.manager.IManager
Initialization
initialize(BaseConfiguration) - Method in class com.tenio.entity.manager.PlayerManager
 
initialize(BaseConfiguration) - Method in class com.tenio.entity.manager.RoomManager
 
initializeConnections(int) - Method in class com.tenio.entity.AbstractPlayer
 
insideRegion(Vector2, int, int, int, int) - Static method in class com.tenio.engine.physic.utility.Geometry
 
insideRegion(Vector2, Vector2, Vector2) - Static method in class com.tenio.engine.physic.utility.Geometry
 
InvertedAABBox2D - Class in com.tenio.engine.physic.common
AABB stands for Axis-aligned Bounding Box.
IPlayerManager - Interface in com.tenio.entity.manager
Manage all your players (AbstractPlayer) on the server.
IRender - Interface in com.tenio.engine.physic.graphic
This interface provides a method for rending objects to a screen
IRenderSystem - Interface in com.tenio.engine.ecs.system
Display simple shapes for debugging.
IRoomManager - Interface in com.tenio.entity.manager
Manage all your rooms (AbstractRoom) on the server.
isDefined(String) - Method in class com.tenio.configuration.BaseConfiguration
Determine if this configuration is existed or defined.
isEmpty() - Method in class com.tenio.entity.AbstractRoom
 
isEndOfNeighbors() - Method in class com.tenio.engine.physic.utility.CellSpacePartition
 
isEndOfWayPoints() - Method in class com.tenio.engine.physic.common.Path
 
isEqual(float, float) - Static method in class com.tenio.utility.MathUtility
Compares two real numbers
isEqual(Vector2) - Method in class com.tenio.engine.physic.math.Vector2
 
IServletHandler - Interface in com.tenio.network.http.servlet
 
isFull() - Method in class com.tenio.entity.AbstractRoom
 
isIgnoreTimeout() - Method in class com.tenio.entity.AbstractPlayer
 
isInState(State<T>) - Method in class com.tenio.engine.fsm.entity.FSMComponent
 
isNaN(T) - Static method in class com.tenio.utility.MathUtility
 
isNPC() - Method in class com.tenio.entity.AbstractPlayer
Check the player's role
isOverlapped(T, conT) - Static method in class com.tenio.engine.physic.utility.EntitiesRelationship
 
isOverlapped(T, conT, float) - Static method in class com.tenio.engine.physic.utility.EntitiesRelationship
 
isOverlappedWith(InvertedAABBox2D) - Method in class com.tenio.engine.physic.common.InvertedAABBox2D
 
isPointInCircle(Vector2, float, Vector2) - Static method in class com.tenio.engine.physic.utility.Geometry
 
isRayCircleIntersect(Vector2, Vector2, Vector2, float) - Static method in class com.tenio.engine.physic.utility.Geometry
 
isRotatedHeadingToFacePosition(Vector2) - Method in class com.tenio.engine.physic.common.MoveableEntity
Given a target position, this method rotates the entity's heading and side vectors by an amount not greater than m_dMaxTurnRate until it directly faces the target.
isRunning() - Method in class com.tenio.engine.ecs.system.Systems
Retrieves the systems status
isRunningTask(String) - Method in class com.tenio.api.TaskApi
Check if the desired task is running or not.
isSecondInFOVOfFirst(Vector2, Vector2, Vector2, float) - Static method in class com.tenio.engine.physic.utility.Geometry
 
isSegmentCircleClosestIntersectPoint(Vector2, Vector2, Vector2, float, Vector2) - Static method in class com.tenio.engine.physic.utility.Geometry
 
isSegmentCircleIntersectAtPoint(Vector2, Vector2, Vector2, float) - Static method in class com.tenio.engine.physic.utility.Geometry
 
isSegmentObjectIntersect(Vector2, Vector2, List<Vector2>) - Static method in class com.tenio.engine.physic.utility.Geometry
 
isSpeedMaxedOut() - Method in class com.tenio.engine.physic.common.MoveableEntity
 
isState(int) - Method in class com.tenio.entity.AbstractPlayer
 
isState(int) - Method in class com.tenio.entity.AbstractRoom
 
isTagged() - Method in class com.tenio.engine.physic.common.BaseGameEntity
 
isTwoCirclesEnclosed(float, float, float, float, float, float) - Static method in class com.tenio.engine.physic.utility.Geometry
 
isTwoCirclesOverlapped(float, float, float, float, float, float) - Static method in class com.tenio.engine.physic.utility.Geometry
 
isTwoCirclesOverlapped(Vector2, float, Vector2, float) - Static method in class com.tenio.engine.physic.utility.Geometry
 
isTwoObjectsIntersect(List<Vector2>, List<Vector2>) - Static method in class com.tenio.engine.physic.utility.Geometry
 
isTwoSegmentIntersect(Vector2, Vector2, Vector2, Vector2) - Static method in class com.tenio.engine.physic.utility.Geometry
 
isType(ConnectionType) - Method in class com.tenio.network.Connection
Determine if the current type of connection is matched or not?
isType(TEvent) - Method in class com.tenio.event.external.TSubscriber
 
ISubscriber - Interface in com.tenio.event
This function interface provides one method for dispatching the results from an event.
ISystem - Interface in com.tenio.engine.ecs.system
The base system.
isZero() - Method in class com.tenio.engine.physic.math.Vector2
 
ITask - Interface in com.tenio.task.schedule
 
ITaskManager - Interface in com.tenio.task
This class uses Java scheduler (ScheduledFuture) to manage your tasks.
ITearDownSystem - Interface in com.tenio.engine.ecs.system
Teardown systems run once at the end of your program.

K

KEEP_PLAYER_ON_DISCONNECT - Static variable in class com.tenio.configuration.BaseConfiguration
When the server get disconnection of one client, can be hold its player instance until timeout
KEY_CONNECTION - Static variable in class com.tenio.network.netty.NettyConnection
Save this connection itself to its channel.
KEY_SCHEDULE_CCU_SCAN - Static variable in class com.tenio.configuration.constant.Constants
A unique key for the CCU scan schedule.
KEY_SCHEDULE_EMPTY_ROOM_SCAN - Static variable in class com.tenio.configuration.constant.Constants
A unique key for the Empty Room scan schedule.
KEY_SCHEDULE_HTTP_MANAGER - Static variable in class com.tenio.configuration.constant.Constants
 
KEY_SCHEDULE_TIME_OUT_SCAN - Static variable in class com.tenio.configuration.constant.Constants
A unique key for the Time Out scan schedule.
KEY_STR_CONNECTION - Static variable in class com.tenio.network.Connection
 
kill(String) - Method in class com.tenio.api.TaskApi
Kill or stop a running task.
kill(String) - Method in interface com.tenio.task.ITaskManager
Kill or stop a running task.
kill(String) - Method in class com.tenio.task.TaskManager
 

L

LEvent - Enum in com.tenio.configuration.constant
This Enum defines all logic events in the main thread.
LEventHandler<T> - Class in com.tenio.event.internal
This class for handling events and these subscribers.
LEventHandler() - Constructor for class com.tenio.event.internal.LEventHandler
 
LEventManager - Class in com.tenio.event.internal
This class for managing events and these subscribers.
LEventManager() - Constructor for class com.tenio.event.internal.LEventManager
 
LEventProducer - Class in com.tenio.event.internal
Only for creating an event handler object, see LEventHandler
LEventProducer() - Constructor for class com.tenio.event.internal.LEventProducer
 
listen(IMessageListener) - Method in class com.tenio.engine.fsm.MessageDispatcher
 
load(String) - Method in class com.tenio.configuration.BaseConfiguration
Read file content and convert it to configuration values.
loadIcon(String) - Static method in class com.tenio.engine.physic.graphic.window.Windows
 
login(AbstractPlayer) - Method in class com.tenio.api.PlayerApi
Add a new player to your server (this player is known as one NCP or a BOT) without a attached connection.
login(AbstractPlayer, Connection) - Method in class com.tenio.api.PlayerApi
Add a new player to your server (this player was upgraded from one connection).
logOut(AbstractPlayer) - Method in class com.tenio.api.PlayerApi
Remove a player from your server.
logOut(String) - Method in class com.tenio.api.PlayerApi
Remove a player from your server.
LSubscriber - Class in com.tenio.event.internal
An object which creates a mapping between an event type with a subscriber

M

MAIN_CONNECTION_NOT_FOUND - Static variable in class com.tenio.configuration.constant.ErrorMsg
When you try to attach a UDP connection to one player with a non-existing of TCP connection.
MANUALY_CLOSE_CONNECTION - com.tenio.configuration.constant.LEvent
This event is called when you let the player leave by his desire.
mark(int) - Method in class com.tenio.message.codec.ByteArrayInputStream
 
markSupported() - Method in class com.tenio.message.codec.ByteArrayInputStream
 
MathUtility - Class in com.tenio.utility
A collection of utility methods for calculations.
MathUtility() - Constructor for class com.tenio.utility.MathUtility
 
Matrix3 - Class in com.tenio.engine.physic.math
A 3x3 row major matrix.
MAX_FLOAT - Static variable in class com.tenio.utility.MathUtility
 
MAX_HEARTBEAT - Static variable in class com.tenio.configuration.BaseConfiguration
The maximum number of heartbeats which game can handle
MAX_INT - Static variable in class com.tenio.utility.MathUtility
 
MAX_PLAYER - Static variable in class com.tenio.configuration.BaseConfiguration
The maximum number of players which game can handle
maxOf(T, T) - Static method in class com.tenio.utility.MathUtility
 
MessageApi - Class in com.tenio.api
This class provides you a necessary interface for sending messages from the server to clients.
MessageApi(IEventManager) - Constructor for class com.tenio.api.MessageApi
 
MessageDispatcher - Class in com.tenio.engine.fsm
This class is used for sending messages between entities
MessageDispatcher(EntityManager) - Constructor for class com.tenio.engine.fsm.MessageDispatcher
 
MessagePacker - Class in com.tenio.message.codec
When sending a message through the Internet, it's necessary to convert one object data to its corresponding serialize data.
MessagePacker() - Constructor for class com.tenio.message.codec.MessagePacker
 
MF_CHECKED - Static variable in class com.tenio.engine.physic.graphic.window.Windows
 
MF_UNCHECKED - Static variable in class com.tenio.engine.physic.graphic.window.Windows
 
MFS_CHECKED - Static variable in class com.tenio.engine.physic.graphic.window.Windows
 
MFS_UNCHECKED - Static variable in class com.tenio.engine.physic.graphic.window.Windows
 
MIN_FLOAT - Static variable in class com.tenio.utility.MathUtility
 
MIN_INT - Static variable in class com.tenio.utility.MathUtility
 
minOf(T, T) - Static method in class com.tenio.utility.MathUtility
 
MoveableEntity - Class in com.tenio.engine.physic.common
A base class defining an entity that moves.
MoveableEntity(Vector2, float, Vector2, float, Vector2, float, Vector2, float, float) - Constructor for class com.tenio.engine.physic.common.MoveableEntity
 
MsgPackConverter - Class in com.tenio.message.codec
MessagePack is an efficient binary serialization format.
MsgPackConverter() - Constructor for class com.tenio.message.codec.MsgPackConverter
 
mul(float) - Method in class com.tenio.engine.physic.math.Vector2
 

N

name() - Method in annotation type com.tenio.annotation.Column
 
NettyConnection - Class in com.tenio.network.netty
Use Netty to create a connection instance @see Connection
NettyDatagramHandler - Class in com.tenio.network.netty.datagram
In this server, a UDP connection is treated as a sub-connection.
NettyDatagramHandler(int, IEventManager, BaseConfiguration) - Constructor for class com.tenio.network.netty.datagram.NettyDatagramHandler
 
NettyDatagramInitializer - Class in com.tenio.network.netty.datagram
This class for initializing a channel.
NettyDatagramInitializer(int, IEventManager, GlobalTrafficShapingHandlerCustomize, BaseConfiguration) - Constructor for class com.tenio.network.netty.datagram.NettyDatagramInitializer
 
NettyNetwork - Class in com.tenio.network.netty
Use Netty to handle a network instance @see INetwork
NettyNetwork() - Constructor for class com.tenio.network.netty.NettyNetwork
 
NettySocketHandler - Class in com.tenio.network.netty.socket
Receive all messages sent from clients.
NettySocketHandler(int, IEventManager, BaseConfiguration) - Constructor for class com.tenio.network.netty.socket.NettySocketHandler
 
NettySocketInitializer - Class in com.tenio.network.netty.socket
This class for initializing a channel.
NettySocketInitializer(int, IEventManager, GlobalTrafficShapingHandlerCustomize, BaseConfiguration) - Constructor for class com.tenio.network.netty.socket.NettySocketInitializer
 
NettyWSHandler - Class in com.tenio.network.netty.ws
Receive all messages sent from clients.
NettyWSHandler(int, IEventManager, BaseConfiguration) - Constructor for class com.tenio.network.netty.ws.NettyWSHandler
 
NettyWSHandShake - Class in com.tenio.network.netty.ws
WebSocket is distinct from HTTP.
NettyWSHandShake(int, IEventManager, BaseConfiguration) - Constructor for class com.tenio.network.netty.ws.NettyWSHandShake
 
NettyWSInitializer - Class in com.tenio.network.netty.ws
This class for initializing a channel.
NettyWSInitializer(int, IEventManager, GlobalTrafficShapingHandlerCustomize, BaseConfiguration) - Constructor for class com.tenio.network.netty.ws.NettyWSInitializer
 
newInstance() - Static method in class com.tenio.engine.physic.common.InvertedAABBox2D
 
newInstance() - Static method in class com.tenio.engine.physic.math.Matrix3
 
newInstance() - Static method in class com.tenio.engine.physic.math.Vector2
 
newInstance() - Static method in class com.tenio.entity.element.TArray
 
newInstance() - Static method in class com.tenio.entity.element.TObject
 
newInstance() - Static method in class com.tenio.message.codec.ByteArrayInputStream
 
newInstance(int, IEventManager, ConnectionType, Channel) - Static method in class com.tenio.network.netty.NettyConnection
 
newInstance(LEvent, ISubscriber) - Static method in class com.tenio.event.internal.LSubscriber
 
newInstance(TEvent, ISubscriber) - Static method in class com.tenio.event.external.TSubscriber
 
normalize() - Method in class com.tenio.engine.physic.math.Vector2
Normalize a 2D Vector
NotDefinedSocketConnectionException - Exception in com.tenio.exception
 
NotDefinedSocketConnectionException() - Constructor for exception com.tenio.exception.NotDefinedSocketConnectionException
 
NotDefinedSocketConnectionException(String) - Constructor for exception com.tenio.exception.NotDefinedSocketConnectionException
 
NotDefinedSubscribersException - Exception in com.tenio.exception
 
NotDefinedSubscribersException() - Constructor for exception com.tenio.exception.NotDefinedSubscribersException
 
NotDefinedSubscribersException(TEvent...) - Constructor for exception com.tenio.exception.NotDefinedSubscribersException
 
notInsideRegion(Vector2, Vector2, Vector2) - Static method in class com.tenio.engine.physic.utility.Geometry
 
NullElementPoolException - Exception in com.tenio.exception
 
NullElementPoolException() - Constructor for exception com.tenio.exception.NullElementPoolException
 
NullElementPoolException(String) - Constructor for exception com.tenio.exception.NullElementPoolException
 
NullPlayerNameException - Exception in com.tenio.exception
 
NullPlayerNameException() - Constructor for exception com.tenio.exception.NullPlayerNameException
 
NullRoomException - Exception in com.tenio.exception
 
NullRoomException() - Constructor for exception com.tenio.exception.NullRoomException
 

O

ObjectPool - Class in com.tenio.api.pool
The object pool mechanism for TObject.
ObjectPool() - Constructor for class com.tenio.api.pool.ObjectPool
 
on(LEvent, ISubscriber) - Method in class com.tenio.event.internal.LEventManager
Add a subscriber's handler.
on(TEvent, ISubscriber) - Method in class com.tenio.event.external.TEventManager
Add a subscriber's handler.
ON_PLANE - com.tenio.engine.physic.utility.Geometry.SpanType
 
onListen(Telegram, boolean) - Method in interface com.tenio.engine.fsm.IMessageListener
To listen message communication
onMessage(T, Telegram) - Method in class com.tenio.engine.fsm.entity.State
This executes if the agent receives a message from the message dispatcher, see MessageDispatcher

P

pack(byte[]) - Static method in class com.tenio.message.codec.MessagePacker
Add the header-length value to the package's header
Paint - Class in com.tenio.engine.physic.graphic
This class provides some methods for painting objects to a screen
parseFile(File) - Static method in class com.tenio.utility.XMLUtility
To parse an XML file
parseStream(InputStream) - Static method in class com.tenio.utility.XMLUtility
To parse a stream
Path - Class in com.tenio.configuration
 
Path - Class in com.tenio.engine.physic.common
This class is used to define, manage, and traverse a path (defined by a series of 2D vectors)
Path() - Constructor for class com.tenio.engine.physic.common.Path
 
Path(int, float, float, float, float, boolean) - Constructor for class com.tenio.engine.physic.common.Path
 
Path(String, RestMethod, String, String, int) - Constructor for class com.tenio.configuration.Path
 
paused(boolean) - Method in class com.tenio.engine.ecs.system.Systems
Pause the systems running
perpendicular() - Method in class com.tenio.engine.physic.math.Vector2
 
PI - Static variable in class com.tenio.utility.MathUtility
 
PING_PATH - Static variable in class com.tenio.configuration.constant.Constants
The default URI path when a HTTP server was started (To confirm if the server was started or not)
PingServlet - Class in com.tenio.network.http.servlet
 
PingServlet() - Constructor for class com.tenio.network.http.servlet.PingServlet
 
PLANE_BACKSIDE - com.tenio.engine.physic.utility.Geometry.SpanType
 
PLANE_FRONT - com.tenio.engine.physic.utility.Geometry.SpanType
 
PLAYER_ALREADY_LEAVE_ROOM - Static variable in class com.tenio.configuration.constant.ErrorMsg
When you try to remove a player from his room, but he has already leave.
PLAYER_BEFORE_LEAVE_ROOM - com.tenio.configuration.constant.TEvent
This event occurs when a player before leaves his current room.
PLAYER_IN_FAILED - com.tenio.configuration.constant.TEvent
When a connection has failed to login to your server for some reason.
PLAYER_IN_SUCCESS - com.tenio.configuration.constant.TEvent
This event let you know when one connection has login successful and became a valid player.
PLAYER_IS_EXISTED - Static variable in class com.tenio.configuration.constant.ErrorMsg
When you try to add a player that has the same name with one appeared on the server.
PLAYER_IS_INVALID - Static variable in class com.tenio.configuration.constant.ErrorMsg
When you try to add an invalid player (wrong credentials or your own logic handle) into the server.
PLAYER_JOIN_ROOM - com.tenio.configuration.constant.TEvent
When a player wants to join one room, its request can be seen here.
PLAYER_LEFT_ROOM - com.tenio.configuration.constant.TEvent
The player just finished left his current room.
PLAYER_NOT_FOUND - Static variable in class com.tenio.configuration.constant.ErrorMsg
When you try to retrieve a non-existing player.
PLAYER_RECONNECT_REQUEST - com.tenio.configuration.constant.TEvent
When a player is disconnected from your server without its desired, the player instance is not be removed immediately.
PLAYER_RECONNECT_SUCCESS - com.tenio.configuration.constant.TEvent
When a client makes reconnection successful and you can inform him here by a message.
PLAYER_TIMEOUT - com.tenio.configuration.constant.TEvent
When a player is in IDLE status in a long time (exceeded the time out, that can be defined in configuration: BaseConfiguration).
PLAYER_WAS_IN_ROOM - Static variable in class com.tenio.configuration.constant.ErrorMsg
When you try to add a player that duplicates in one room.
PlayerApi - Class in com.tenio.api
This class provides you a necessary interface for managing players.
PlayerApi(IPlayerManager, IRoomManager) - Constructor for class com.tenio.api.PlayerApi
 
playerJoinRoom(AbstractRoom, AbstractPlayer) - Method in class com.tenio.api.PlayerApi
Request one player to join a room.
playerJoinRoom(AbstractRoom, AbstractPlayer) - Method in interface com.tenio.entity.manager.IRoomManager
Request one player to join a room.
playerJoinRoom(AbstractRoom, AbstractPlayer) - Method in class com.tenio.entity.manager.RoomManager
 
playerLeaveRoom(AbstractPlayer, boolean) - Method in class com.tenio.api.PlayerApi
Allow a player to leave his current room.
playerLeaveRoom(AbstractPlayer, boolean) - Method in interface com.tenio.entity.manager.IRoomManager
Allow a player to leave his current room.
playerLeaveRoom(AbstractPlayer, boolean) - Method in class com.tenio.entity.manager.RoomManager
 
PlayerManager - Class in com.tenio.entity.manager
Manage all your players (AbstractPlayer) on the server.
PlayerManager(IEventManager) - Constructor for class com.tenio.entity.manager.PlayerManager
 
pointsToWorldSpace(List<Vector2>, Vector2, Vector2, Vector2) - Static method in class com.tenio.engine.physic.utility.Transformation
 
pointsToWorldSpace(List<Vector2>, Vector2, Vector2, Vector2, Vector2) - Static method in class com.tenio.engine.physic.utility.Transformation
 
pointToLocalSpace(Vector2, Vector2, Vector2, Vector2) - Static method in class com.tenio.engine.physic.utility.Transformation
 
pointToWorldSpace(Vector2, Vector2, Vector2, Vector2) - Static method in class com.tenio.engine.physic.utility.Transformation
 
POST - com.tenio.configuration.constant.RestMethod
Create
PPoint() - Constructor for class com.tenio.engine.physic.graphic.window.Windows.PPoint
 
PPoint(int, int) - Constructor for class com.tenio.engine.physic.graphic.window.Windows.PPoint
 
PPoint(Point) - Constructor for class com.tenio.engine.physic.graphic.window.Windows.PPoint
 
process(String, HttpServletRequest, JSONObject, HttpServletResponse) - Method in class com.tenio.network.http.servlet.BaseResponse
 
put(Object) - Method in class com.tenio.entity.element.TArray
 
PUT - com.tenio.configuration.constant.RestMethod
Update

Q

QUARTER_PI - Static variable in class com.tenio.utility.MathUtility
 

R

randBool() - Static method in class com.tenio.utility.MathUtility
 
randFloat() - Static method in class com.tenio.utility.MathUtility
 
randGaussian() - Static method in class com.tenio.utility.MathUtility
 
randGaussian(float, float) - Static method in class com.tenio.utility.MathUtility
 
randInRange(float, float) - Static method in class com.tenio.utility.MathUtility
 
randInt(int, int) - Static method in class com.tenio.utility.MathUtility
 
randomClamped() - Static method in class com.tenio.utility.MathUtility
 
REACH_MAX_CONNECTION - Static variable in class com.tenio.configuration.constant.ErrorMsg
When you try to create a new connection and that exceeds the number of allowed connections.
read() - Method in class com.tenio.message.codec.ByteArrayInputStream
 
read(byte[], int, int) - Method in class com.tenio.message.codec.ByteArrayInputStream
 
RECEIVED_FROM_CONNECTION - com.tenio.configuration.constant.TEvent
When a connection was established, the next requests are handled in this event.
RECEIVED_FROM_PLAYER - com.tenio.configuration.constant.TEvent
With a valid player, his message can be seen here.
register(AbstractEntity) - Method in class com.tenio.engine.fsm.EntityManager
Register an entity to this management
remove(AbstractPlayer) - Method in class com.tenio.entity.AbstractRoom
Remove a player from this room, this action was handled by system logic.
remove(AbstractPlayer) - Method in interface com.tenio.entity.manager.IPlayerManager
Remove a player from your server.
remove(AbstractPlayer) - Method in class com.tenio.entity.manager.PlayerManager
 
remove(AbstractRoom) - Method in class com.tenio.api.RoomApi
Remove a room from your server.
remove(AbstractRoom) - Method in interface com.tenio.entity.manager.IRoomManager
Remove a room from your server.
remove(AbstractRoom) - Method in class com.tenio.entity.manager.RoomManager
 
remove(String) - Method in class com.tenio.engine.fsm.EntityManager
 
REMOVE_ROOM - com.tenio.configuration.constant.TEvent
The room will be removed, but in this event, all the players and their state are preserved.
removeAllComponents() - Method in class com.tenio.engine.ecs.base.Entity
 
removeAllComponents() - Method in interface com.tenio.engine.ecs.base.IEntity
Remove all components
removeAllConnections(AbstractPlayer) - Method in interface com.tenio.entity.manager.IPlayerManager
When a player is disconnected, all the related connections need to be deleted too.
removeAllConnections(AbstractPlayer) - Method in class com.tenio.entity.manager.PlayerManager
 
removeComponent(int) - Method in class com.tenio.engine.ecs.base.Entity
 
removeComponent(int) - Method in interface com.tenio.engine.ecs.base.IEntity
Remove component by index
removeThis() - Method in class com.tenio.network.Connection
Remove the connection object from channel cache
removeThis() - Method in class com.tenio.network.netty.NettyConnection
 
removeUsername() - Method in class com.tenio.network.Connection
Remove the username value from channel cache
render(Paint) - Method in interface com.tenio.engine.ecs.system.IRenderSystem
 
render(Paint) - Method in class com.tenio.engine.ecs.system.Systems
Calls render() on all IRenderSystem and other nested systems instances in the order you added them.
render(Paint) - Method in class com.tenio.engine.physic.common.InvertedAABBox2D
 
render(Paint) - Method in class com.tenio.engine.physic.common.Path
 
render(Paint) - Method in interface com.tenio.engine.physic.graphic.IRender
To render objects to screen
render(Paint) - Method in class com.tenio.engine.physic.utility.CellSpacePartition
 
repay(IComponent) - Method in class com.tenio.engine.ecs.pool.ComponentPool
 
repay(IEntity) - Method in class com.tenio.engine.ecs.pool.EntityPool
 
repay(TArray) - Method in class com.tenio.api.pool.ArrayPool
 
repay(TObject) - Method in class com.tenio.api.pool.ObjectPool
 
repay(ByteArrayInputStream) - Method in class com.tenio.message.pool.ByteArrayInputStreamPool
 
repay(Element) - Method in interface com.tenio.pool.IElementPool
When you finished using an element, repay (free) it for the reusing
repay(StringBuilder) - Method in class com.tenio.logger.pool.StringBuilderPool
 
replaceComponent(int, IComponent) - Method in class com.tenio.engine.ecs.base.Entity
 
replaceComponent(int, IComponent) - Method in interface com.tenio.engine.ecs.base.IEntity
Replace old component by new component by index
reset() - Method in class com.tenio.engine.ecs.base.Context
 
reset() - Method in class com.tenio.engine.ecs.base.Entity
 
reset() - Method in interface com.tenio.engine.ecs.base.IContext
Reset the current context
reset() - Method in interface com.tenio.engine.ecs.base.IEntity
Reset entity
reset() - Method in class com.tenio.message.codec.ByteArrayInputStream
 
reset(byte[]) - Method in class com.tenio.message.codec.ByteArrayInputStream
 
reset(byte[], int, int) - Method in class com.tenio.message.codec.ByteArrayInputStream
 
reset(int) - Method in class com.tenio.message.codec.ByteArrayInputStream
 
RestMethod - Enum in com.tenio.configuration.constant
 
restore() - Method in interface com.tenio.entity.annotation.IBackup
Convert a JSON data to an object data
reverse() - Method in class com.tenio.engine.physic.math.Vector2
 
revertToPreviousState() - Method in class com.tenio.engine.fsm.entity.FSMComponent
Change state back to the previous state
ROOM_IS_EXISTED - Static variable in class com.tenio.configuration.constant.ErrorMsg
When you try to add a room that has the same id with one appeared on the server.
ROOM_IS_FULL - Static variable in class com.tenio.configuration.constant.ErrorMsg
When you try to add a player in one room and that exceeds the room's capacity.
RoomApi - Class in com.tenio.api
This class provides you a necessary interface for managing rooms.
RoomApi(IRoomManager) - Constructor for class com.tenio.api.RoomApi
 
RoomManager - Class in com.tenio.entity.manager
Manage all your rooms (AbstractRoom) on the server.
RoomManager(IEventManager) - Constructor for class com.tenio.entity.manager.RoomManager
 
rotate(float) - Method in class com.tenio.engine.physic.math.Matrix3
Create a rotation matrix
rotate(Vector2, Vector2) - Method in class com.tenio.engine.physic.math.Matrix3
Create a rotation matrix from a 2D vector
run() - Method in class com.tenio.network.http.HttpManagerTask
 
run() - Method in class com.tenio.task.schedule.CCUScanTask
 
run() - Method in class com.tenio.task.schedule.EmptyRoomScanTask
 
run() - Method in interface com.tenio.task.schedule.ITask
 
run() - Method in class com.tenio.task.schedule.TimeOutScanTask
 
run(String, ScheduledFuture<?>) - Method in class com.tenio.api.TaskApi
Create a new task.
RunningScheduledTaskException - Exception in com.tenio.exception
 
RunningScheduledTaskException() - Constructor for exception com.tenio.exception.RunningScheduledTaskException
 

S

Sanitizer - Annotation Type in com.tenio.annotation
This annotation is to standardized data.
scale(float, float) - Method in class com.tenio.engine.physic.math.Matrix3
Create a scale matrix
send(TObject) - Method in class com.tenio.network.Connection
Send a message to the client
send(TObject) - Method in class com.tenio.network.netty.NettyConnection
 
SEND_MSG_IMMEDIATELY - Static variable in class com.tenio.configuration.constant.Constants
It is used in the FSM pattern in which all entities can communicate with others by message in some delay time.
SEND_TO_PLAYER - com.tenio.configuration.constant.TEvent
When you send a message from your server to one client it can be seen here.
sendMessage(String, TObject) - Method in class com.tenio.api.HeartBeatApi
Send a message to a particular heart-beat with no delay time
sendMessage(String, TObject) - Method in class com.tenio.engine.heartbeat.HeartBeatManager
 
sendMessage(String, TObject) - Method in interface com.tenio.engine.heartbeat.IHeartBeatManager
Send a message to a particular heart-beat with no delay time
sendMessage(String, TObject, double) - Method in class com.tenio.api.HeartBeatApi
Send a message to a particular heart-beat with a delay time
sendMessage(String, TObject, double) - Method in class com.tenio.engine.heartbeat.HeartBeatManager
 
sendMessage(String, TObject, double) - Method in interface com.tenio.engine.heartbeat.IHeartBeatManager
Send a message to a particular heart-beat with a delay time
sendToConnection(Connection, String, Object) - Method in class com.tenio.api.MessageApi
Send a message for a connection
sendToConnection(Connection, String, Object, String, TArray) - Method in class com.tenio.api.MessageApi
Send a message to a connection Must use MessageApi.getArrayPack() to create data array package for avoiding memory leak.
sendToPlayer(AbstractPlayer, int, String, Object) - Method in class com.tenio.api.MessageApi
Send a message to player via his connection
sendToPlayer(AbstractPlayer, int, String, Object, String, TArray) - Method in class com.tenio.api.MessageApi
Send a message to a player Must use MessageApi.getArrayPack() to create data array package for avoiding memory leak.
sendToRoom(AbstractRoom, int, String, Object) - Method in class com.tenio.api.MessageApi
Send a message to all players of one room
sendToRoom(AbstractRoom, int, String, Object, String, TArray) - Method in class com.tenio.api.MessageApi
Send a message to all players on one room Must use MessageApi.getArrayPack() to create data array package for avoiding memory leak.
sendToRoomIgnorePlayer(AbstractPlayer, int, String, Object) - Method in class com.tenio.api.MessageApi
Send a message to all players in one room except the desired player
sendToRoomIgnorePlayer(AbstractPlayer, int, String, Object, String, TArray) - Method in class com.tenio.api.MessageApi
Send a message to all players in one room except the desired player Must use MessageApi.getArrayPack() to create data array package for avoiding memory leak.
serialize(Map<String, Object>) - Static method in class com.tenio.message.codec.MsgPackConverter
Serialize an object to an array of bytes data
Server - Class in com.tenio.server
This class manages the workflow of the current server.
SERVER_ID - Static variable in class com.tenio.configuration.BaseConfiguration
The server id (module name)
SERVER_NAME - Static variable in class com.tenio.configuration.BaseConfiguration
The server name
set(float, float) - Method in class com.tenio.engine.physic.math.Vector2
 
set(Vector2) - Method in class com.tenio.engine.physic.math.Vector2
 
setAddress(String) - Method in class com.tenio.network.Connection
Set the address
setBgColor(Color) - Method in class com.tenio.engine.physic.graphic.Paint
 
setBottom(float) - Method in class com.tenio.engine.physic.common.InvertedAABBox2D
 
setBoundingRadius(float) - Method in class com.tenio.engine.physic.common.BaseGameEntity
 
setCapacity(int) - Method in class com.tenio.entity.AbstractRoom
 
setComponent(int, IComponent) - Method in class com.tenio.engine.ecs.base.Entity
 
setComponent(int, IComponent) - Method in interface com.tenio.engine.ecs.base.IEntity
Set new component
setComponentPools(IElementPool<IComponent>[]) - Method in class com.tenio.engine.ecs.base.Entity
 
setComponentPools(IElementPool<IComponent>[]) - Method in interface com.tenio.engine.ecs.base.IEntity
Set list of component pools, each component pool manages specific component type
setConnection(Connection, int) - Method in class com.tenio.entity.AbstractPlayer
 
setContextInfo(ContextInfo) - Method in class com.tenio.engine.ecs.base.Entity
 
setContextInfo(ContextInfo) - Method in interface com.tenio.engine.ecs.base.IEntity
Set context information
setCurrentReaderTime() - Method in class com.tenio.entity.AbstractPlayer
 
setCurrentState(State<T>) - Method in class com.tenio.engine.fsm.entity.FSMComponent
Use these methods to initialize the FSM
setCurrentWriterTime() - Method in class com.tenio.entity.AbstractPlayer
 
setDelayTime(double) - Method in class com.tenio.engine.fsm.entity.Telegram
 
setEntityId(String) - Method in class com.tenio.entity.AbstractPlayer
 
setExtension(IExtension) - Method in class com.tenio.server.Server
 
setGlobalState(State<T>) - Method in class com.tenio.engine.fsm.entity.FSMComponent
The global state is called in every processing
setHeading(float, float) - Method in class com.tenio.engine.physic.common.MoveableEntity
First checks that the given heading is not a vector of zero length.
setHeading(Vector2) - Method in class com.tenio.engine.physic.common.MoveableEntity
 
setId(String) - Method in class com.tenio.engine.ecs.base.Entity
 
setId(String) - Method in interface com.tenio.engine.ecs.base.IEntity
Set new id
setId(String) - Method in class com.tenio.engine.fsm.entity.AbstractEntity
Create own entity.
setIgnoreTimeout(boolean) - Method in class com.tenio.entity.AbstractPlayer
 
setLeft(float) - Method in class com.tenio.engine.physic.common.InvertedAABBox2D
 
setLocation(float, float) - Method in class com.tenio.engine.physic.graphic.window.Windows.DPoint
 
setMaxForce(float) - Method in class com.tenio.engine.physic.common.MoveableEntity
 
setMaxSpeed(float) - Method in class com.tenio.engine.physic.common.MoveableEntity
 
setMaxTurnRate(float) - Method in class com.tenio.engine.physic.common.MoveableEntity
 
setMessageListener(TreeSet<HMessage>) - Method in class com.tenio.engine.heartbeat.AbstractHeartBeat
Set the listener for the heart-beat.
setName(String) - Method in class com.tenio.entity.AbstractRoom
 
setPath(Path) - Method in class com.tenio.engine.physic.common.Path
 
setPenColor(Color) - Method in class com.tenio.engine.physic.graphic.Paint
 
setPlayersState(int) - Method in class com.tenio.entity.AbstractRoom
Set a new state for all players in this room
setPosition(float, float) - Method in class com.tenio.engine.physic.common.BaseGameEntity
 
setPosition(Vector2) - Method in class com.tenio.engine.physic.common.BaseGameEntity
 
setPreviousState(State<T>) - Method in class com.tenio.engine.fsm.entity.FSMComponent
Set the previous state
setRemote(InetSocketAddress) - Method in class com.tenio.network.Connection
Set the current address for your "connection" (only need for Socket type)
setRemote(InetSocketAddress) - Method in class com.tenio.network.netty.NettyConnection
 
setRight(float) - Method in class com.tenio.engine.physic.common.InvertedAABBox2D
 
setRoom(AbstractRoom) - Method in class com.tenio.entity.AbstractPlayer
 
setScale(float) - Method in class com.tenio.engine.physic.common.BaseGameEntity
 
setScale(float, float) - Method in class com.tenio.engine.physic.common.BaseGameEntity
 
setScale(Vector2) - Method in class com.tenio.engine.physic.common.BaseGameEntity
 
setSeed(long) - Static method in class com.tenio.utility.MathUtility
Initialize seed
setState(int) - Method in class com.tenio.entity.AbstractPlayer
 
setState(int) - Method in class com.tenio.entity.AbstractRoom
 
setTextAction1(String, Color) - Method in class com.tenio.engine.heartbeat.AbstractHeartBeat
 
setTextAction2(String, Color) - Method in class com.tenio.engine.heartbeat.AbstractHeartBeat
 
setTextAction3(String, Color) - Method in class com.tenio.engine.heartbeat.AbstractHeartBeat
 
setTextColor(int, int, int) - Method in class com.tenio.engine.physic.graphic.Paint
 
setTextColor(Color) - Method in class com.tenio.engine.physic.graphic.Paint
 
setThis() - Method in class com.tenio.network.Connection
Set this connection into current channel Note: Set value for one key.
setThis() - Method in class com.tenio.network.netty.NettyConnection
 
setToNextWayPoint() - Method in class com.tenio.engine.physic.common.Path
Moves the iterator on to the next way-point in the list
setTop(float) - Method in class com.tenio.engine.physic.common.InvertedAABBox2D
 
setType(int) - Method in class com.tenio.engine.physic.common.BaseGameEntity
 
setup() - Method in class com.tenio.network.http.HttpManagerTask
 
setUsername(String) - Method in class com.tenio.network.Connection
Set id for the "connection", this id is player's name, see AbstractPlayer.getName()
setVelocity(float, float) - Method in class com.tenio.engine.physic.common.MoveableEntity
 
setVelocity(Vector2) - Method in class com.tenio.engine.physic.common.MoveableEntity
 
setWayPoints(List<Vector2>) - Method in class com.tenio.engine.physic.common.Path
Adds a way-point to the end of the path methods for setting the path with either another path or a list of vectors
shortToByte(short) - Static method in class com.tenio.message.codec.MessagePacker
Convert a value in short type to its corresponding array of bytes.
shutdown() - Method in interface com.tenio.network.INetwork
Shutdown the network
shutdown() - Method in class com.tenio.network.netty.NettyNetwork
 
shutdown() - Method in class com.tenio.server.Server
 
skip(long) - Method in class com.tenio.message.codec.ByteArrayInputStream
 
SMALLEST_DELAY - Static variable in class com.tenio.engine.fsm.entity.Telegram
These telegrams will be stored in a priority queue.
Smoother<T extends java.lang.Number> - Class in com.tenio.engine.physic.utility
Template class to help calculate the average value of a history of values.
Smoother(int, T) - Constructor for class com.tenio.engine.physic.utility.Smoother
 
SmootherVector<T extends Vector2> - Class in com.tenio.engine.physic.utility
Template class to help calculate the average value of a history of values.
SmootherVector(int, T) - Constructor for class com.tenio.engine.physic.utility.SmootherVector
 
Sock - Class in com.tenio.configuration
 
Sock(String, ConnectionType, int) - Constructor for class com.tenio.configuration.Sock
 
SOCKET - com.tenio.configuration.constant.ConnectionType
TCP
start() - Method in class com.tenio.AbstractApp
Start The Game Server
start(BaseConfiguration) - Method in class com.tenio.server.Server
 
start(IEventManager, BaseConfiguration) - Method in interface com.tenio.network.INetwork
Start a new network for communication
start(IEventManager, BaseConfiguration) - Method in class com.tenio.network.netty.NettyNetwork
 
startDrawing(Graphics) - Method in class com.tenio.engine.physic.graphic.Paint
Call this before drawing
State<T> - Class in com.tenio.engine.fsm.entity
Check out the State for more details
State() - Constructor for class com.tenio.engine.fsm.entity.State
 
strgen(Object...) - Method in class com.tenio.logger.AbstractLogger
To generate String for logging information by the corresponding objects
StringBuilderPool - Class in com.tenio.logger.pool
The object pool mechanism for StringBuilder.
StringBuilderPool() - Constructor for class com.tenio.logger.pool.StringBuilderPool
 
sub(float, float) - Method in class com.tenio.engine.physic.math.Vector2
 
sub(Vector2) - Method in class com.tenio.engine.physic.math.Vector2
 
subscribe() - Method in class com.tenio.event.EventManager
 
subscribe() - Method in class com.tenio.event.external.TEventManager
Collect all subscribers and these corresponding events.
subscribe() - Method in interface com.tenio.event.IEventManager
Collect all subscribers and these corresponding events.
subscribe() - Method in class com.tenio.event.internal.LEventManager
Collect all subscribers and these corresponding events.
subscribe(LEvent, IEvent<T>) - Method in class com.tenio.event.internal.LEventHandler
Create a link between an event and its list of event handlers.
subscribe(TEvent, IEvent<T>) - Method in class com.tenio.event.external.TEventHandler
Create a link between an event and its list of event handlers.
Systems - Class in com.tenio.engine.ecs.system
Systems provide a convenient way to group systems.
Systems() - Constructor for class com.tenio.engine.ecs.system.Systems
Creates a new systems instance.

T

tagNeighbors(T, conT, float) - Static method in class com.tenio.engine.physic.utility.EntitiesRelationship
 
TArray - Class in com.tenio.entity.element
This is an element object in your server.
TaskApi - Class in com.tenio.api
This class provides you a necessary interface for managing tasks.
TaskApi(ITaskManager) - Constructor for class com.tenio.api.TaskApi
 
TaskManager - Class in com.tenio.task
This class uses Java scheduler (ScheduledFuture) to manage your tasks.
TaskManager() - Constructor for class com.tenio.task.TaskManager
 
tearDown() - Method in interface com.tenio.engine.ecs.system.ITearDownSystem
 
tearDown() - Method in class com.tenio.engine.ecs.system.Systems
Calls tearDown() on all ITearDownSystem and other nested Systems instances in the order you added them.
Telegram - Class in com.tenio.engine.fsm.entity
This object is used for communication between entities.
Telegram() - Constructor for class com.tenio.engine.fsm.entity.Telegram
 
Telegram(double, String, String, int) - Constructor for class com.tenio.engine.fsm.entity.Telegram
 
Telegram(double, String, String, int, TObject) - Constructor for class com.tenio.engine.fsm.entity.Telegram
 
TEvent - Enum in com.tenio.configuration.constant
This Enum defines all events in your server.
TEventHandler<T> - Class in com.tenio.event.external
This class for handling events and these subscribers.
TEventHandler() - Constructor for class com.tenio.event.external.TEventHandler
 
TEventManager - Class in com.tenio.event.external
This class for managing events and these subscribers.
TEventManager() - Constructor for class com.tenio.event.external.TEventManager
 
TEventProducer - Class in com.tenio.event.external
Only for creating an event handler object, see TEventHandler
TEventProducer() - Constructor for class com.tenio.event.external.TEventProducer
 
TIMEOUT_SCAN - Static variable in class com.tenio.configuration.BaseConfiguration
The period checking player time out in seconds
TimeOutScanTask - Class in com.tenio.task.schedule
For a player which is in IDLE mode, that means for a long time without receiving or sending any data from the server or from a client.
TimeOutScanTask(IEventManager, PlayerApi, int, int, int) - Constructor for class com.tenio.task.schedule.TimeOutScanTask
 
TimeUtility - Class in com.tenio.utility
A collection of utility methods for time.
TimeUtility() - Constructor for class com.tenio.utility.TimeUtility
 
TObject - Class in com.tenio.entity.element
This is an element object in your server.
toString() - Method in class com.tenio.configuration.BaseConfiguration
 
toString() - Method in class com.tenio.engine.ecs.base.ContextInfo
 
toString() - Method in class com.tenio.engine.fsm.entity.Telegram
 
toString() - Method in class com.tenio.engine.physic.math.Vector2
 
TRAFFIC_COUNTER_CHECK_INTERVAL - Static variable in class com.tenio.configuration.constant.Constants
The delay between two computations of performances for channels or 0 if no stats are to be computed.
TRAFFIC_COUNTER_READ_LIMIT - Static variable in class com.tenio.configuration.constant.Constants
0 or a limit in bytes/s
TRAFFIC_COUNTER_WRITE_LIMIT - Static variable in class com.tenio.configuration.constant.Constants
0 or a limit in bytes/s
Transformation - Class in com.tenio.engine.physic.utility
Some functions for converting 2D vectors between World and Local space
Transformation() - Constructor for class com.tenio.engine.physic.utility.Transformation
 
transformVector2D(Vector2) - Method in class com.tenio.engine.physic.math.Matrix3
Applies a 2D transformation matrix to a single Vector2D
transformVector2Ds(List<Vector2>) - Method in class com.tenio.engine.physic.math.Matrix3
Applies a 2D transformation matrix to a list of Vector2Ds
translate(float, float) - Method in class com.tenio.engine.physic.math.Matrix3
Create a transformation matrix
truncate(float) - Method in class com.tenio.engine.physic.math.Vector2
Adjusts x and y so that the length of the vector does not exceed max truncates a vector so that its length does not exceed max
TServlet - Class in com.tenio.network.http.servlet
 
TServlet(IEventManager, List<Path>) - Constructor for class com.tenio.network.http.servlet.TServlet
 
TSubscriber - Class in com.tenio.event.external
An object which creates a mapping between an event type with a subscriber.
TWO_PI - Static variable in class com.tenio.utility.MathUtility
 

U

unserialize(byte[]) - Static method in class com.tenio.message.codec.MsgPackConverter
Un-serialize an array of bytes data to a TObject
update(double) - Method in class com.tenio.engine.fsm.Component
This method is called every frames
update(double) - Method in class com.tenio.engine.fsm.entity.FSMComponent
Call this to update the FSM
update(float) - Method in class com.tenio.engine.fsm.entity.AbstractEntity
All entities must implement an update function
update(float) - Method in class com.tenio.engine.fsm.EntityManager
Need to call update every frame
update(float) - Method in class com.tenio.engine.fsm.MessageDispatcher
This method is called each time through the main game loop.
update(T) - Method in class com.tenio.engine.physic.utility.Smoother
Each time you want to get a new average, feed it the most recent value and this method will return an average over the last SampleSize updates
update(T) - Method in class com.tenio.engine.physic.utility.SmootherVector
Each time you want to get a new average, feed it the most recent value and this method will return an average over the last SampleSize updates
updateEntity(E, Vector2) - Method in class com.tenio.engine.physic.utility.CellSpacePartition
Update an entity's cell by calling this from your entity's Update method Checks to see if an entity has moved cells.
UTF_8 - Static variable in class com.tenio.configuration.constant.Constants
The HTTP response with UTF-8 encoding

V

valueOf(byte[]) - Static method in class com.tenio.message.codec.ByteArrayInputStream
 
valueOf(byte[], int, int) - Static method in class com.tenio.message.codec.ByteArrayInputStream
 
valueOf(float, float) - Static method in class com.tenio.engine.physic.math.Vector2
 
valueOf(float, float, float, float) - Static method in class com.tenio.engine.physic.common.InvertedAABBox2D
 
valueOf(Vector2) - Static method in class com.tenio.engine.physic.math.Vector2
 
valueOf(String) - Static method in enum com.tenio.configuration.constant.ConnectionType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.tenio.configuration.constant.LEvent
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.tenio.configuration.constant.RestMethod
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.tenio.configuration.constant.TEvent
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.tenio.engine.physic.utility.Geometry.SpanType
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.tenio.configuration.constant.ConnectionType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.tenio.configuration.constant.LEvent
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.tenio.configuration.constant.RestMethod
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.tenio.configuration.constant.TEvent
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.tenio.engine.physic.utility.Geometry.SpanType
Returns an array containing the constants of this enum type, in the order they are declared.
vec2DRotateAroundOrigin(float, float, float) - Static method in class com.tenio.engine.physic.utility.Transformation
 
vec2DRotateAroundOrigin(Vector2, float) - Static method in class com.tenio.engine.physic.utility.Transformation
 
Vector2 - Class in com.tenio.engine.physic.math
A 2D Vector.
vectorToLocalSpace(Vector2, Vector2, Vector2) - Static method in class com.tenio.engine.physic.utility.Transformation
 
vectorToWorldSpace(Vector2, Vector2, Vector2) - Static method in class com.tenio.engine.physic.utility.Transformation
 
VERSION_CODE - Static variable in class com.tenio.configuration.BaseConfiguration
This current version code of your server in integer type (can be compared)
VERSION_NAME - Static variable in class com.tenio.configuration.BaseConfiguration
This current version name of your server in string type

W

WEB_SOCKET - com.tenio.configuration.constant.ConnectionType
Web Socket
Windows - Class in com.tenio.engine.physic.graphic.window
 
Windows() - Constructor for class com.tenio.engine.physic.graphic.window.Windows
 
Windows.DPoint - Class in com.tenio.engine.physic.graphic.window
 
Windows.PPoint - Class in com.tenio.engine.physic.graphic.window
 
wrapAround(Vector2, int, int) - Static method in class com.tenio.engine.physic.utility.Transformation
 

X

x - Variable in class com.tenio.engine.physic.math.Vector2
 
XMLUtility - Class in com.tenio.utility
Parse an XML file and convert its content to nodes.
XMLUtility() - Constructor for class com.tenio.utility.XMLUtility
 

Y

y - Variable in class com.tenio.engine.physic.math.Vector2
 

Z

zero() - Method in class com.tenio.engine.physic.math.Vector2
 

_

__remote - Variable in class com.tenio.network.netty.NettyConnection
Save the client's address, in Datagram connection it is used for saving as a key of the Connection.getUsername()
_11(float) - Method in class com.tenio.engine.physic.math.Matrix3
 
_12(float) - Method in class com.tenio.engine.physic.math.Matrix3
 
_13(float) - Method in class com.tenio.engine.physic.math.Matrix3
 
_21(float) - Method in class com.tenio.engine.physic.math.Matrix3
 
_22(float) - Method in class com.tenio.engine.physic.math.Matrix3
 
_23(float) - Method in class com.tenio.engine.physic.math.Matrix3
 
_31(float) - Method in class com.tenio.engine.physic.math.Matrix3
 
_32(float) - Method in class com.tenio.engine.physic.math.Matrix3
 
_33(float) - Method in class com.tenio.engine.physic.math.Matrix3
 
_channelInactive(ChannelHandlerContext) - Method in class com.tenio.network.netty.BaseNettyHandler
When a client is disconnected from your server for any reason, you can handle it in this event (only for TCP and WebSocket)
_channelRead(ChannelHandlerContext, TObject, InetSocketAddress) - Method in class com.tenio.network.netty.BaseNettyHandler
Handle in-comming messages for the channel
_entity - Variable in class com.tenio.engine.fsm.Component
A pointer to the agent that owns this instance
_eventManager - Variable in class com.tenio.network.Connection
 
_exceptionCaught(ChannelHandlerContext, Throwable) - Method in class com.tenio.network.netty.BaseNettyHandler
Record the exceptions (only for TCP and WebSocket)
_extend(TObject) - Method in class com.tenio.configuration.BaseConfiguration
Your extension part can be handled here.
_getBoolean(Object) - Method in class com.tenio.extension.AbstractExtensionHandler
 
_getConnection(Object) - Method in class com.tenio.extension.AbstractExtensionHandler
 
_getFPS() - Method in class com.tenio.engine.heartbeat.AbstractHeartBeat
Retrieves the FPS
_getHttpServletRequest(Object) - Method in class com.tenio.extension.AbstractExtensionHandler
 
_getHttpServletResponse(Object) - Method in class com.tenio.extension.AbstractExtensionHandler
 
_getInt(Object) - Method in class com.tenio.extension.AbstractExtensionHandler
 
_getLong(Object) - Method in class com.tenio.extension.AbstractExtensionHandler
 
_getPlayer(Object) - Method in class com.tenio.extension.AbstractExtensionHandler
 
_getRestMethod(Object) - Method in class com.tenio.extension.AbstractExtensionHandler
 
_getRoom(Object) - Method in class com.tenio.extension.AbstractExtensionHandler
 
_getString(Object) - Method in class com.tenio.extension.AbstractExtensionHandler
 
_getThrowable(Object) - Method in class com.tenio.extension.AbstractExtensionHandler
 
_getTObject(Object) - Method in class com.tenio.extension.AbstractExtensionHandler
 
_handleImpl(HttpServletRequest, HttpServletResponse) - Method in class com.tenio.network.http.servlet.base.BaseProcessServlet
 
_heartbeatApi - Variable in class com.tenio.extension.AbstractExtensionHandler
 
_messageApi - Variable in class com.tenio.extension.AbstractExtensionHandler
 
_on(TEvent, ISubscriber) - Method in class com.tenio.extension.AbstractExtensionHandler
Handle your own logic with the corresponding event type
_onAction1() - Method in class com.tenio.engine.heartbeat.AbstractHeartBeat
Customize the button 1 action
_onAction1() - Method in class com.tenio.engine.heartbeat.ecs.ECSHeartBeat
 
_onAction2() - Method in class com.tenio.engine.heartbeat.AbstractHeartBeat
Customize the button 2 action
_onAction2() - Method in class com.tenio.engine.heartbeat.ecs.ECSHeartBeat
 
_onAction3() - Method in class com.tenio.engine.heartbeat.AbstractHeartBeat
Customize the button 3 action
_onAction3() - Method in class com.tenio.engine.heartbeat.ecs.ECSHeartBeat
 
_onCreate() - Method in class com.tenio.engine.heartbeat.AbstractHeartBeat
It is called when start a game loop
_onCreate() - Method in class com.tenio.engine.heartbeat.ecs.ECSHeartBeat
 
_onDispose() - Method in class com.tenio.engine.heartbeat.AbstractHeartBeat
It is called when the game loop is stopped or destroyed
_onDispose() - Method in class com.tenio.engine.heartbeat.ecs.ECSHeartBeat
 
_onMessage(TObject) - Method in class com.tenio.engine.heartbeat.AbstractHeartBeat
It is called when the heart-beat receives a message from outside
_onMessage(TObject) - Method in class com.tenio.engine.heartbeat.ecs.ECSHeartBeat
 
_onPause() - Method in class com.tenio.engine.heartbeat.AbstractHeartBeat
It is called when you call AbstractHeartBeat._pause(boolean) with true parameter
_onPause() - Method in class com.tenio.engine.heartbeat.ecs.ECSHeartBeat
 
_onRender(Paint) - Method in class com.tenio.engine.heartbeat.AbstractHeartBeat
It is called every frame after AbstractHeartBeat._onUpdate(float)
_onRender(Paint) - Method in class com.tenio.engine.heartbeat.ecs.ECSHeartBeat
 
_onResume() - Method in class com.tenio.engine.heartbeat.AbstractHeartBeat
It is called when you call AbstractHeartBeat._pause(boolean) with false parameter
_onResume() - Method in class com.tenio.engine.heartbeat.ecs.ECSHeartBeat
 
_onUpdate(float) - Method in class com.tenio.engine.heartbeat.AbstractHeartBeat
It is called every frame in a game loop
_onUpdate(float) - Method in class com.tenio.engine.heartbeat.ecs.ECSHeartBeat
 
_pause(boolean) - Method in class com.tenio.engine.heartbeat.AbstractHeartBeat
Pause game loop
_playerApi - Variable in class com.tenio.extension.AbstractExtensionHandler
 
_put(String, String) - Method in class com.tenio.configuration.BaseConfiguration
Put new configuration
_roomApi - Variable in class com.tenio.extension.AbstractExtensionHandler
 
_taskApi - Variable in class com.tenio.extension.AbstractExtensionHandler
 
A B C D E F G H I K L M N O P Q R S T U V W X Y Z _ 
All Classes All Packages