File: Games\Mergers\Game.js

GamesByEmail
Class MergersGame

Object
  
 
 
GamesByEmail.Game
 
 
GamesByEmail.MergersGame

All Implemented Interfaces:

Class, Elemental, Resourceful, Server


GamesByEmail.MergersGame

extends Game

Constructor Summary
GamesByEmail.MergersGame()

Field Summary
static ObjectresourcePack
Resources for most of the game. Override to add resources specific to game.

Fields inherited from GamesByEmail.Game
board, canPie, constrainer, font, id, info, isLog, lastMove, logSettings, maxMoveNumber, message, move, notify, onLeftMouseDown, onLeftMouseUp, onMiddleMouseDown, onMiddleMouseUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp, onRightMouseDown, onRightMouseUp, pieces, previewing, rotation, status, teams, territories, testing, title, type, verbose

Fields inherited from Foundation.Elemental
$Foundation_$registry_index

Method Summary
 addBoardMarker(point, board, htmlBuilder)
 addBoardMarkers(board)
 addOrderedTiles(point, board, orderedList)
 addStaticMarker(htmlBuilder, point, value, title)
 addTempUnplayables(point, board, chains, list)
 addUnplayables(point, board, chains, list)
 anyPlayableTiles()
StringbelowTeamTitleRowHtml(/*Number*/ numCols)
Gets any HTML for an information row to be displayed below the bottom team titles.
StringboardValueFromValueColor(/*String*/ value, /*Number*/ color)
Gets the board value from a value and color. By default, the value is returned if color is zero, else the upper case of the value is returned.
 buyShare(chainIndex, buyIndex)
 buyShareChanged(chainIndex, buyIndex)
 canGameBeEnded()
 canTeamBuyShares(team)
 canTeamPlayATile(team)
 chainHtml(chain, buy, buttonId, buttonEvent, buttonTitleIndex)
 chainIndexFromXY(x, y, board, chains)
 chainsHtml(buy)
 chooseMoreTiles(team)
 completeMerger()
StringcompleteYourTurnHtml(/*String*/ resourceName)
Called when needing the complete-your-turn game prompt HTML (typically a short sentence about the move and a Send This Move button). Override and set mouse events here. Internally uses the "completeYourTurn" resource.
 createChain(chainIndex)
 createChainHtml()
 decideWhatToDoNext(team, depth)
 dispose()
 dumpOrHoldShare()
 endTheGame()
 endTheGameHtml()
 findChainPoint(chain)
 findChainPointFromBoard(board, boardChar)
 findMatchingChainPoint(point, board, boardChar)
 getAvailableChainIndices()
 getBonusHolders(chainIndex, primary)
 getChainSize(board, boardChar)
 getChainSizeAtPoint(boardPoint)
 getChainSizeAtPointBoard(point, board)
 getMarketShares()
 getMergeIndices(boardPoint)
 getMergeIndicesFromPointBoardChain(boardPoint, board, chains)
ArraygetNewGamePlayerOrder(/*Array*/ userInfo)
Orders the players for the next game. By default the user information is reversed.
 getRandomTiles(numNeeded)
StringgetTeamTitleHtml(/*Team*/ team, /*Boolean*/ top)
Gets the HTML for the team title on the board. By default uses resources 'turnTeamTitle' or 'teamTitle'.
 getTeamTitleHtmlPlain(team)
 getTempUnplayables(board, chains)
 getUnplayables(board, chains)
 handleMerge()
 handleNewChain()
 hideButton(point)
 hiliteButton(point)
 holdShares()
 hotelPlaced()
 indexInList(index, list)
voidinitialize(/*Number*/ numPlayers, /*Number*/ turnTeamIndex)
The first method to be called when a game is created, override to set up teams, players and the game state.
 isChainValue(value, chains)
 isHotelValue(value)
 isNewChainPoint(boardPoint)
 isNewChainPointBoard(boardPoint, board)
 isSafeChainValue(value, chains)
StringitsYourTurnHtml(/*String*/ resourceName)
Called when needing the it-is-your-turn game prompt HTML (typically a short sentence about the move). Override and set mouse events here. Internally uses the "itIsYourTurnToMove" resource.
 logBoughtShares()
 logStartOfMerge(mergeIndices)
 mergeeOptionsHtml()
 mergerCompleteHtml()
 newChainHtml(chain, buy, buttonId, buttonEvent, buttonTitleIndex)
 nextTeamIndexToDealWithMerger()
 normalButton(point)
StringnotYourTurnHtml(/*String*/ resourceName)
Called when needing the it-is-not-your-turn game prompt HTML (typically a short sentence with Send Reminder, Refresh Game and Close Window buttons Start Another Game button). Override to set. Internally uses the "notYourTurn" resource.
 numChainsOnBoard()
StringofferDrawHtml(/*String*/ resourceName)
Called when needing the offer-a-draw-with-this-move prompts HTML (typically a short sentence and a Offer A Draw checkbox). Override to set. Internally uses the "youMayOfferDraw" and "offerDrawWithThisMove" resources.
 payBonuses(holders, amount, chainIndex, primary)
 payMajorities(chainIndex)
 pickMergeWinner(chainIndex)
 pickMergeWinnerHtml()
 pickNextMergee(chainIndex)
 pickNextMergeeHtml()
 placeHotel(boardPoint)
 placeHotelHtml()
 placeHotelOnMouseDown(screenPoint)
 placeHotelOnMouseMove(screenPoint)
 placeHotelOnMouseOut(screenPoint)
 placeNewHotel(boardPoint)
 pointCanBePlayed(point)
 pointInList(point, list)
 pointIsInAnyPlayersHand(point)
 pointIsInPlayersHand(point)
 pointIsTempUnplayable(point)
 pointIsUnplayable(point)
 processEndGame()
 readTeamInfo(team)
 removePointFromList(point, list)
 retire()
 retireHtml()
 retireTeam()
 sellAllTeamsShares(team)
 sellShare()
 sellShares(chainIndex, team, numShares)
BooleansendMove(/*Boolean*/ sendNow, /*Player*/ player)
Gets called when the Send Move button is pushed. Override and set the game state, then call Super.sendMove.
 setToChain(point, value)
 sharesFromString(stringValue)
 sharesToString(shares)
 sharesToValueString(shares)
 spaceNotation(x, y)
 spectateChainHtml(chain, buy, buttonId, buttonEvent, buttonTitleIndex)
 spectateChainsHtml()
StringspectatingHtml()
Called when needing the you-are-spectating game prompts HTML. Override to set. Internally returns the following combined: refreshGameButtonHtml and closeWindowButtonHtml.
voidsynch()
Called when the game should synchronize with info properties from the server.
voidsynchTeam(/*Team*/ team)
Called to synchronize the team properties with the raw team data. Just the color and title properties are set by default, override to set more.
 teamAtIndexMustDealWithMerger(teamIndex)
 teamBonuses(team, holders, amount, i, primary)
 teamTitleMouseoverHtml(team)
 teamsBonusWorth(team)
 teamsNetWorth(team)
 teamsShareHoldings(team)
 tilesFromString(stringValue)
 tilesToString(tiles)
 topSendMoveHtml()
 tradeShares()
 updateChain(chain)
 updateChainDisplay(chain)
 updateChainsDisplay()
 updateMarketTiles()
StringvalueFromBoardValue(/*String*/ boardValue)
Gets the value from a board value. By default, the lower case of the board value is returned.
 writeTeamInfo(team)

Methods inherited from GamesByEmail.Game
aboveTeamTitleRowHtml, acceptDeclineDrawHtml, acceptDraw, acceptDrawButtonHtml, addNote, addToPage, appendAdditionalPreferencesHtml, appendBoardHtml, beginTurnHtml, boardPointFromScreenPoint, boardPointFromScreenXY, boardPointFromValueIndex, cancelGameButtonHtml, cancelGameHtml, checkMove, clearHilites, clearMouseEvents, closeWindowButtonHtml, closeWindowHtml, colorFromBoardValue, colorFromPointBoard, colorFromXYBoard, completeTurnHtml, constrainPoint, constrainRectangle, continueTurnHtml, continueYourTurnHtml, debug, diceRolls, dieRoll, drawAcceptedHeaderHtml, drawAcceptedHtml, drawDeclinedHeaderHtml, drawDeclinedHtml, drawOfferedHeaderHtml, elementTitleAttributes, findNextPlayer, findPlayer, findWinningTeam, forEachBoardPoint, forEachTeam, gameInProgressHeaderHtml, gameOverHeaderHtml, gameOverHtml, getActionLinksHtml, getAnchorHtml, getButtonHtml, getCheckboxHtml, getGamePromptsHtml, getHeaderHtml, getHtml, getHtmlButtonHtml, getImageSrc, getNextGamesTitle, getOptionHtml, getPieType, getPieceRect, getPieceSrc, getRadioHtml, getSelectHtml, getSpectatorAnchorHtml, getSpectatorUrl, getTeamAtDistance, getTeamFontColor, getTeamLogFontBgColor, getTeamLogFontColor, getTeamTitleAlignment, getTeamTitlesHtml, getTeamsForTitles, getTextHtml, getTextareaHtml, getTurnHtml, getTurnTeam, getVButtonHtml, handleMoveCollision, hiliteImageHtml, initializeNewGameForm, isBoardPointHidden, isColorAtPoint, isColorAtXY, isMyTurn, isPathClear, isPointBoardClear, isPointOnBoard, isValueColorAtPoint, isValueColorAtXY, isXYBoardClear, isXYOnBoard, maybePie, maybeResign, movePiece, nextTeam, numInPath, numTeamsPlaying, offerDrawCheckBoxHtml, openLogAnchorHtml, openPlayerChatAnchorHtml, openPreferencesAnchorHtml, openRulesAnchorHtml, pie, pieButtonHtml, pieHtml, processSecureMove, refreshGame, refreshGameButtonHtml, reportProblemAnchorHtml, resign, resignButtonHtml, resignHtml, resignedHeaderHtml, screenRectFromBoardPoint, screenRectFromBoardXY, sendMoveButtonHtml, sendMoveHtml, sendReminderButtonHtml, setConstrainer, setEnded, setFloatHtml, setInnerHtml, setMouseHtml, setPerspective, setPlayerPrefs, setValueAtPoint, setValueAtXY, showTransactionPrompt, startAnotherGameButtonHtml, startAnotherGameHtml, teamColorFromTeam, theyResignedHtml, tieGameHeaderHtml, titleFromTeamColor, transformHashLinksToOnClicks, turnHeaderHtml, undo, undoButtonHtml, undoMoveHtml, update, updateTeamTitles, valueFromPointBoard, valueFromXYBoard, valueIndexFromBoardPoint, valueIndexFromBoardXY, wonHeaderHtml, youLoseHtml, youResignedHtml, youTiedHtml, youWinHtml

Methods inherited from Foundation.Class
getTypePath, isInstanceOf

Methods inherited from Foundation.Elemental
attachEvent, detachEvent, elementId, event, getById, getElement, getElementValue, getElements, getFirst, getNext, parseElementId, processHtml, processHtml

Methods inherited from Foundation.Resourceful
resource, resource, resourceUrl, resourceUrl

Methods inherited from Foundation.Server
server, serverSerialized, serverSynchronous

Constructor Detail

MergersGame

GamesByEmail.MergersGame()

Field Detail

resourcePack

static Object resourcePack

Resources for most of the game. Override to add resources specific to game.

Overrides:
resourcePack in class Game
See Also:
Foundation.Resourceful.resource

Method Detail

addBoardMarker

addBoardMarker(point,
               board,
               htmlBuilder)
Parameters:
point - 

board - 

htmlBuilder - 


addBoardMarkers

addBoardMarkers(board)
Parameters:
board - 


addOrderedTiles

addOrderedTiles(point,
                board,
                orderedList)
Parameters:
point - 

board - 

orderedList - 


addStaticMarker

addStaticMarker(htmlBuilder,
                point,
                value,
                title)
Parameters:
htmlBuilder - 

point - 

value - 

title - 


addTempUnplayables

addTempUnplayables(point,
                   board,
                   chains,
                   list)
Parameters:
point - 

board - 

chains - 

list - 


addUnplayables

addUnplayables(point,
               board,
               chains,
               list)
Parameters:
point - 

board - 

chains - 

list - 


anyPlayableTiles

anyPlayableTiles()

belowTeamTitleRowHtml

String belowTeamTitleRowHtml(/*Number*/ numCols)

Gets any HTML for an information row to be displayed below the bottom team titles.

Overrides:
belowTeamTitleRowHtml in class Game
Parameters:
numCols - 
The number of columns of the table the row will belong in, set colspan accordingly.
Returns:
By default returns empty. Override and return '...' to add information.

boardValueFromValueColor

String boardValueFromValueColor(/*String*/ value,
                                /*Number*/ color)

Gets the board value from a value and color. By default, the value is returned if color is zero, else the upper case of the value is returned.

Overrides:
boardValueFromValueColor in class Game
Parameters:
value - 
The value.
color - 
The color.
Returns:
The board value.

buyShare

buyShare(chainIndex,
         buyIndex)
Parameters:
chainIndex - 

buyIndex - 


buyShareChanged

buyShareChanged(chainIndex,
                buyIndex)
Parameters:
chainIndex - 

buyIndex - 


canGameBeEnded

canGameBeEnded()

canTeamBuyShares

canTeamBuyShares(team)
Parameters:
team - 


canTeamPlayATile

canTeamPlayATile(team)
Parameters:
team - 


chainHtml

chainHtml(chain,
          buy,
          buttonId,
          buttonEvent,
          buttonTitleIndex)
Parameters:
chain - 

buy - 

buttonId - 

buttonEvent - 

buttonTitleIndex - 


chainIndexFromXY

chainIndexFromXY(x,
                 y,
                 board,
                 chains)
Parameters:
x - 

y - 

board - 

chains - 


chainsHtml

chainsHtml(buy)
Parameters:
buy - 


chooseMoreTiles

chooseMoreTiles(team)
Parameters:
team - 


completeMerger

completeMerger()

completeYourTurnHtml

String completeYourTurnHtml(/*String*/ resourceName)

Called when needing the complete-your-turn game prompt HTML (typically a short sentence about the move and a Send This Move button). Override and set mouse events here. Internally uses the "completeYourTurn" resource.

Overrides:
completeYourTurnHtml in class Game
Parameters:
resourceName - 
(Optional) A resource name to override the default resource to use.
Returns:
HTML for the game prompts.

createChain

createChain(chainIndex)
Parameters:
chainIndex - 


createChainHtml

createChainHtml()

decideWhatToDoNext

decideWhatToDoNext(team,
                   depth)
Parameters:
team - 

depth - 


dispose

dispose()
Overrides:
dispose in class Game

dumpOrHoldShare

dumpOrHoldShare()

endTheGame

endTheGame()

endTheGameHtml

endTheGameHtml()

findChainPoint

findChainPoint(chain)
Parameters:
chain - 


findChainPointFromBoard

findChainPointFromBoard(board,
                        boardChar)
Parameters:
board - 

boardChar - 


findMatchingChainPoint

findMatchingChainPoint(point,
                       board,
                       boardChar)
Parameters:
point - 

board - 

boardChar - 


getAvailableChainIndices

getAvailableChainIndices()

getBonusHolders

getBonusHolders(chainIndex,
                primary)
Parameters:
chainIndex - 

primary - 


getChainSize

getChainSize(board,
             boardChar)
Parameters:
board - 

boardChar - 


getChainSizeAtPoint

getChainSizeAtPoint(boardPoint)
Parameters:
boardPoint - 


getChainSizeAtPointBoard

getChainSizeAtPointBoard(point,
                         board)
Parameters:
point - 

board - 


getMarketShares

getMarketShares()

getMergeIndices

getMergeIndices(boardPoint)
Parameters:
boardPoint - 


getMergeIndicesFromPointBoardChain

getMergeIndicesFromPointBoardChain(boardPoint,
                                   board,
                                   chains)
Parameters:
boardPoint - 

board - 

chains - 


getNewGamePlayerOrder

Array getNewGamePlayerOrder(/*Array*/ userInfo)

Orders the players for the next game. By default the user information is reversed.

Overrides:
getNewGamePlayerOrder in class Game
Parameters:
userInfo - 
An array of user information as currently in this game.
Returns:
An array of user information.

getRandomTiles

getRandomTiles(numNeeded)
Parameters:
numNeeded - 


getTeamTitleHtml

String getTeamTitleHtml(/*Team*/ team,
                        /*Boolean*/ top)

Gets the HTML for the team title on the board. By default uses resources 'turnTeamTitle' or 'teamTitle'.

Overrides:
getTeamTitleHtml in class Game
Parameters:
team - 
The team to get the color for.
top - 
Whether this team's title will be displayed above the board or below.
Returns:
The log background color.

getTeamTitleHtmlPlain

getTeamTitleHtmlPlain(team)
Parameters:
team - 


getTempUnplayables

getTempUnplayables(board,
                   chains)
Parameters:
board - 

chains - 


getUnplayables

getUnplayables(board,
               chains)
Parameters:
board - 

chains - 


handleMerge

handleMerge()

handleNewChain

handleNewChain()

hideButton

hideButton(point)
Parameters:
point - 


hiliteButton

hiliteButton(point)
Parameters:
point - 


holdShares

holdShares()

hotelPlaced

hotelPlaced()

indexInList

indexInList(index,
            list)
Parameters:
index - 

list - 


initialize

void initialize(/*Number*/ numPlayers,
                /*Number*/ turnTeamIndex)

The first method to be called when a game is created, override to set up teams, players and the game state.

Overrides:
initialize in class Game
Parameters:
numPlayers - 
The number of players from the game form.
turnTeamIndex - 
The index of the team to set the initial turn. Call the Super with -1 to set all teams turn.

Example:

// Override initialize
   initialize:function(numPlayers,turnTeamIndex)
   {
      // Call the Super.initialize to add default teams.
      Super.initialize(numPlayers,turnTeamIndex);
 
      // Initialize the board state.
      this.info["board"]="rnbqkbnrpppppppp                                PPPPPPPPRNBQKBNR";
      var team=this.teams[0];
      team.info["i_ep"]=-1;
      team.info["b_cs"]=true;
      team.info["b_cl"]=true;
      team=this.teams[1];
      team.info["i_ep"]=-1;
      team.info["b_cs"]=true;
      team.info["b_cl"]=true;
      
      // Log the start of game.
      this.move.log=this.logEntry(44);
   }

isChainValue

isChainValue(value,
             chains)
Parameters:
value - 

chains - 


isHotelValue

isHotelValue(value)
Parameters:
value - 


isNewChainPoint

isNewChainPoint(boardPoint)
Parameters:
boardPoint - 


isNewChainPointBoard

isNewChainPointBoard(boardPoint,
                     board)
Parameters:
boardPoint - 

board - 


isSafeChainValue

isSafeChainValue(value,
                 chains)
Parameters:
value - 

chains - 


itsYourTurnHtml

String itsYourTurnHtml(/*String*/ resourceName)

Called when needing the it-is-your-turn game prompt HTML (typically a short sentence about the move). Override and set mouse events here. Internally uses the "itIsYourTurnToMove" resource.

Overrides:
itsYourTurnHtml in class Game
Parameters:
resourceName - 
(Optional) A resource name to override the default resource to use.
Returns:
HTML for the game prompts.

logBoughtShares

logBoughtShares()

logStartOfMerge

logStartOfMerge(mergeIndices)
Parameters:
mergeIndices - 


mergeeOptionsHtml

mergeeOptionsHtml()

mergerCompleteHtml

mergerCompleteHtml()

newChainHtml

newChainHtml(chain,
             buy,
             buttonId,
             buttonEvent,
             buttonTitleIndex)
Parameters:
chain - 

buy - 

buttonId - 

buttonEvent - 

buttonTitleIndex - 


nextTeamIndexToDealWithMerger

nextTeamIndexToDealWithMerger()

normalButton

normalButton(point)
Parameters:
point - 


notYourTurnHtml

String notYourTurnHtml(/*String*/ resourceName)

Called when needing the it-is-not-your-turn game prompt HTML (typically a short sentence with Send Reminder, Refresh Game and Close Window buttons Start Another Game button). Override to set. Internally uses the "notYourTurn" resource.

Overrides:
notYourTurnHtml in class Game
Parameters:
resourceName - 
(Optional) A resource name to override the default resource to use.
Returns:
HTML for the game prompts.

numChainsOnBoard

numChainsOnBoard()

offerDrawHtml

String offerDrawHtml(/*String*/ resourceName)

Called when needing the offer-a-draw-with-this-move prompts HTML (typically a short sentence and a Offer A Draw checkbox). Override to set. Internally uses the "youMayOfferDraw" and "offerDrawWithThisMove" resources.

Overrides:
offerDrawHtml in class Game
Parameters:
resourceName - 
(Optional) A resource name to override the default resource to use.
Returns:
HTML for the game prompts.

payBonuses

payBonuses(holders,
           amount,
           chainIndex,
           primary)
Parameters:
holders - 

amount - 

chainIndex - 

primary - 


payMajorities

payMajorities(chainIndex)
Parameters:
chainIndex - 


pickMergeWinner

pickMergeWinner(chainIndex)
Parameters:
chainIndex - 


pickMergeWinnerHtml

pickMergeWinnerHtml()

pickNextMergee

pickNextMergee(chainIndex)
Parameters:
chainIndex - 


pickNextMergeeHtml

pickNextMergeeHtml()

placeHotel

placeHotel(boardPoint)
Parameters:
boardPoint - 


placeHotelHtml

placeHotelHtml()

placeHotelOnMouseDown

placeHotelOnMouseDown(screenPoint)
Parameters:
screenPoint - 


placeHotelOnMouseMove

placeHotelOnMouseMove(screenPoint)
Parameters:
screenPoint - 


placeHotelOnMouseOut

placeHotelOnMouseOut(screenPoint)
Parameters:
screenPoint - 


placeNewHotel

placeNewHotel(boardPoint)
Parameters:
boardPoint - 


pointCanBePlayed

pointCanBePlayed(point)
Parameters:
point - 


pointInList

pointInList(point,
            list)
Parameters:
point - 

list - 


pointIsInAnyPlayersHand

pointIsInAnyPlayersHand(point)
Parameters:
point - 


pointIsInPlayersHand

pointIsInPlayersHand(point)
Parameters:
point - 


pointIsTempUnplayable

pointIsTempUnplayable(point)
Parameters:
point - 


pointIsUnplayable

pointIsUnplayable(point)
Parameters:
point - 


processEndGame

processEndGame()

readTeamInfo

readTeamInfo(team)
Parameters:
team - 


removePointFromList

removePointFromList(point,
                    list)
Parameters:
point - 

list - 


retire

retire()

retireHtml

retireHtml()

retireTeam

retireTeam()

sellAllTeamsShares

sellAllTeamsShares(team)
Parameters:
team - 


sellShare

sellShare()

sellShares

sellShares(chainIndex,
           team,
           numShares)
Parameters:
chainIndex - 

team - 

numShares - 


sendMove

Boolean sendMove(/*Boolean*/ sendNow,
                 /*Player*/ player)

Gets called when the Send Move button is pushed. Override and set the game state, then call Super.sendMove.

Overrides:
sendMove in class Game
Parameters:
sendNow - 
(Optional) Send the moves to the server now. Else, save the move for sending later. Defaults to true.
player - 
(Optional) The player responsible for the move. Defaults to the current player (game.player).
Returns:
true.

setToChain

setToChain(point,
           value)
Parameters:
point - 

value - 


sharesFromString

sharesFromString(stringValue)
Parameters:
stringValue - 


sharesToString

sharesToString(shares)
Parameters:
shares - 


sharesToValueString

sharesToValueString(shares)
Parameters:
shares - 


spaceNotation

spaceNotation(x,
              y)
Parameters:
x - 

y - 


spectateChainHtml

spectateChainHtml(chain,
                  buy,
                  buttonId,
                  buttonEvent,
                  buttonTitleIndex)
Parameters:
chain - 

buy - 

buttonId - 

buttonEvent - 

buttonTitleIndex - 


spectateChainsHtml

spectateChainsHtml()

spectatingHtml

String spectatingHtml()

Called when needing the you-are-spectating game prompts HTML. Override to set. Internally returns the following combined: refreshGameButtonHtml and closeWindowButtonHtml.

Overrides:
spectatingHtml in class Game
Returns:
HTML for the game prompts.

synch

void synch()

Called when the game should synchronize with info properties from the server.

Overrides:
synch in class Game
Notes:
The game should set tangible properties or states for each custom property set in the info collection. The info collection should not be referenced outside the scope of the synch or sendMove methods.

synchTeam

void synchTeam(/*Team*/ team)

Called to synchronize the team properties with the raw team data. Just the color and title properties are set by default, override to set more.

Overrides:
synchTeam in class Game
Parameters:
team - 
The team to synchronize.

teamAtIndexMustDealWithMerger

teamAtIndexMustDealWithMerger(teamIndex)
Parameters:
teamIndex - 


teamBonuses

teamBonuses(team,
            holders,
            amount,
            i,
            primary)
Parameters:
team - 

holders - 

amount - 

i - 

primary - 


teamTitleMouseoverHtml

teamTitleMouseoverHtml(team)
Parameters:
team - 


teamsBonusWorth

teamsBonusWorth(team)
Parameters:
team - 


teamsNetWorth

teamsNetWorth(team)
Parameters:
team - 


teamsShareHoldings

teamsShareHoldings(team)
Parameters:
team - 


tilesFromString

tilesFromString(stringValue)
Parameters:
stringValue - 


tilesToString

tilesToString(tiles)
Parameters:
tiles - 


topSendMoveHtml

topSendMoveHtml()

tradeShares

tradeShares()

updateChain

updateChain(chain)
Parameters:
chain - 


updateChainDisplay

updateChainDisplay(chain)
Parameters:
chain - 


updateChainsDisplay

updateChainsDisplay()

updateMarketTiles

updateMarketTiles()

valueFromBoardValue

String valueFromBoardValue(/*String*/ boardValue)

Gets the value from a board value. By default, the lower case of the board value is returned.

Overrides:
valueFromBoardValue in class Game
Parameters:
boardValue - 
The value to check, by default a single character.
Returns:
The value.

writeTeamInfo

writeTeamInfo(team)
Parameters:
team -