JSettlers v1.0.6 API
Built ${date}

Serialized Form


Package soc.client

Class soc.client.ChannelFrame extends java.awt.Frame implements Serializable

Serialized Fields

ta

SnippingTextArea ta

tf

java.awt.TextField tf

lst

java.awt.List lst

cnvs

java.awt.Canvas cnvs

ncols

int ncols

npix

int npix

cc

SOCPlayerClient cc

cname

java.lang.String cname

history

java.util.Vector history

historyCounter

int historyCounter

down

boolean down

Class soc.client.ColorSquare extends java.awt.Canvas implements Serializable

Serialized Fields

intValue

int intValue

boolValue

boolean boolValue

valueVis

boolean valueVis

kind

int kind

upperBound

int upperBound

lowerBound

int lowerBound

interactive

boolean interactive

Class soc.client.ShadowedBox extends java.awt.Canvas implements Serializable

Serialized Fields

height

int height

width

int width

interior

java.awt.Color interior

Class soc.client.SnippingTextArea extends java.awt.TextArea implements Serializable

Serialized Fields

maximumLines

int maximumLines

lines

int lines

Class soc.client.SOCAccountClient extends java.applet.Applet implements Serializable

Serialized Fields

nick

java.awt.TextField nick

pass

java.awt.TextField pass

pass2

java.awt.TextField pass2

email

java.awt.TextField email

status

java.awt.TextField status

submit

java.awt.Button submit

messageLabel

java.awt.Label messageLabel

ac

java.applet.AppletContext ac

submitLock

boolean submitLock

cardLayout

java.awt.CardLayout cardLayout

host

java.lang.String host

port

int port

s

java.net.Socket s

in

java.io.DataInputStream in

out

java.io.DataOutputStream out

reader

java.lang.Thread reader

ex

java.lang.Exception ex

connected

boolean connected

nickname

java.lang.String nickname
the nickname


password

java.lang.String password
the password


password2

java.lang.String password2
the second password


emailAddress

java.lang.String emailAddress
the email address

Class soc.client.SOCBoardPanel extends java.awt.Canvas implements Serializable

Serialized Fields

HEXWIDTH

int HEXWIDTH
hex size


HEXHEIGHT

int HEXHEIGHT

hexIDtoNum

int[] hexIDtoNum
translate hex ID to number to get coords


ptrOldX

int ptrOldX
Old pointer coords for interface


ptrOldY

int ptrOldY

hilight

int hilight
Edge or node being pointed to.


edgeMap

int[] edgeMap
Map grid sectors to hex edges


nodeMap

int[] nodeMap
Map grid sectors to hex nodes


hexMap

int[] hexMap
Map grid sectors to hexes


game

SOCGame game
The game which this board is a part of


board

SOCBoard board
The board in the game


player

SOCPlayer player
The player that is using this interface


otherPlayer

SOCPlayer otherPlayer
When in "consider" mode, this is the player we're talking to


buffer

java.awt.Image buffer
offscreen buffer


mode

int mode
modes of interaction


initstlmt

int initstlmt
This holds the coord of the last stlmt placed in the initial phase.


playerInterface

SOCPlayerInterface playerInterface
the player interface that this board is a part of

Class soc.client.SOCBuildingPanel extends java.awt.Panel implements Serializable

Serialized Fields

title

java.awt.Label title

roadBut

java.awt.Button roadBut

settlementBut

java.awt.Button settlementBut

cityBut

java.awt.Button cityBut

cardBut

java.awt.Button cardBut

roadT

java.awt.Label roadT

roadV

java.awt.Label roadV

roadC

java.awt.Label roadC

roadWood

ColorSquare roadWood

roadClay

ColorSquare roadClay

settlementT

java.awt.Label settlementT

settlementV

java.awt.Label settlementV

settlementC

java.awt.Label settlementC

settlementWood

ColorSquare settlementWood

settlementClay

ColorSquare settlementClay

settlementWheat

ColorSquare settlementWheat

settlementSheep

ColorSquare settlementSheep

cityT

java.awt.Label cityT

cityV

java.awt.Label cityV

cityC

java.awt.Label cityC

cityWheat

ColorSquare cityWheat

cityOre

ColorSquare cityOre

cardT

java.awt.Label cardT

cardV

java.awt.Label cardV

cardC

java.awt.Label cardC

cardWheat

ColorSquare cardWheat

cardSheep

ColorSquare cardSheep

cardOre

ColorSquare cardOre

pi

SOCPlayerInterface pi

Class soc.client.SOCFaceButton extends java.awt.Canvas implements Serializable

Serialized Fields

currentImageNum

int currentImageNum

panelx

int panelx

panely

int panely

pNumber

int pNumber

game

SOCGame game

client

SOCPlayerClient client

buffer

java.awt.Image buffer
offscreen buffer

Class soc.client.SOCHandPanel extends java.awt.Panel implements Serializable

Serialized Fields

sitBut

java.awt.Button sitBut

robotBut

java.awt.Button robotBut

startBut

java.awt.Button startBut

takeOverBut

java.awt.Button takeOverBut

seatLockBut

java.awt.Button seatLockBut

faceImg

SOCFaceButton faceImg

pname

java.awt.Label pname

vpLab

java.awt.Label vpLab

vpSq

ColorSquare vpSq

larmyLab

java.awt.Label larmyLab

lroadLab

java.awt.Label lroadLab

claySq

ColorSquare claySq

oreSq

ColorSquare oreSq

sheepSq

ColorSquare sheepSq

wheatSq

ColorSquare wheatSq

woodSq

ColorSquare woodSq

clayLab

java.awt.Label clayLab

oreLab

java.awt.Label oreLab

sheepLab

java.awt.Label sheepLab

wheatLab

java.awt.Label wheatLab

woodLab

java.awt.Label woodLab

settlementSq

ColorSquare settlementSq

citySq

ColorSquare citySq

roadSq

ColorSquare roadSq

settlementLab

java.awt.Label settlementLab

cityLab

java.awt.Label cityLab

roadLab

java.awt.Label roadLab

resourceSq

ColorSquare resourceSq

resourceLab

java.awt.Label resourceLab

developmentSq

ColorSquare developmentSq

developmentLab

java.awt.Label developmentLab

knightsSq

ColorSquare knightsSq

knightsLab

java.awt.Label knightsLab

cardList

java.awt.List cardList

playCardBut

java.awt.Button playCardBut

sqPanel

SquaresPanel sqPanel

giveLab

java.awt.Label giveLab

getLab

java.awt.Label getLab

sendBut

java.awt.Button sendBut

clearBut

java.awt.Button clearBut

bankBut

java.awt.Button bankBut

playerSend

ColorSquare[] playerSend

rollBut

java.awt.Button rollBut

doneBut

java.awt.Button doneBut

quitBut

java.awt.Button quitBut

playerInterface

SOCPlayerInterface playerInterface

client

SOCPlayerClient client

game

SOCGame game

player

SOCPlayer player

inPlay

boolean inPlay

playerSendMap

int[] playerSendMap

offer

TradeOfferPanel offer

interactive

boolean interactive
When this flag is true, the panel is interactive.

Class soc.client.SOCPlayerClient extends java.applet.Applet implements Serializable

Serialized Fields

nick

java.awt.TextField nick

pass

java.awt.TextField pass

status

java.awt.TextField status

channel

java.awt.TextField channel

game

java.awt.TextField game

chlist

java.awt.List chlist

gmlist

java.awt.List gmlist

jc

java.awt.Button jc

jg

java.awt.Button jg

messageLabel

java.awt.Label messageLabel

ac

java.applet.AppletContext ac

lastMessage

java.lang.String lastMessage

cardLayout

java.awt.CardLayout cardLayout

host

java.lang.String host

port

int port

s

java.net.Socket s

in

java.io.DataInputStream in

out

java.io.DataOutputStream out

reader

java.lang.Thread reader

ex

java.lang.Exception ex

connected

boolean connected

nickname

java.lang.String nickname
the nickname


password

java.lang.String password
the password


gotPassword

boolean gotPassword
true if we've stored the password


channels

java.util.Hashtable channels
the channels


games

java.util.Hashtable games
the games


playerInterfaces

java.util.Hashtable playerInterfaces
the player interfaces for the games


ignoreList

java.util.Vector ignoreList
the ignore list

Class soc.client.SOCPlayerInterface extends java.awt.Frame implements Serializable

Serialized Fields

boardPanel

SOCBoardPanel boardPanel
the board display


textInput

java.awt.TextField textInput
where the player types in text


textDisplay

SnippingTextArea textDisplay
where text is displayed


chatDisplay

SnippingTextArea chatDisplay
where chat text is displayed


buildingPanel

SOCBuildingPanel buildingPanel
interface for building pieces


hands

SOCHandPanel[] hands
the display for the players' hands


playerColors

java.awt.Color[] playerColors
the player colors


client

SOCPlayerClient client
the client that spawned us


game

SOCGame game
the game associated with this interface


ncols

int ncols
number of columns in the text output area


npix

int npix
width of text output area in pixels


discardDialog

SOCDiscardDialog discardDialog
the dialog for getting what resources the player wants to discard


choosePlayerDialog

SOCChoosePlayerDialog choosePlayerDialog
the dialog for choosing a player from which to steal


discoveryDialog

SOCDiscoveryDialog discoveryDialog
the dialog for choosing 2 resources to discover


monopolyDialog

SOCMonopolyDialog monopolyDialog
the dialog for choosing a resource to monopolize

Class soc.client.SpeechBalloon extends java.awt.Canvas implements Serializable

Serialized Fields

height

int height

width

int width

Class soc.client.SquaresPanel extends java.awt.Panel implements Serializable

Serialized Fields

give

ColorSquare[] give

get

ColorSquare[] get

interactive

boolean interactive

Class soc.client.TradeOfferPanel extends java.awt.Panel implements Serializable

Serialized Fields

from

int from

hp

SOCHandPanel hp

pi

SOCPlayerInterface pi

mode

java.lang.String mode

cardLayout

java.awt.CardLayout cardLayout

messagePanel

soc.client.TradeOfferPanel.MessagePanel messagePanel

offerPanel

soc.client.TradeOfferPanel.OfferPanel offerPanel


Package soc.game

Class soc.game.SOCBoard extends java.lang.Object implements Serializable

Serialized Fields

hexLayout

int[] hexLayout
Key to the hexes[] : 0 : desert 1 : clay 2 : ore 3 : sheep 4 : wheat 5 : wood 6 : water 7 : misc port facing 1 8 : misc port facing 2 9 : misc port facing 3 10 : misc port facing 4 11 : misc port facing 5 12 : misc port facing 6 ports are represented in binary like this: (port facing) (kind of port) \--> [0 0 0][0 0 0 0] <--/ kind of port: 1 : clay 2 : ore 3 : sheep 4 : wheat 5 : wood port facing: 6___ ___1 \/\/ / \ 5___| |___2 | | \ / 4___/\/\___3


boardNum2Num

int[] boardNum2Num
Key to the numbers[] : 0 : 2 1 : 3 2 : 4 3 : 5 4 : 6 5 : 8 6 : 9 7 : 10 8 : 11 9 : 12


num2BoardNum

int[] num2BoardNum

numberLayout

int[] numberLayout

numToHexID

int[] numToHexID

hexIDtoNum

int[] hexIDtoNum
translate hex ID to an array index


hexNodes

int[] hexNodes
add to hex coord to get all node coords


nodeToHex

int[] nodeToHex
all hexes adjacent to a node


robberHex

int robberHex
the hex that the robber is in


ports

java.util.Vector[] ports
where the ports are


pieces

java.util.Vector pieces
pieces on the board


roads

java.util.Vector roads
roads on the board


settlements

java.util.Vector settlements
settlements on the board


cities

java.util.Vector cities
cities on the board


rand

java.util.Random rand
random number generator


nodesOnBoard

java.util.Hashtable nodesOnBoard
a list of nodes on the board

Class soc.game.SOCCity extends SOCPlayingPiece implements Serializable

Class soc.game.SOCDevCardSet extends java.lang.Object implements Serializable

Serialized Fields

devCards

int[][] devCards
the number of development cards [OLD] are the old cards [NEW] are recently bought cards

Class soc.game.SOCGame extends java.lang.Object implements Serializable

Serialized Fields

inUse

boolean inUse
monitor for synchronization


name

java.lang.String name
the name of the game


active

boolean active
true if this game is ACTIVE


board

SOCBoard board
the game board


players

SOCPlayer[] players
the players


seats

int[] seats
the states for the player's seats


seatLocks

boolean[] seatLocks
the states if the locks for the player's seats


currentPlayerNumber

int currentPlayerNumber
the number of the current player


firstPlayerNumber

int firstPlayerNumber
the first player to place a settlement


lastPlayerNumber

int lastPlayerNumber
the last player to place the first settlement


currentDice

int currentDice
the current dice result


gameState

int gameState
the current game state


oldGameState

int oldGameState
the old game state


playerWithLargestArmy

int playerWithLargestArmy
the player with the largest army


oldPlayerWithLargestArmy

int oldPlayerWithLargestArmy

playerWithLongestRoad

int playerWithLongestRoad
the player with the longest road


numDevCards

int numDevCards
the number of development cards left


devCardDeck

int[] devCardDeck
the development card deck


rand

java.util.Random rand
used to generate random numbers


allOriginalPlayers

boolean allOriginalPlayers
used to track if there were any player subs


oldPlayerWithLongestRoad

java.util.Stack oldPlayerWithLongestRoad
used to restore the LR player


startTime

java.util.Date startTime
when this game was created


expiration

long expiration
expiration time for this game in milliseconds

Class soc.game.SOCPlayer extends java.lang.Object implements Serializable

Serialized Fields

name

java.lang.String name
the name of the player


playerNumber

int playerNumber
the integer id for this player


game

SOCGame game
the game that this player is in


numPieces

int[] numPieces
the number of pieces not in play


pieces

java.util.Vector pieces
a list of this player's pieces in play


roads

java.util.Vector roads
a list of this player's roads in play


settlements

java.util.Vector settlements
a list of this player's settlements in play


cities

java.util.Vector cities
a list of this player's cities in play


lastSettlementCoord

int lastSettlementCoord
The coordinates of our most recent settlement


lastRoadCoord

int lastRoadCoord
The coordinates of our most recent road


longestRoadLength

int longestRoadLength
length of the longest road for this player


lrPaths

java.util.Vector lrPaths
list of longest paths


resources

SOCResourceSet resources
how many of each resource this player has


devCards

SOCDevCardSet devCards
how many of each type of development card this player has


numKnights

int numKnights
how many knights this player has in play


buildingVP

int buildingVP
the number of victory points for settlements and cities


devCardVP

int devCardVP
the number of development card victory points


needToDiscard

boolean needToDiscard
this flag is true if the player needs to discard


roadNodes

java.util.Vector roadNodes
all of the nodes that this player's roads touch this is used to calculate longest road


roadNodeGraph

boolean[][] roadNodeGraph
a graph of what nodes are connected by this player's roads


legalRoads

boolean[] legalRoads
a list of edges where it is legal to place a road. an edge is legal if a road could eventually be placed there.


legalSettlements

boolean[] legalSettlements
a list of nodes where it is legal to place a settlement. a node is legal if a settlement could eventually be placed there.


potentialRoads

boolean[] potentialRoads
a list of edges where a road could be placed on the next turn.


potentialSettlements

boolean[] potentialSettlements
a list of nodes where a settlement could be placed on the next turn.


potentialCities

boolean[] potentialCities
a list of nodes where a city could be placed on the next turn.


ports

boolean[] ports
a boolean array stating wheather this player is touching a particular kind of port


currentOffer

SOCTradeOffer currentOffer
this is the current trade offer that this player is making


playedDevCard

boolean playedDevCard
this is true if the player played a development card this turn


robotFlag

boolean robotFlag
this is true if this player is a robot


faceId

int faceId
which face image this player is using


ourNumbers

SOCPlayerNumbers ourNumbers
the numbers that our settlements are touching

Class soc.game.SOCPlayingPiece extends java.lang.Object implements Serializable

Serialized Fields

pieceType

int pieceType
The type of this playing piece


player

SOCPlayer player
The player who owns this piece


coord

int coord
Where this piece is on the board

Class soc.game.SOCResourceSet extends java.lang.Object implements Serializable

Serialized Fields

resources

int[] resources
the number of resources

Class soc.game.SOCRoad extends SOCPlayingPiece implements Serializable

Class soc.game.SOCSettlement extends SOCPlayingPiece implements Serializable

Class soc.game.SOCTradeOffer extends java.lang.Object implements Serializable

Serialized Fields

game

java.lang.String game

give

SOCResourceSet give

get

SOCResourceSet get

from

int from

to

boolean[] to


Package soc.message

Class soc.message.SOCAcceptOffer extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


accepting

int accepting
The number of the accepting player


offering

int offering
The number of the offering player

Class soc.message.SOCAdminPing extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of the new game.

Class soc.message.SOCAdminReset extends SOCMessage implements Serializable

Class soc.message.SOCBankTrade extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


give

SOCResourceSet give
The set of resources being given to the bank


get

SOCResourceSet get
The set of resources being taken from the bank

Class soc.message.SOCBCastTextMsg extends SOCMessage implements Serializable

Serialized Fields

text

java.lang.String text
Text message

Class soc.message.SOCBoardLayout extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


hexLayout

int[] hexLayout
The hex layout


numberLayout

int[] numberLayout
The number layout


robberHex

int robberHex
Where the robber is

Class soc.message.SOCBuildRequest extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


pieceType

int pieceType
The type of piece to build

Class soc.message.SOCBuyCardRequest extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game

Class soc.message.SOCCancelBuildRequest extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


pieceType

int pieceType
The type of piece to build

Class soc.message.SOCChangeFace extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


playerNumber

int playerNumber
The number player that is changing


faceId

int faceId
The id of the face image

Class soc.message.SOCChannels extends SOCMessage implements Serializable

Serialized Fields

channels

java.util.Vector channels
List of channels

Class soc.message.SOCChoosePlayer extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


choice

int choice
The number of the chosen player

Class soc.message.SOCChoosePlayerRequest extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


choices

boolean[] choices
The possible choices True means that the player with a matching index is a possible choice.

Class soc.message.SOCClearOffer extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


playerNumber

int playerNumber
The seat number

Class soc.message.SOCClearTradeMsg extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


playerNumber

int playerNumber
The seat number

Class soc.message.SOCCreateAccount extends SOCMessage implements Serializable

Serialized Fields

nickname

java.lang.String nickname
Nickname


password

java.lang.String password
Password


host

java.lang.String host
Host name


email

java.lang.String email
Email address

Class soc.message.SOCDeleteChannel extends SOCMessage implements Serializable

Serialized Fields

channel

java.lang.String channel
Name of the channel.

Class soc.message.SOCDeleteGame extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of the game.

Class soc.message.SOCDevCard extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


playerNumber

int playerNumber
Player number


cardType

int cardType
The type of development card


actionType

int actionType
Action type

Class soc.message.SOCDevCardCount extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


numDevCards

int numDevCards
The number of dev cards

Class soc.message.SOCDiceResult extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


result

int result
The dice result

Class soc.message.SOCDiscard extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


resources

SOCResourceSet resources
The set of resources being discarded

Class soc.message.SOCDiscardRequest extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


numDiscards

int numDiscards
The number of discards

Class soc.message.SOCDiscoveryPick extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


resources

SOCResourceSet resources
The chosen resources

Class soc.message.SOCEndTurn extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game

Class soc.message.SOCFirstPlayer extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


playerNumber

int playerNumber
The seat number

Class soc.message.SOCGameMembers extends SOCMessage implements Serializable

Serialized Fields

members

java.util.Vector members
List of members


game

java.lang.String game
Name of game

Class soc.message.SOCGames extends SOCMessage implements Serializable

Serialized Fields

games

java.util.Vector games
List of games

Class soc.message.SOCGameState extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


state

int state
Game state

Class soc.message.SOCGameStats extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


scores

int[] scores
The scores


robots

boolean[] robots
Where robots are sitting

Class soc.message.SOCGameTextMsg extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


nickname

java.lang.String nickname
Nickname of sender


text

java.lang.String text
Text message

Class soc.message.SOCImARobot extends SOCMessage implements Serializable

Serialized Fields

nickname

java.lang.String nickname
Nickname of the robot

Class soc.message.SOCJoin extends SOCMessage implements Serializable

Serialized Fields

nickname

java.lang.String nickname
Nickname of the joining member


password

java.lang.String password
Optional password


channel

java.lang.String channel
Name of channel


host

java.lang.String host
Host name

Class soc.message.SOCJoinAuth extends SOCMessage implements Serializable

Serialized Fields

nickname

java.lang.String nickname
Nickname of the joining member


channel

java.lang.String channel
Name of channel

Class soc.message.SOCJoinGame extends SOCMessage implements Serializable

Serialized Fields

nickname

java.lang.String nickname
Nickname of the joining member


password

java.lang.String password
Optional password


game

java.lang.String game
Name of game


host

java.lang.String host
Host name

Class soc.message.SOCJoinGameAuth extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game

Class soc.message.SOCJoinGameRequest extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


playerNumber

int playerNumber
Where the robot should sit

Class soc.message.SOCLargestArmy extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


playerNumber

int playerNumber
The number of the player with largest army

Class soc.message.SOCLastSettlement extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
the name of the game


playerNumber

int playerNumber
the number of the player


coordinates

int coordinates
the coordinates of the piece

Class soc.message.SOCLeave extends SOCMessage implements Serializable

Serialized Fields

nickname

java.lang.String nickname
Nickname of the leaveing member


channel

java.lang.String channel
Name of channel


host

java.lang.String host
Host name

Class soc.message.SOCLeaveAll extends SOCMessage implements Serializable

Class soc.message.SOCLeaveGame extends SOCMessage implements Serializable

Serialized Fields

nickname

java.lang.String nickname
Nickname of the leaveing member


game

java.lang.String game
Name of game


host

java.lang.String host
Host name

Class soc.message.SOCLongestRoad extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


playerNumber

int playerNumber
The number of the player with longest road

Class soc.message.SOCMakeOffer extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


offer

SOCTradeOffer offer
The offer being made

Class soc.message.SOCMembers extends SOCMessage implements Serializable

Serialized Fields

members

java.util.Vector members
List of members


channel

java.lang.String channel
Name of channel

Class soc.message.SOCMessage extends java.lang.Object implements Serializable

Serialized Fields

messageType

int messageType
An ID identifying the type of message

Class soc.message.SOCMonopolyPick extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


resource

int resource
The chosen resource

Class soc.message.SOCMoveRobber extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
the name of the game


playerNumber

int playerNumber
the number of the player moving the robber


coordinates

int coordinates
the coordinates of the piece

Class soc.message.SOCNewChannel extends SOCMessage implements Serializable

Serialized Fields

channel

java.lang.String channel
Name of the new channel.

Class soc.message.SOCNewGame extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of the new game.

Class soc.message.SOCPlayDevCardRequest extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


devCard

int devCard
The type of dev card

Class soc.message.SOCPlayerElement extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


playerNumber

int playerNumber
Player number


elementType

int elementType
Player element type


actionType

int actionType
Action type


value

int value
Element value

Class soc.message.SOCPotentialSettlements extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


playerNumber

int playerNumber
Player number


psList

java.util.Vector psList
List of potential settlements

Class soc.message.SOCPutPiece extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
the name of the game


pieceType

int pieceType
the type of piece being placed


playerNumber

int playerNumber
the player number of who played the piece


coordinates

int coordinates
the coordinates of the piece

Class soc.message.SOCRejectConnection extends SOCMessage implements Serializable

Serialized Fields

text

java.lang.String text
Text message

Class soc.message.SOCRejectOffer extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


playerNumber

int playerNumber
The seat number

Class soc.message.SOCResourceCount extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


playerNumber

int playerNumber
The seat number


count

int count
The resource count

Class soc.message.SOCRobotDismiss extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game

Class soc.message.SOCRollDice extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game

Class soc.message.SOCRollDiceRequest extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game

Class soc.message.SOCServerPing extends SOCMessage implements Serializable

Serialized Fields

sleepTime

int sleepTime
the ammount of time to sleep waiting for the next ping

Class soc.message.SOCSetPlayedDevCard extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


playerNumber

int playerNumber
The player number


playedDevCard

boolean playedDevCard
the value of the playedDevCard flag

Class soc.message.SOCSetSeatLock extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


playerNumber

int playerNumber
The number player that is changing


state

boolean state
The state of the lock

Class soc.message.SOCSetTurn extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


playerNumber

int playerNumber
The seat number

Class soc.message.SOCSetupDone extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game

Class soc.message.SOCSitDown extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


nickname

java.lang.String nickname
Nickname of player


playerNumber

int playerNumber
The seat number


robotFlag

boolean robotFlag
True if this player is a robot

Class soc.message.SOCStartGame extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game

Class soc.message.SOCStatusMessage extends SOCMessage implements Serializable

Serialized Fields

status

java.lang.String status
Status message

Class soc.message.SOCTextMsg extends SOCMessage implements Serializable

Serialized Fields

channel

java.lang.String channel
Name of channel


nickname

java.lang.String nickname
Nickname of sender


text

java.lang.String text
Text message

Class soc.message.SOCTurn extends SOCMessage implements Serializable

Serialized Fields

game

java.lang.String game
Name of game


playerNumber

int playerNumber
The seat number

Class soc.message.SOCUpdateRobotParams extends SOCMessage implements Serializable

Serialized Fields

params

SOCRobotParameters params


Package soc.server

Class soc.server.SOCServer extends Server implements Serializable

Serialized Fields

rand

java.util.Random rand
So we can get random numbers.


port

int port
The TCP port we listen on.


maxConnections

int maxConnections
Maximum number of connections allowed


robots

java.util.Vector robots
A list of robots connected to this server


channelList

SOCChannelList channelList
list of chat channels


gameList

SOCGameList gameList
list of soc games


robotJoinRequests

java.util.Hashtable robotJoinRequests
table of requests for robots to join games


robotDismissRequests

java.util.Hashtable robotDismissRequests
table of requestst for robots to leave games


gameDataFiles

java.util.Hashtable gameDataFiles
table of game data files


startTime

long startTime
the time that this server was started


numberOfGamesStarted

int numberOfGamesStarted
the total number of games that have been started


numberOfGamesFinished

int numberOfGamesFinished
the total number of games finished


numberOfUsers

int numberOfUsers
total number of users


serverRobotPinger

SOCServerRobotPinger serverRobotPinger
server robot pinger


gameTimeoutChecker

SOCGameTimeoutChecker gameTimeoutChecker
game timeout checker


databaseUserName

java.lang.String databaseUserName

databasePassword

java.lang.String databasePassword


Package soc.server.genericServer

Class soc.server.genericServer.Connection extends java.lang.Thread implements Serializable

Serialized Fields

data

java.lang.Object data
the data associated with this connection


in

java.io.DataInputStream in

out

java.io.DataOutputStream out

s

java.net.Socket s

sv

Server sv

reader

java.lang.Thread reader

hst

java.lang.String hst

error

java.lang.Exception error

connected

boolean connected

outQueue

java.util.Vector outQueue

Class soc.server.genericServer.Server extends java.lang.Thread implements Serializable

Serialized Fields

ss

java.net.ServerSocket ss

up

boolean up

error

java.lang.Exception error

port

int port

numberOfConnections

int numberOfConnections
total number of connections made


conns

java.util.Vector conns
the connections


inQueue

java.util.Vector inQueue


Package soc.util

Class soc.util.CutoffExceededException extends java.lang.Exception implements Serializable


JSettlers v1.0.6 API
Built ${date}