public class SimpleLookupService extends Object implements LookupService
Modifier and Type | Field and Description |
---|---|
private Map<String,GameRoom> |
refKeyGameRoomMap |
Constructor and Description |
---|
SimpleLookupService() |
SimpleLookupService(Map<String,GameRoom> refKeyGameRoomMap) |
Modifier and Type | Method and Description |
---|---|
Game |
gameLookup(Object gameContextKey)
Get a game based on a reference key.
|
GameRoom |
gameRoomLookup(Object gameContextKey)
Get a game room based on a reference key.
|
Map<String,GameRoom> |
getRefKeyGameRoomMap() |
Player |
playerLookup(Credentials loginDetail)
Lookup a gamer based on a context key.
|
public Game gameLookup(Object gameContextKey)
LookupService
gameLookup
in interface LookupService
public GameRoom gameRoomLookup(Object gameContextKey)
LookupService
gameRoomLookup
in interface LookupService
gameContextKey
- This is the key the flex front end passes to handshake
service.public Player playerLookup(Credentials loginDetail)
LookupService
playerLookup
in interface LookupService
loginDetail
- Contains the username and password.Copyright © 2013. All Rights Reserved.