1084
Comment:
|
1100
|
Deletions are marked like this. | Additions are marked like this. |
Line 6: | Line 6: |
This function returns a TroopBean containing the total count of all troops attached to a city (not just the troops in the city, includes troops marching to or returning from somewhere | This function returns the total count of all troops or a specific troop attached to a city. It does not just count the troops in the city, but includes troops marching to or returning from somewhere. |
getAvailableTroop()
Usage: |
city.getAvailableTroop() |
Example: |
city.getAvailableTroop() |
This function returns the total count of all troops or a specific troop attached to a city. It does not just count the troops in the city, but includes troops marching to or returning from somewhere.
echo "I have a total of {city.getAvailableTroop().carriage} transports assigned to this city"