Modifier and Type | Method and Description |
---|---|
PlayerSession |
GameRoom.createPlayerSession(Player player)
Method used to create a player session object.
|
PlayerSession |
GameEvent.getPlayerSession() |
Modifier and Type | Method and Description |
---|---|
Set<PlayerSession> |
GameRoom.getSessions()
Returns a list of sessions that is held by the game room.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Player.addSession(PlayerSession session)
Add a session to a player.
|
void |
GameRoom.afterSessionConnect(PlayerSession playerSession)
Method called after the session is created.
|
boolean |
GameRoom.connectSession(PlayerSession playerSession)
When a new user connects to the game, this method will be invoked to add
the incoming session to the game room.
|
boolean |
GameRoom.disconnectSession(PlayerSession session)
Remove a session from the existing list of user sessions.
|
void |
Player.logout(PlayerSession playerSession)
When a player logs out, this method can be called.
|
void |
GameRoom.onLogin(PlayerSession playerSession)
Method called after the session is created.
|
boolean |
Player.removeSession(PlayerSession session)
Remove the players session to a game.
|
void |
GameEvent.setPlayerSession(PlayerSession playerSession) |
Modifier and Type | Method and Description |
---|---|
void |
GameRoom.setSessions(Set<PlayerSession> sessions)
Method used to set the set of user sessions to a particular game room.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultPlayerSession
This implementation of the
PlayerSession interface is used to both
receive and send messages to a particular player using the
DefaultSession.onEvent(org.menacheri.jetserver.event.Event) . |
Modifier and Type | Field and Description |
---|---|
private Set<PlayerSession> |
DefaultPlayer.playerSessions
One player can be connected to multiple games at the same time.
|
protected Set<PlayerSession> |
GameRoomSession.sessions
The set of sessions in this object.
|
protected Set<PlayerSession> |
GameRoomSession.GameRoomSessionBuilder.sessions |
Modifier and Type | Method and Description |
---|---|
PlayerSession |
DefaultPlayerSession.PlayerSessionBuilder.build() |
PlayerSession |
GameRoomSession.createPlayerSession(Player player) |
PlayerSession |
GameRoomSession.getSessionInstance(Player player) |
static PlayerSession |
Sessions.newPlayerSession(GameRoom gameRoom,
Player player) |
Modifier and Type | Method and Description |
---|---|
Set<PlayerSession> |
DefaultPlayer.getPlayerSessions() |
Set<PlayerSession> |
GameRoomSession.getSessions() |
Modifier and Type | Method and Description |
---|---|
boolean |
DefaultPlayer.addSession(PlayerSession session) |
void |
GameRoomSession.afterSessionConnect(PlayerSession playerSession) |
boolean |
GameRoomSession.connectSession(PlayerSession playerSession) |
protected void |
GameRoomSession.createAndAddEventHandlers(PlayerSession playerSession)
Method which will create and add event handlers of the player session to
the Game Room's EventDispatcher.
|
boolean |
GameRoomSession.disconnectSession(PlayerSession playerSession) |
void |
DefaultPlayer.logout(PlayerSession session) |
abstract void |
GameRoomSession.onLogin(PlayerSession playerSession) |
boolean |
DefaultPlayer.removeSession(PlayerSession session) |
Modifier and Type | Method and Description |
---|---|
GameRoomSession.GameRoomSessionBuilder |
GameRoomSession.GameRoomSessionBuilder.sessions(Set<PlayerSession> sessions) |
void |
DefaultPlayer.setPlayerSessions(Set<PlayerSession> playerSessions) |
void |
GameRoomSession.setSessions(Set<PlayerSession> sessions) |
Modifier and Type | Field and Description |
---|---|
private PlayerSession |
DefaultToServerHandler.playerSession
The player session associated with this stateful business handler.
|
Modifier and Type | Method and Description |
---|---|
PlayerSession |
DefaultToServerHandler.getPlayerSession() |
PlayerSession |
WebSocketLoginHandler.lookupSession(String reconnectKey) |
PlayerSession |
LoginHandler.lookupSession(String reconnectKey) |
Modifier and Type | Method and Description |
---|---|
void |
WebSocketLoginHandler.connectToGameRoom(GameRoom gameRoom,
PlayerSession playerSession,
org.jboss.netty.channel.ChannelFuture future) |
void |
LoginHandler.connectToGameRoom(GameRoom gameRoom,
PlayerSession playerSession,
org.jboss.netty.channel.ChannelFuture future) |
protected void |
WebSocketLoginHandler.handleReconnect(PlayerSession playerSession,
org.jboss.netty.channel.Channel channel) |
protected void |
LoginHandler.handleReconnect(PlayerSession playerSession,
org.jboss.netty.channel.Channel channel,
org.jboss.netty.buffer.ChannelBuffer buffer) |
protected void |
WebSocketLoginHandler.handleReJoin(PlayerSession playerSession,
GameRoom gameRoom,
org.jboss.netty.channel.Channel channel) |
protected void |
LoginHandler.handleReJoin(PlayerSession playerSession,
GameRoom gameRoom,
org.jboss.netty.channel.Channel channel,
org.jboss.netty.buffer.ChannelBuffer buffer) |
protected void |
LoginHandler.loginUdp(PlayerSession playerSession,
org.jboss.netty.buffer.ChannelBuffer buffer)
This method adds the player session to the
SessionRegistryService . |
Constructor and Description |
---|
DefaultToServerHandler(PlayerSession playerSession) |
Modifier and Type | Method and Description |
---|---|
void |
Protocol.applyProtocol(PlayerSession playerSession)
The main method of this interface.
|
void |
Protocol.applyProtocol(PlayerSession playerSession,
boolean clearExistingProtocolHandlers)
This method delegates to the
Protocol.applyProtocol(PlayerSession) method
after clearing the pipeline based on the input flag. |
void |
AbstractNettyProtocol.applyProtocol(PlayerSession playerSession,
boolean clearExistingProtocolHandlers) |
Modifier and Type | Method and Description |
---|---|
void |
WebSocketProtocol.applyProtocol(PlayerSession playerSession) |
void |
StringProtocol.applyProtocol(PlayerSession playerSession) |
void |
SimpleByteArrayProtocol.applyProtocol(PlayerSession playerSession) |
void |
MessageBufferProtocol.applyProtocol(PlayerSession playerSession) |
void |
ChannelBufferProtocol.applyProtocol(PlayerSession playerSession) |
void |
AMF3StringProtocol.applyProtocol(PlayerSession playerSession) |
void |
AMF3Protocol.applyProtocol(PlayerSession playerSession) |
void |
WebSocketProtocol.applyProtocol(PlayerSession playerSession,
boolean clearExistingProtocolHandlers)
Specifically overriden so that the pipeline is not cleared.
|
Modifier and Type | Method and Description |
---|---|
static org.jboss.netty.channel.ChannelPipeline |
NettyUtils.getPipeLineOfConnection(PlayerSession playerSession) |
Copyright © 2013. All Rights Reserved.