• 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

    Revision 1 as of 2015-03-22 03:02:16

    Clear message

    getAvailableTroop()

    Usage:

    city.getAvailableTroop()

    Example:

    city.getAvailableTroop()

    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

    • echo "I have a total of  {city.getAvailableTroop().carriage} transports assigned to this city"


    CategoryFunctions