issues
search
bga-his
/
bga-hereistand
Here I Stand for Board Game Arena
8
stars
2
forks
source link
Map Util functions
#19
Open
awi2d
opened
8 months ago
awi2d
commented
8 months ago
All util functions about interaction with the main board.
get/set Political/religius control.
getPoliticalControl(cityId): Power
setPoliticalControl(cityId, power): void
getReligion(cityId): ReligionIDs
setReligion(cityid, ReligionIDs): void
get city state
cityIsFortified(cityId): boolean
cityInUnrest(cityId) : boolean
cityIsSieged(cityId) : boolean
add/remove/get units. (adding land units is already implemented in Tokens::addLandunits move that function from Tokens to Map)
addUnits(cityId, Power, count, type): void
removeUnity(cityid, Power, count, type): void
getUnits(cityId, Power, type): void // all units of that power
getEnemyUnits(cityId, Power, type): void // all units of powers that are at war with Power)
add/get/capture Leader
getLeader(cityId, Power) : tokenIDs_LEADER
addLeader(cityId, tokenIDs_LEADER) : void // when leader gets added into play or returns from prission/turn track
removeLeader(tokenIDs_LEADER) : void // when leader is permanently removed from game
captureLeaders(cityId, Power) : void //there are no situations where only certain leaders on a field are captured, I think.
move formation. (incomplete implementation exists somewhere
moveFormation(Formation, cityId) : void
getPossibleMoves(Formation) : list of cityIds
getPossibleMoves(cityId startField, Power) : list of cityIds
ships
moveShips(Seazone start, Seazone target, int count, Power) : void //TODO loaned and minor power ships
maybe make add/remove LandUnits and add/remove Ships functions instead of generall add/remove Units?
All util functions about interaction with the main board.