• My Pages
  • Comments
  • Add Link
  • Subscribe
  • Subscribe User
  • Edit (GUI)
  • Edit (Text)
  • Rename Page
  • Copy Page
  • Load Page
  • Save Page
  • Delete Page
  • Attachments
  • Check Spelling
  • Diffs
  • Info
  • Revert to this revision
  • XML
  • Render as Docbook
  • Print View
  • Raw Text
  • Delete Cache
  • Like Pages
  • Local Site Map
  • Remove Spam
  • Package Pages
  • Sync Pages
    • Diff for "getAvailableTroop"
    Differences between revisions 3 and 4
    Revision 3 as of 2015-03-22 05:13:53
    Size: 1084
    Editor: tech
    Comment:
    Revision 4 as of 2015-04-23 04:36:20
    Size: 1100
    Editor: Inanna
    Comment:
    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"


    CategoryFunctions

    getAvailableTroop (last edited 2016-01-09 10:48:40 by LKD70)