Class: TradeManager

TradeManager()

Manage the trade

Constructor

new TradeManager()

Source:

Methods

checkRoutes()

fills the best trade route in this.tradeRoute and the best potential route in this.potentialTradeRoute If an index is given, it returns the best route with this index or the best land route if index is a land index
Source:

checkTrader()

Called when a market was built or destroyed, and checks if trader orders should be changed
Source:

performBarter()

Try to barter unneeded resources for needed resources. only once per turn because the info is not updated within a turn
Source: