Changes between Version 4 and Version 5 of AIEngineAPI


Ignore:
Timestamp:
Feb 9, 2016, 8:19:58 PM (8 years ago)
Author:
mimo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AIEngineAPI

    v4 v5  
     1> A nice first reading is given in a 2012 interview with Jonathan Waller (quantumstate) on aigamedev: [http://aigamedev.com/open/interview/ai-in-0ad/]. The paragraph on the AI Architecture is still an up-to-date description of the AI interface.
     2
    13AI scripts receive data from the engine about the current simulation state, once per simulation turn. This is a fairly low-level mechanism - it is expected that AI scripts will use a wrapper to provide more convenient access to the data. Currently this wrapper is implemented in `common-ai/base.js`.
    2 
    3 > Note by lexa: here is [http://code.google.com/p/split-bot/source/browse/#svn%2Ftrunk%2Fsrc%2Forg%2Fzeroad%2Fcommon_api a fully typed description of the javascript classes]
    44
    55The Engine uses the AIInterface and AIProxy components to provide this data.  The AIInterface is a player level component which handles communication with the AI.  AIProxy is an entity level component which creates a proxy representation of each entity to be given to the AI.