home *** CD-ROM | disk | FTP | other *** search
/ Gambler 33 A / GAMBLERCD33A.BIN / Demos / CIVILCTP / setup / data / civdemo.ctp / ctp_data / default / aidata / README.txt < prev    next >
Text File  |  1999-06-23  |  5KB  |  165 lines

  1.                                     aidata\README.TXT
  2.  
  3.    These files are all loaded into memory when the application starts up,
  4. and then made active based on the behavior of the active .fli or the player index.
  5.  
  6.  
  7. Structure:
  8.  
  9.         Personality
  10.             |
  11.             V
  12.           Main{who}
  13.    +------+--------------+--------+    
  14.    |      |              |        |
  15.    V      V              V        V 
  16.   I.    II.          III.       IV.
  17.   Init  Begin{who}   Diplomacy  Endturn
  18.  
  19.           |
  20.           V
  21.    def_personality_who_{who}
  22.           +
  23.           |
  24.           V
  25.   def_personality_{behavior clusters}
  26.           
  27.  
  28. Starting fli files for each personality:
  29.  
  30. personality.fli                    - unused template for personalities
  31. personalityDefault.fli            -
  32. personalityBarbarians.fli        - first fli called for this personality
  33. personalityCleric.fli            - first fli called for this personality
  34. personalitySciFew.fli            - first fli called for this personality
  35. personalitySciMany.fli            - first fli called for this personality
  36. personalitySlaver.fli            - first fli called for this personality
  37. personalityWarFew.fli            - first fli called for this personality
  38. personalityWarMany.fli            - first fli called for this personality
  39.  
  40. Pointed to (one-for-one) by each personality fli:
  41.  
  42. main.fli                        - unused template for personalities
  43. mainBarbarians.fli                - first fli called for this personality
  44. mainCleric.fli                    - 
  45. mainSciFew.fli                    - 
  46. mainSciMany.fli                    - 
  47. mainSlaver.fli                    - 
  48. mainWarFew.fli                    - 
  49. mainWarMany.fli                    - 
  50.  
  51. I. Initialization
  52.  
  53. init.fli                        - used, but not relevant.
  54.  
  55.   Defines who I am, what my science should be and how I should settle.
  56. Also includes all of the shared inputs and all of the shared outputs.  
  57.  
  58. II.(a) Begin Turn (personality specific)
  59.  
  60. beginturn.fli                    - unused template
  61. beginturnBarbarians.fli            - 
  62. beginturnCleric.fli                - 
  63. beginturnSciFew.fli                - 
  64. beginturnSciMany.fli            - 
  65. beginturnSlaver.fli                - 
  66. beginturnWarFew.fli                - 
  67. beginturnWarMany.fli            - 
  68.  
  69.   Define personality files allow us to share the rest of the files:
  70.  
  71. def_personality_who_barbarian.fli - set flags to be the barbarian personality
  72. def_personality_who_cleric.fli      - set flags to be a cleric personality
  73. def_personality_who_scientist.fli - set flags to be a scientist personality
  74. def_personality_who_slaver.fli      - set flags to be a slaver personality
  75. def_personality_who_warrior.fli      - set flags to be a warrior personality
  76.  
  77. def_personality_science_fast.fli  - set flags to build science slowly
  78. def_personality_science_slow.fli  - set flags to build science slowly
  79. def_personality_settle_dense.fli  - set flags to build cities close together
  80. def_personality_settle_loose.fli  - set flags to build cities far apart personality
  81.  
  82. II.(b) Begin Turn (common)
  83.  
  84.   Setup input and output variables:
  85.  
  86. inputs.fli                        - specific shared variables for strategic system
  87. input_responses.fli                - all of the memory variables for dip system  
  88. input_deals.fli                    - all of the input variables for whether I have deals with opponent
  89. outputs.fli                        - 
  90. output_aipnames.fli                - 
  91.  
  92.   Set the strategic variables, regarding the desireability to build mines or
  93. farms, amount of gold to spend, WGF, etc.
  94.  
  95. set_budget.fli                    - 
  96. set_food_or_prod.fli            - 
  97. set_food_or_prod_barbar.fli        - 
  98. set_food_or_prod_sci.fli        - 
  99. set_govern.fli                    - 
  100. set_govern_sci.fli                - 
  101. set_govern_theocrat.fli            - 
  102. set_govern_war.fli                - 
  103. set_inst_priority.fli            - 
  104. set_military_readiness.fli        - 
  105. set_military_readiness_bar.fli    - 
  106. set_pw.fli                        - 
  107. set_resource_desire.fli            - 
  108. set_resource_desire_barbar.fli    - 
  109. set_science_speed.fli            - 
  110. set_science_speed_high.fli        - 
  111. set_science_speed_slow.fli        - 
  112. set_settle_dense.fli            - 
  113. set_settle_loose.fli            - 
  114. set_settle_density.fli            - 
  115. set_wgf.fli                        - 
  116.  
  117.   File for switching the aip files to produce the current aip state:
  118.  
  119. aiploader.fli                    - 
  120.  
  121. III. Diplomacy
  122.  
  123. Pointed to (one-for-one) by each personality fli:
  124.  
  125. diplomacy.fli                    - template for personalities
  126.  
  127. diplomacyBarbarians.fli            - 
  128. diplomacypeacebackstab.fli        - call set_peace and set_backstab
  129. diplomacypeaceloyal.fli            - 
  130. diplomacywarbackstab.fli        - 
  131. diplomacywarloyal.fli            - call set_loyal and set_war
  132.  
  133. Called by personality specific fli's:
  134.  
  135. diplomacy_set_average_trust.fli    - I will keep my word most of the time (unused)
  136. diplomacy_set_backstab.fli        - I will backstab you
  137. diplomacy_set_loyal.fli            - I will keep my word even if I hate you
  138. diplomacy_set_opportunist.fli    - opposite of backstab (unused)
  139. diplomacy_set_peace.fli            - I am peaceful
  140. diplomacy_set_war.fli            - I am warlike
  141.  
  142. Systems of rules run once per opponent:
  143.  
  144. diplomacy_begin.fli                - do I like you or not
  145.  
  146. diplomacy_pre_incoming.fli        - reaction to messages sent to me
  147. diplomacy_pre_outgoing.fli        - consideration of messages I want to send
  148.  
  149. diplomacy_accepted.fli            - reaction to my messages that were accepted
  150. diplomacy_rejected.fli            - reaction to my messages that were rejected
  151.  
  152. IV. Endturn
  153.  
  154. endturn.fli                        - used, but not relevant.
  155.  
  156. Miscellaneous files:
  157.  
  158. Text4.txt                        - excerpt from fsdiplomacy
  159. inputs_dip_incoming_mess.txt    -
  160. strategic_ai_config.txt            - used to set threat map cell size (and other strategic map parameters)
  161. aipplan.txt                        - 
  162.  
  163. README.txt                        - this file
  164.  
  165.