Changes between Version 12 and Version 13 of PetraBot


Ignore:
Timestamp:
May 25, 2017, 11:23:48 PM (7 years ago)
Author:
Sandarac
Comment:

Update with the improvements added in certain victory conditions, and diplomacy requests added in r19116, r19161, r19654.

Legend:

Unmodified
Added
Removed
Modified
  • PetraBot

    v12 v13  
    3535
    3636 == !DiplomacyManager ==
    37 Deals 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.
     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.
     38
     39It will also handle diplomacy requests from other players. If a player switches their diplomacy stance with an AI in a positive direction (for example, "enemy" to "neutral"), it will respond with a chat message declining, accepting, or demanding a tribute in order to accept (or possible suggesting a different stance). On occasion, the AI will send diplomacy requests (via chat message) to other players (both to other AIs and human players). It will try to send requests to a player which shares many mutual enemies. If the other player does not respond by switching their diplomacy stance within some time, the AI will rescind the request.
     40
     41== !GameTypeManager ==
     42The 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). In Capture the Relic, it will also assign guards to captured relics, and it will try to move any captured relics to a nearby Civic Center. From time to time, it will send out armies to try to capture any gaia-owned relics on the map, and it will target the player that possesses the most relics.
    3843
    3944== !GarrisonManager ==
     
    5055== !TradeManager ==
    5156The 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 ==
    54 The 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).
    5557
    5658= [=#queueManager !QueueManager] =