Size: 1083
Comment:
|
Size: 1100
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
||<tablebgcolor="#F9F9F9" tablestyle="margin:1em 1em 1em 0px;border-style:solid;border-color:rgb(170, 170, 170);border-left-width:2px;color:rgb(0, 0, 0);font-family:sans-serif;font-size:13px;line-height:19.5px; " tableclass="wikitable"#F2F2F2 style="padding:0.2em;border-left-width:2px;border-style:solid;border-color:rgb(170, 170, 170); ">Usage: ||<style="padding:0.2em;border-left-width:2px;border-style:solid;border-color:rgb(170, 170, 170);">city.getAvailableTroop() || ||<#F2F2F2 style="padding:0.2em;border-left-width:2px;border-style:solid;border-color:rgb(170, 170, 170); ">Example: ||<style="padding:0.2em;border-left-width:2px;border-style:solid;border-color:rgb(170, 170, 170);">city.getAvailableTroop() || |
||<tablebgcolor="#F9F9F9" tablestyle="margin:1em 1em 1em 0px;border-style:solid;border-color:rgb(170, 170, 170);border-left-width:2px;color:rgb(0, 0, 0);font-family:sans-serif;font-size:13px;line-height:19.5px; " tableclass="wikitable"#F2F2F2 style="padding:0.2em;border-left-width:2px;border-style:solid;border-color:rgb(170, 170, 170); ">Usage: ||<style="padding:0.2em;border-left-width:2px;border-style:solid;border-color:rgb(170, 170, 170);">city.getAvailableTroop() || ||<#F2F2F2 style="padding:0.2em;border-left-width:2px;border-style:solid;border-color:rgb(170, 170, 170); ">Example: ||<style="padding:0.2em;border-left-width:2px;border-style:solid;border-color:rgb(170, 170, 170);">city.getAvailableTroop() || |
Line 6: | Line 6: |
This function returns a troop bean 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. |
Line 10: | Line 11: |
Line 13: | Line 12: |
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"