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)
LookupServicegameLookup in interface LookupServicepublic GameRoom gameRoomLookup(Object gameContextKey)
LookupServicegameRoomLookup in interface LookupServicegameContextKey - This is the key the flex front end passes to handshake
service.public Player playerLookup(Credentials loginDetail)
LookupServiceplayerLookup in interface LookupServiceloginDetail - Contains the username and password.Copyright © 2013. All Rights Reserved.