Changes between Version 1 and Version 2 of XML.Entity.Actions.Barter


Ignore:
Timestamp:
Feb 2, 2012, 8:14:09 PM (8 years ago)
Author:
fcxSanya
Comment:

Removed all technical details, created overview and notes sections

Legend:

Unmodified
Added
Removed
Modified
  • XML.Entity.Actions.Barter

    v1 v2  
    1 An entity with the Barter action has a special market interface to buy and sell resources in exchange for other resources.
     1== Overview ==
    22
    3 '''Example:'''
     3An entity with the `BarterMarket` class has a special market interface to buy and sell resources in exchange for other resources.
    44
    5 {{{
    6         <Actions>
    7                 <Barter>
    8                         <Food>1</Food>
    9                         <Wood>2</Wood>
    10                         <Stone>2</Stone>
    11                         <Ore>4</Ore>
    12                 </Barter>
    13         </Actions>
    14 }}}
    15 ----
    16 
    17 = Food =
    18 ''BRIEF DESCRIPTION ::'' Specifies the trading penalty for Food.
    19 
    20 The value means that the player gets this number of resources of this resource type for every 1 resource traded.
    21 
    22 1:1 ratio.
    23 
    24 = Wood =
    25 ''BRIEF DESCRIPTION ::'' Specifies the trading penalty for Wood.
    26 
    27 The value means that the player gets this number of resources of this resource type for every 1 resource traded.
    28 
    29 2:1 ratio.
    30 
    31 = Stone =
    32 ''BRIEF DESCRIPTION ::'' Specifies the trading penalty for Stone.
    33 
    34 The value means that the player gets this number of resources of this resource type for every 1 resource traded.
    35 
    36 2:1 ratio.
    37 
    38 = Ore =
    39 ''BRIEF DESCRIPTION ::'' Specifies the trading penalty for Ore.
    40 
    41 The value means that the player gets this number of resources of this resource type for every 1 resource traded.
    42 
    43 4:1 ratio.
    44 
    45 = Notes: Exchanging Resources =
    46 
    47 The Market is used to buy and sell quantities of resources in exchange for other resource types, through the barter user interface.
    48 
    49 Resources are traded at a 2:1 penalty. For example, to purchase 100 Food, the player must spend 200 points of another resource type (Wood, Stone, or Ore).
     5The Market is used to buy and sell quantities of resources in exchange for other resource types, through the barter user interface.
    506
    517Transfer of resources is instantaneous once triggered; no trade units are required to deliver the traded resources.
     8
     9== Notes ==
     10
     11''For users'': see the more detailed description [wiki:Manual_OtherFeatures#Barter in the manual].
     12
     13''For programmers'':
     14 * `BarterMarket` class allows building to have the barter interface;
     15 * [http://trac.wildfiregames.com/browser/ps/trunk/binaries/data/mods/public/simulation/components/Barter.js the global Barter component] responsible for all barter operations and prices;
     16 * related ticket: #23 (!Buy/Sell Resources).