ui
Class GameSettings
java.lang.Object
   ui.GameSettings
ui.GameSettings
- public class GameSettings 
- extends Object
| Constructor Summary | 
| GameSettings(boolean wHuman,
                         int wTime,
                         boolean bHuman,
                         int bTime)Constructor that does not specify number of powerups.
 | 
| GameSettings(boolean wHuman,
                         int wTime,
                         boolean bHuman,
                         int bTime,
                         int numPairs)
 | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
GameSettings
public GameSettings(boolean wHuman,
                    int wTime,
                    boolean bHuman,
                    int bTime)
- Constructor that does not specify number of powerups. The default is 0.
 
GameSettings
public GameSettings(boolean wHuman,
                    int wTime,
                    boolean bHuman,
                    int bTime,
                    int numPairs)
- Parameters:
- wHuman- : true if white is human
- wTime- :Time in milliseconds allotted to white player
- bHuman- : true if black player is human
- bTime- : Time in milliseconds allotted to black player
- numPairs- : The number of pairs of powerups on the board. Defaults
        to 0 if numPairs < 0; defaults to 16 if numPairs > 16.
isWhiteHuman
public boolean isWhiteHuman()
- 
- Returns:
- true if the white side will be played by a human
 
isBlackHuman
public boolean isBlackHuman()
- 
- Returns:
- true if the black side will be played by a human
 
getWhiteTime
public int getWhiteTime()
- 
- Returns:
- the time in milliseconds white will have in this game
 
getBlackTime
public int getBlackTime()
- 
- Returns:
- the time in milliseconds black will have in this game
 
getPowerupString
public String getPowerupString()
- 
- Returns:
- the string describing the positions of this.powerups