Games\Viktory2\Game.js
GamesByEmail
Object
All Implemented Interfaces:
GamesByEmail.Viktory2Unit
implementsFoundation.Class
Constructor Summary |
|
Enum Summary | |
static | BOMBARDMENT_RANGE
|
static | CARGO_CAPACITY
|
static | CARGO_OFFSET
|
static | CARGO_STAGGER
|
static | CARGO_VALUE
|
static | HIT_VALUE
|
static | MOVEMENT_ALLOWANCE
|
static | SORT_ORDER
|
static | TYPE
|
Constant Summary | |
static | COLOR_BLIND
|
Methods inherited from Foundation.Class |
getTypePath , isInstanceOf |
Constructor Detail |
GamesByEmail.Viktory2Unit(piece,
index,
color,
type,
attributes)
piece -
index -
color -
type -
attributes -
Enum Detail |
static BOMBARDMENT_RANGE
a -
al -
f -
fl -
static CARGO_CAPACITY
f -
static CARGO_OFFSET
static CARGO_STAGGER
static CARGO_VALUE
i -
c -
a -
static HIT_VALUE
i -
c -
a -
f -
static MOVEMENT_ALLOWANCE
i -
c -
a -
f -
static SORT_ORDER
i -
c -
a -
f -
t -
y -
m -
C -
static TYPE
INFANTRY -
CAVALRY -
ARTILLERY -
FRIGATE -
DOOMSDAY_CLOCK -
CAPITAL -
TOWN -
TOWN_RELOCATING -
CITY -
CITY_RELOCATING -
METROPOLIS -
METROPOLIS_RELOCATING -
PENNANT -
PILLAGE -
BOMBARD -
SUBJUGATION_FLAG -
ROAD -
FERRY -
Constant Detail |
static COLOR_BLIND
Method Detail |
addBombardables(bombardables,
x,
y,
range,
distance)
bombardables -
x -
y -
range -
distance -
addFrigateMovables(movables,
x,
y,
allowance,
distance,
lastWasLand,
retreatIndex)
movables -
x -
y -
allowance -
distance -
lastWasLand -
retreatIndex -
addLandMovables(movables,
x,
y,
allowance,
distance,
retreatIndex)
movables -
x -
y -
allowance -
distance -
retreatIndex -
addRelocatable(relocatables,
x,
y)
relocatables -
x -
y -
addTransportMoveable(movables,
x,
y)
movables -
x -
y -
addTransportMoveables(movables)
movables -
addUnloadMoveable(movables,
x,
y,
retreatIndex)
movables -
x -
y -
retreatIndex -
addUnloadMoveables(movables)
movables -
calcSubjugation()
canBeAttackedBy(color,
rulerColor)
color -
rulerColor -
canBombard()
canMove()
canTakeReserveUnit(unitType,
controlsCapital)
unitType -
controlsCapital -
carriesCargo(cargoType)
cargoType -
centerUnload(screenPoint,
piece)
screenPoint -
piece -
couldUnload()
countMilitaryUnits(unitList,
property)
unitList -
property -
debug()
dispose()
dispose
in class Class
elementId(id)
id -
eliminateCargo(cargoType,
update)
cargoType -
update -
static fromValue(piece,
index,
value)
piece -
index -
value -
getActiveCargoType()
getAttackFromHexHtml()
getAttackingFromIndex()
getAttributes()
getBattleHtml()
getBombardRange()
getBombardables()
getCargoClip(unitType,
hilite)
unitType -
hilite -
getCargoValue()
getClipRect(hilite,
piece,
loaded)
hilite -
piece -
loaded -
getElement(id)
id -
getHitValue(unitList)
unitList -
getHtml(src,
screenPoint,
zIndex)
src -
screenPoint -
zIndex -
getMovables(forUndarkness)
forUndarkness -
getName()
static getNextValue(value)
value -
getRelocatables()
getRetreatables()
getScore(color)
color -
getValue()
hasUnloadables(cargoType)
cargoType -
ignoresSlowTerrain()
isArtillery()
isBombarder()
isCapital()
isCavalry()
isCity()
isCivilization()
isFrigate()
isHit()
isInAlliance(color,
rulerColor)
color -
rulerColor -
isInfantry()
isLandUnit()
isLoadable(forRetreat)
forRetreat -
isMetropolis()
isMilitary()
isNewThisTurn()
isOptionalHit()
isPennant()
isRelocatable()
isRelocating()
isRolling()
isTown()
isUnloadableCargoAtIndex(index,
cargoType)
index -
cargoType -
loadCargo(unit)
unit -
moveTo(destination,
spacesNeeded,
retreatIndex)
destination -
spacesNeeded -
retreatIndex -
noteClosestCargoToScreenPoint(screenPoint,
cargoType)
screenPoint -
cargoType -
parseAttributes(attributes)
attributes -
remove(update,
orphanedPennantToo)
update -
orphanedPennantToo -
removedReserveUnit(unitType)
unitType -
resetAttributes()
resetTurnAttributes()
retreatCargo(unit)
unit -
retreatTo(destination)
destination -
saveScore(cargoExpendability)
cargoExpendability -
setActive()
setHilite(hiliteOn)
hiliteOn -
setHit(hit,
isOptional)
hit -
isOptional -
setRelocating(relocating)
relocating -
setSubjugation(rulerColor)
rulerColor -
setVisibility(visible)
visible -
snapCargo(piece)
piece -
snapUnload(boardPoint,
piece)
boardPoint -
piece -
toString()
toString
in class Class
tookReserveUnit(unitType)
unitType -
static unitSorter(u1,
u2)
u1 -
u2 -
unloadCargo(piece,
update)
piece -
update -
upgradeToCity()
upgradeToMetropolis()
whackAllUnits(unitType)
unitType -