• 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 "GetTroops"
    Differences between revisions 2 and 3
    Revision 2 as of 2013-07-31 05:12:09
    Size: 361
    Editor: tech
    Comment:
    Revision 3 as of 2013-07-31 05:14:26
    Size: 409
    Editor: tech
    Comment:
    Deletions are marked like this. Additions are marked like this.
    Line 3: Line 3:
    troop bean objects are needed for use with other functions, such as city.getCarryingLoad(troopBean) or city.getTravelTime(fieldId1,fieldId2,troopBean,type) troop bean objects are needed for use with other functions, such as [[city.getCarryingLoad|city.getCarryingLoad(troopBean)]] or [[city.getTravelTime|city.getTravelTime(fieldId1,fieldId2,troopBean,type)]]

    this function converts a troop string into a troop bean object.

    troop bean objects are needed for use with other functions, such as city.getCarryingLoad(troopBean) or city.getTravelTime(fieldId1,fieldId2,troopBean,type)

    example:

    troops = "a:99.5k,w:100,wo:100,p:100,sw:100,c:90,cata:10"

    troopBean = GetTroops(troops)


    CategoryFunctions

    GetTroops (last edited 2013-07-31 05:14:26 by tech)