Constructor and Description |
---|
LevelControl(GameControlList gameControlList,
TournamentControl tournamentControl,
String name,
int levelIndex)
Standard constructor
|
Modifier and Type | Method and Description |
---|---|
Level |
getLevel()
Gets the
Level controlled by this LevelControl. |
boolean |
hasConfiguration()
Returns whether or not a
Configuration is set for this level of the tournament. |
void |
setConfiguration(de.smarten.tsuro.shared.gamemodel.Configuration config)
Sets the
Configuration of the entire level. |
void |
startLevel()
Starts all games of the LevelControl's Level.
|
void |
update(Observable o,
Object arg)
Notify the
LevelControl about an update in one Game in this level of
the tournament. |
public LevelControl(GameControlList gameControlList, TournamentControl tournamentControl, String name, int levelIndex)
gameControlList
- the given game control listtournamentControl
- the given tournament controlname
- the given name for the standard constructorlevelIndex
- the actual level indexpublic void setConfiguration(de.smarten.tsuro.shared.gamemodel.Configuration config)
Configuration
of the entire level.config
- the Configuration
public boolean hasConfiguration()
Configuration
is set for this level of the tournament.Configuration
is set, false otherwisepublic Level getLevel()
Level
controlled by this LevelControl.Level
objectpublic void startLevel() throws GameFullException, IncompleteInputException
GameFullException
- if a game unexpectedly becomes full before all clients
could be addedIncompleteInputException
public void update(Observable o, Object arg)
LevelControl
about an update in one Game
in this level of
the tournament.Copyright © 2017 smarTen. All rights reserved.