Ejemplo n.º 1
0
    public bool MachConditioon(AIThinkList data, AiSetting setting)
    {
        //settingの様々な値と、dataの条件がマッチするかを書いていく.
        List <AIConditionBase> condition_list = data.ConditionList;

        for (var i = 0; i < condition_list.Count; i++)
        {
            if (condition_list[i].CheckCOondition(setting) == true)
            {
                return(true);
            }
        }

        return(false);
    }
Ejemplo n.º 2
0
    public List <AIActionBase> SelectAI(AiSetting setting)
    {
        List <AIThinkList> ai_think_list = GetAIThinkList();

        for (var i = 0; i < ai_think_list.Count; i++)
        {
            AIThinkList data = ai_think_list[i];
            bool        mach = MachConditioon(data, setting);
            if (mach)
            {
                return(data.ActionList);
            }
        }
        return(null);
    }