2010-11-11 23:01:35 +02:00
|
|
|
#include "GeneralAI.h"
|
|
|
|
#include "../../CCallback.h"
|
2010-11-12 17:20:44 +02:00
|
|
|
#include "ExpertSystem.h"
|
2010-11-11 23:01:35 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* ExpertSystem.cpp, part of VCMI engine
|
|
|
|
*
|
|
|
|
* Authors: listed in file AUTHORS in main folder
|
|
|
|
*
|
|
|
|
* License: GNU General Public License v2.0 or later
|
|
|
|
* Full text of license available in license.txt file, in main folder
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2010-11-12 17:20:44 +02:00
|
|
|
template <typename ruleType, typename facts> void ExpertSystemShell<ruleType, facts>::DataDrivenReasoning(runType type)
|
|
|
|
{
|
|
|
|
switch (type)
|
|
|
|
{
|
|
|
|
case ANY_GOAL: //first produced decision ends reasoning
|
|
|
|
{
|
|
|
|
for (std::list<typename facts>::iterator it = factList.begin(); it != factList.end(); it++)
|
|
|
|
{};
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|