|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsoc.server.SOCBoardLargeAtServer.BoardFactoryAtServer
public static class SOCBoardLargeAtServer.BoardFactoryAtServer
Server-side implementation of SOCBoard.BoardFactory
to create SOCBoardLargeAtServer
s.
Called by game constructor via static SOCGame.boardFactory
.
Constructor Summary | |
---|---|
SOCBoardLargeAtServer.BoardFactoryAtServer()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SOCBoardLargeAtServer.BoardFactoryAtServer()
Method Detail |
---|
public SOCBoard createBoard(java.util.Map<java.lang.String,SOCGameOption> gameOpts, boolean largeBoard, int maxPlayers) throws java.lang.IllegalArgumentException
From v1.1.11 through 1.1.xx, this was SOCBoard.createBoard. Moved to new factory class in 2.0.00.
createBoard
in interface SOCBoard.BoardFactory
gameOpts
- if game has options, its map of SOCGameOption
; otherwise null.
If largeBoard, and
getBoardSize(Map, int)
gives a non-default size, "_BHW" will be added to gameOpts.largeBoard
- 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
or (unlikely internal error) game option "_BHW" isn't known in SOCGameOption.getOption.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |