public class CookieHouse
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,ServerCookie> |
cookies |
Constructor and Description |
---|
CookieHouse() |
Modifier and Type | Method and Description |
---|---|
ServerCookie |
bakeCookie(int playerID)
creates a new cookie for the player ID
|
ServerCookie |
checkCookie(java.lang.String cookieText)
Gets the cookie for the cookie text
|
private java.util.Map<java.lang.String,ServerCookie> cookies
public ServerCookie bakeCookie(int playerID)
playerID
- public ServerCookie checkCookie(java.lang.String cookieText) throws GameException
cookieText
- GameException
- if the cookie isn't found or stale