public static class DefaultPlayerSession.PlayerSessionBuilder extends DefaultSession.SessionBuilder
| Modifier and Type | Field and Description |
|---|---|
protected GameRoom |
parentGameRoom |
protected Player |
player |
protected Protocol |
protocol |
creationTime, eventDispatcher, id, ID_GENERATOR_SERVICE, isShuttingDown, isUDPEnabled, isWriteable, lastReadWriteTime, sessionAttributes, status| Constructor and Description |
|---|
DefaultPlayerSession.PlayerSessionBuilder() |
| Modifier and Type | Method and Description |
|---|---|
PlayerSession |
build() |
DefaultPlayerSession.PlayerSessionBuilder |
parentGameRoom(GameRoom parentGameRoom) |
DefaultPlayerSession.PlayerSessionBuilder |
player(Player player) |
DefaultPlayerSession.PlayerSessionBuilder |
protocol(Protocol protocol) |
protected void |
validateAndSetValues()
This method is used to validate and set the variables to default
values if they are not already set before calling build.
|
creationTime, eventDispatcher, getId, id, isShuttingDown, isUDPEnabled, isWriteable, lastReadWriteTime, sessionAttributes, statusprotected Player player
protected GameRoom parentGameRoom
protected Protocol protocol
public DefaultPlayerSession.PlayerSessionBuilder()
public PlayerSession build()
build in class DefaultSession.SessionBuilderpublic DefaultPlayerSession.PlayerSessionBuilder player(Player player)
public DefaultPlayerSession.PlayerSessionBuilder parentGameRoom(GameRoom parentGameRoom)
protected void validateAndSetValues()
DefaultSession.SessionBuildervalidateAndSetValues in class DefaultSession.SessionBuilderpublic DefaultPlayerSession.PlayerSessionBuilder protocol(Protocol protocol)
Copyright © 2013. All Rights Reserved.