|
@@ -74,6 +74,23 @@ std::string Goals::AbstractGoal::name() const //TODO: virtualize
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+//TODO: find out why the following are not generated automatically on MVS?
|
|
|
|
+
|
|
|
|
+namespace Goals
|
|
|
|
+{
|
|
|
|
+ template <>
|
|
|
|
+ void CGoal<Win>::accept (VCAI * ai)
|
|
|
|
+ {
|
|
|
|
+ ai->tryRealize(static_cast<Win&>(*this));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ template <>
|
|
|
|
+ void CGoal<Build>::accept (VCAI * ai)
|
|
|
|
+ {
|
|
|
|
+ ai->tryRealize(static_cast<Build&>(*this));
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
//TSubgoal AbstractGoal::whatToDoToAchieve()
|
|
//TSubgoal AbstractGoal::whatToDoToAchieve()
|
|
//{
|
|
//{
|
|
// logAi->debugStream() << boost::format("Decomposing goal of type %s") % name();
|
|
// logAi->debugStream() << boost::format("Decomposing goal of type %s") % name();
|
|
@@ -868,20 +885,3 @@ void CGoal<T>::accept (VCAI * ai)
|
|
ai->tryRealize(static_cast<T&>(*this)); //casting enforces template instantiation
|
|
ai->tryRealize(static_cast<T&>(*this)); //casting enforces template instantiation
|
|
}
|
|
}
|
|
|
|
|
|
-//TODO: find out why the following are not generated automatically on MVS?
|
|
|
|
-
|
|
|
|
-namespace Goals
|
|
|
|
-{
|
|
|
|
- template <>
|
|
|
|
- void CGoal<Win>::accept (VCAI * ai)
|
|
|
|
- {
|
|
|
|
- ai->tryRealize(static_cast<Win&>(*this));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- template <>
|
|
|
|
- void CGoal<Build>::accept (VCAI * ai)
|
|
|
|
- {
|
|
|
|
- ai->tryRealize(static_cast<Build&>(*this));
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|