Beispiel #1
0
        public AiCollection(Info.AiInfoDatabase db)
        {
            m_ais            = new Dictionary <string, IUtilityAi>();
            m_actions        = new ActionCollection();
            m_considerations = new ConsiderationCollection();
            m_options        = new OptionCollection(Actions, Considerations);
            m_behaviours     = new BehaviourCollection(Options);

            Populate(db);
        }
 public DynamicAiConstructor(Info.AiInfoDatabase db)
 {
     Init(db);
 }
 private void Init(Info.AiInfoDatabase db)
 {
     AIs = new AiCollection(db);
 }
Beispiel #4
0
 public void Populate(Info.AiInfoDatabase db)
 {
     db.FillCollections(ref m_actions, ref m_considerations);
 }