Changes between Version 10 and Version 11 of PetraBot


Ignore:
Timestamp:
Jan 6, 2017, 6:38:10 AM (7 years ago)
Author:
Sandarac
Comment:

Update to the changes in diplomacyManager in r18945 and the addition of the gameTypeManager in r19085 and r19089.

Legend:

Unmodified
Added
Removed
Modified
  • PetraBot

    v10 v11  
    3535
    3636 == !DiplomacyManager ==
    37 Deals with tributes with allies. It also updates the AI's [#VariabilityofAIstrategy cooperative trait] following its allies actions.
     37Deals with tributes with allies. It also updates the AI's [#VariabilityofAIstrategy cooperative trait] following its allies actions. In "last man standing" games, if the AI happens to have no enemies at any point in the game, the AI will become enemies with the strongest player (but it will be more inclined to choose a neutral player, if there are any). It will wait to make this decision if it is not strong enough.
    3838
    3939== !GarrisonManager ==
     
    5050== !TradeManager ==
    5151The tradeManager deals with barter and trade. It is responsible for finding the best available trade route (either on land or water), training traders and switching trade route when a better one is available.
     52
     53== !GameTypeManager ==
     54The gameTypeManager handles events that are important for specific victory conditions. In the Wonder victory condition, this consists of planning the construction of the wonder. In Regicide, it will handle cases when the hero is injured, and it will try to garrison the hero if it loses too much health. It will also train and manage a number of healer units and assign them as guards to the hero (the exact number is dependent on the AI's defensive trait).
    5255
    5356= [=#queueManager !QueueManager] =