|
|||||||||
| Home >> All >> org >> dma >> ihm >> game >> league >> [ std overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.dma.ihm.game.league.std
Class StdLeagueOwner

java.lang.Objectorg.dma.ihm.game.league.LeagueOwner
org.dma.ihm.game.league.std.StdLeagueOwner
- All Implemented Interfaces:
- java.io.Serializable
- public class StdLeagueOwner
- extends org.dma.ihm.game.league.LeagueOwner
StdLeagueOwner Implementation of a standard LeagueOwner working with StdLeagues.
- After the needed leagues are finished, the loser of an upper, the winner of a bottom league will play "League playoffs" against each other (and switch places if needed)
- If 0 is passed by the constructor as starting level of leaguePlayoffs none are played.
| Field Summary | |
private static java.lang.String |
leaguePlayoffGameDays
Gamedays while playoff/outs |
private StdPlayoffs[] |
leaguePlayoffs
Playoffs between last/first of the leagues |
private int |
leaguePlayoffsBestOf
LeaguePlayoff are bestOf n |
private boolean |
playLeaguePlayoffs
Indicates if leaguePlayoffs will be played |
| Fields inherited from class org.dma.ihm.game.league.LeagueOwner |
leagues |
| Constructor Summary | |
StdLeagueOwner(java.lang.String name,
org.dma.ihm.game.league.League[] leagues,
boolean playLeaguePlayoffs,
int leaguePlayoffsBestOf)
Creates the StdLeagueOwner with the leagues passed by owner |
|
| Method Summary | |
private void |
checkForLeaguePlayoffs()
Check if leaguePlayoffs may allready be started (and starts them) |
void |
endSeason()
Season has ended, switch teams if needed |
int |
getLeaguePlayoffsBestOf()
Gets the leaguePlayoffsBestOf attribute of the StdLeagueOwner object |
boolean |
getPlayLeaguePlayoffs()
Gets the playLeaguePlayoffs attribute of the StdLeagueOwner object |
private StdLeague[] |
getStdLeagues()
Returns all leagues |
void |
leaguePartFinished()
Called each time when playoff/outs are finished within a league |
void |
newSeason()
Resets all teams and the leaguePlayoffs |
private void |
startLeaguePlayoffs(int i)
Start league playoffs |
| Methods inherited from class org.dma.ihm.game.league.LeagueOwner |
getDescription, getLeagues, getName, getPlayers, getTeams, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
leaguePlayoffs
private StdPlayoffs[] leaguePlayoffs
- Playoffs between last/first of the leagues
playLeaguePlayoffs
private boolean playLeaguePlayoffs
- Indicates if leaguePlayoffs will be played
leaguePlayoffsBestOf
private int leaguePlayoffsBestOf
- LeaguePlayoff are bestOf n
leaguePlayoffGameDays
private static final java.lang.String leaguePlayoffGameDays
- Gamedays while playoff/outs
- See Also:
- Constant Field Values
| Constructor Detail |
StdLeagueOwner
public StdLeagueOwner(java.lang.String name, org.dma.ihm.game.league.League[] leagues, boolean playLeaguePlayoffs, int leaguePlayoffsBestOf)
- Creates the StdLeagueOwner with the leagues passed by owner
| Method Detail |
getPlayLeaguePlayoffs
public boolean getPlayLeaguePlayoffs()
- Gets the playLeaguePlayoffs attribute of the StdLeagueOwner object
getLeaguePlayoffsBestOf
public int getLeaguePlayoffsBestOf()
- Gets the leaguePlayoffsBestOf attribute of the StdLeagueOwner object
leaguePartFinished
public void leaguePartFinished()
- Called each time when playoff/outs are finished within a league
newSeason
public void newSeason()
- Resets all teams and the leaguePlayoffs
endSeason
public void endSeason()
- Season has ended, switch teams if needed
getStdLeagues
private StdLeague[] getStdLeagues()
- Returns all leagues
checkForLeaguePlayoffs
private void checkForLeaguePlayoffs()
- Check if leaguePlayoffs may allready be started (and starts them)
startLeaguePlayoffs
private void startLeaguePlayoffs(int i)
- Start league playoffs
|
|||||||||
| Home >> All >> org >> dma >> ihm >> game >> league >> [ std overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC