public class SimpleGame extends Object implements Game
Modifier and Type | Field and Description |
---|---|
private String |
gameName
The name of the game.
|
private Object |
id
This variable could be used as a database key.
|
Constructor and Description |
---|
SimpleGame(Object id,
String gameName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getGameName()
Get the name of the game.
|
Object |
getId()
Meant as a database access key.
|
int |
hashCode() |
void |
setGameName(String gameName)
Set the name of the game.
|
void |
setId(Object id)
Meant as a database access key.
|
Object |
unload()
Unloads the current game, by closing all sessions.
|
private final Object id
private final String gameName
public Object getId()
public void setId(Object id)
public String getGameName()
Game
getGameName
in interface Game
public void setGameName(String gameName)
Game
setGameName
in interface Game
gameName
- Set the preferably unique game name.public Object unload()
Game
Copyright © 2012. All Rights Reserved.