public class Game extends Object
Modifier and Type | Field and Description |
---|---|
String |
colorSet |
String |
executable |
boolean |
loaded |
String |
name |
boolean |
playerColor |
String |
protocol |
String |
queryPort |
String |
script |
int |
standardPort |
Modifier and Type | Method and Description |
---|---|
void |
delete()
Removes the Game from the list and the harddisk.
|
static Game |
get(String pName)
Returns the game object for the specified name.
|
static int |
getGameCount()
Returns the amount of servers in the list.
|
static Map<String,Game> |
getGameMap()
Returns the game Map that contains all Game objects.
|
boolean |
isLoaded()
Indidicates if the game is loaded correctly.
|
static void |
loadGame(String pName)
Loads a game file from .
|
static void |
loadGames()
Loads all Games.
|
void |
save() |
public String name
public String executable
public String protocol
public String script
public String queryPort
public String colorSet
public int standardPort
public boolean loaded
public boolean playerColor
public Game()
public Game(String file)
public void save()
public static void loadGame(String pName)
pName
- The file name.public static void loadGames()
public static Game get(String pName)
pName
- The games name.public boolean isLoaded()
public static int getGameCount()
public static Map<String,Game> getGameMap()
public void delete()