|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface SOCBoard.BoardFactory
Board Factory for creating new boards for games at the client or server.
(The server's version of SOCBoardLarge
isolates makeNewBoard methods.)
Called by game constructor via static SOCGame.boardFactory
.
The default factory is SOCBoard.DefaultBoardFactory
.
For a server-side board factory, see soc.server.SOCBoardLargeAtServer.ServerBoardFactory.
Method Summary | |
---|---|
SOCBoard |
createBoard(java.util.Map<java.lang.String,SOCGameOption> gameOpts,
boolean largeBoard,
int maxPlayers)
Create a new Settlers of Catan Board based on gameOpts; this is a factory method. |
Method Detail |
---|
SOCBoard createBoard(java.util.Map<java.lang.String,SOCGameOption> gameOpts, boolean largeBoard, int maxPlayers) throws java.lang.IllegalArgumentException
gameOpts
- game's options if any, otherwise nulllargeBoard
- true if SOCBoardLarge
should be used (v3 encoding)maxPlayers
- Maximum players; must be 4 or 6.
java.lang.IllegalArgumentException
- if maxPlayers is not 4 or 6
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |