• 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 "incomingResources"
    Differences between revisions 1 and 9 (spanning 8 versions)
    Revision 1 as of 2013-08-17 01:37:26
    Size: 460
    Editor: tech
    Comment:
    Revision 9 as of 2014-02-10 18:29:20
    Size: 829
    Editor: Inanna
    Comment:
    Deletions are marked like this. Additions are marked like this.
    Line 1: Line 1:
    function ## page was renamed from city.incomingResources
    == function ==
    {{http://guide.neatportal.com/moin_static/applets/FCKeditor/editor/images/spacer.gif|http://guide.neatportal.com/moin_static/applets/FCKeditor/editor/images/spacer.gif|class="TB_Button_Image"}} '''''city.incomingResources() '''''
    Line 3: Line 5:
    {{http://guide.neatportal.com/moin_static/applets/FCKeditor/editor/images/spacer.gif||background-position="0px -528px",class="TB_Button_Image"}} function that returns the amount of resources incoming to a city based on the incoming resources in an object form. (food,wood,stone,iron,gold,total)
    Line 26: Line 28:
    will output the current amount of food incoming to the city (not including the food currently in the city) {{http://img197.imageshack.us/img197/1314/xvel.png|http://img197.imageshack.us/img197/1314/xvel.png|class="image__pic js-image-pic"}}
    Line 28: Line 30:
    would output 240,000,000
    ----
    CategoryFunctions

    function

    http://guide.neatportal.com/moin_static/applets/FCKeditor/editor/images/spacer.gif city.incomingResources()

    function that returns the amount of resources incoming to a city based on the incoming resources in an object form. (food,wood,stone,iron,gold,total)

    usage:

    city.incomingResources().property

    properties:

    total
    
    gold
    
    iron
    
    stone
    
    food
    
    wood

    example:

    echo city.incomingResources().food

    http://img197.imageshack.us/img197/1314/xvel.png

    would output 240,000,000


    CategoryFunctions

    incomingResources (last edited 2014-02-10 18:29:20 by Inanna)