Games\Viktory2\Game.js
GamesByEmail
Array
GamesByEmail.Pieces
All Implemented Interfaces:
GamesByEmail.Viktory2Pieces
extendsPieces
Constructor Summary |
Creates a piece collection.
|
Field Summary |
Fields inherited from GamesByEmail.Pieces |
game |
Fields inherited from Array |
length |
Methods inherited from GamesByEmail.Pieces |
appendHiliteHtml , appendHtml , appendInnerHtml , cancelFlashes , clear , countColor , findAtPoint , flash , getNewPiece , getValue , setValue |
Methods inherited from Array |
indexOf |
Methods inherited from Foundation.Class |
getTypePath , isInstanceOf |
Constructor Detail |
GamesByEmail.Viktory2Pieces(/*Game
*/ game)
Creates a piece collection.
Parameters:game -The parent game object.
Method Detail |
addNeededPennants(color,
rulerColor,
update)
color -
rulerColor -
update -
anyBombardersLeft(color)
color -
anyMoversLeft(color)
color -
calculateBasicUndarkness(color,
rulerColor)
color -
rulerColor -
calculateExtendedUndarkness(color,
rulerColor)
color -
rulerColor -
canBalanceExploration(boardVisibility)
boardVisibility -
clearBorders()
clearUnitRelocating()
countHexType(hexType)
hexType -
debug()
dispose()
doomsdayClockCount(color)
color -
findAllWithUnitType(color,
type)
color -
type -
findAtXY(x,
y)
x -
y -
findByBoardValue(boardValue)
boardValue -
findCapitalPiece(color)
color -
findCapitalUnit(color)
color -
findLeastNeededCargo(color,
cargoType,
cargoExpendability)
color -
cargoType -
cargoExpendability -
findLeastNeededUnit(color,
unitType,
cargoExpendability)
color -
unitType -
cargoExpendability -
findNextPendingBattle(color,
rulerColor,
piece)
color -
rulerColor -
piece -
flashBattles(color,
rulerColor)
color -
rulerColor -
getAllianceCivilizations(color,
rulerColor)
color -
rulerColor -
getBuildables(color,
rulerColor,
full,
townRelocation)
color -
rulerColor -
full -
townRelocation -
getCities(color,
list)
color -
list -
getCivilizations(color)
color -
getNearestWaters(piece,
seed,
color,
rulerColor)
piece -
seed -
color -
rulerColor -
getOpponentCities(color,
list)
color -
list -
getOpponentCivilizations(color)
color -
getOpponentTowns(color,
list)
color -
list -
getReservables(color,
rulerColor,
unitType,
controlsCapital)
color -
rulerColor -
unitType -
controlsCapital -
getRulerColor(color)
color -
getScore(color)
color -
getTowns(color)
color -
getUndarknessBase()
getUnitCounts(color)
color -
getUnitValue()
hasDoomsdayClock(color)
color -
removeAllUnits(update)
update -
removePennants(color,
update)
color -
update -
removePennantsInEnemyLand(color,
enemyColor)
color -
enemyColor -
resetTurnAttributes(color)
color -
revealSurroundings(color,
visibility)
color -
visibility -
setActiveUnit(unit)
unit -
setAllMilitaryMoveComplete(color,
update)
color -
update -
setAllianceColorBlind(color)
color -
setBalancable(boardVisibility)
boardVisibility -
setRecursionFlag(name,
value)
name -
value -
setSubjugation(color,
rulerColor,
update)
color -
rulerColor -
update -
setUndarkness(undarkness)
undarkness -
setUnitValue(value)
value -
updateUnitDisplays()
whackAllUnits(color,
unitType)
color -
unitType -