Package | Description |
---|---|
org.menacheri.jetclient.app | |
org.menacheri.jetclient.app.impl |
Modifier and Type | Method and Description |
---|---|
boolean |
Player.addSession(PlayerSession session)
Add a session to a player.
|
void |
Player.logout(PlayerSession playerSession)
When a player logs out, this method can be called.
|
boolean |
Player.removeSession(PlayerSession session)
Remove the players session to a game.
|
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
Event DefaultSession.onEvent(Event) . |
Modifier and Type | Field and Description |
---|---|
private Set<PlayerSession> |
DefaultPlayer.playerSessions
One player can be connected to multiple games at the same time.
|
Modifier and Type | Method and Description |
---|---|
PlayerSession |
SessionFactory.createPlayerSession(Player player) |
Modifier and Type | Method and Description |
---|---|
Set<PlayerSession> |
DefaultPlayer.getPlayerSessions() |
Modifier and Type | Method and Description |
---|---|
boolean |
DefaultPlayer.addSession(PlayerSession session) |
void |
DefaultPlayer.logout(PlayerSession session) |
boolean |
DefaultPlayer.removeSession(PlayerSession session) |
Modifier and Type | Method and Description |
---|---|
void |
DefaultPlayer.setPlayerSessions(Set<PlayerSession> playerSessions) |
Copyright © 2012. All Rights Reserved.