|
@@ -23,11 +23,10 @@
|
|
|
#include "../../lib/spells/CSpellHandler.h"
|
|
|
#include "../../lib/CondSh.h"
|
|
|
#include "Pathfinding/AIPathfinder.h"
|
|
|
+#include "Engine/Nullkiller.h"
|
|
|
|
|
|
struct QuestInfo;
|
|
|
|
|
|
-class Nullkiller;
|
|
|
-
|
|
|
class AIStatus
|
|
|
{
|
|
|
boost::mutex mx;
|
|
@@ -308,46 +307,3 @@ public:
|
|
|
//myCB is restored after load by init call
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
-class cannotFulfillGoalException : public std::exception
|
|
|
-{
|
|
|
- std::string msg;
|
|
|
-
|
|
|
-public:
|
|
|
- explicit cannotFulfillGoalException(crstring _Message)
|
|
|
- : msg(_Message)
|
|
|
- {
|
|
|
- }
|
|
|
-
|
|
|
- virtual ~cannotFulfillGoalException() throw ()
|
|
|
- {
|
|
|
- };
|
|
|
-
|
|
|
- const char * what() const throw () override
|
|
|
- {
|
|
|
- return msg.c_str();
|
|
|
- }
|
|
|
-};
|
|
|
-
|
|
|
-class goalFulfilledException : public std::exception
|
|
|
-{
|
|
|
- std::string msg;
|
|
|
-
|
|
|
-public:
|
|
|
- Goals::TSubgoal goal;
|
|
|
-
|
|
|
- explicit goalFulfilledException(Goals::TSubgoal Goal)
|
|
|
- : goal(Goal)
|
|
|
- {
|
|
|
- msg = goal->toString();
|
|
|
- }
|
|
|
-
|
|
|
- virtual ~goalFulfilledException() throw ()
|
|
|
- {
|
|
|
- };
|
|
|
-
|
|
|
- const char * what() const throw () override
|
|
|
- {
|
|
|
- return msg.c_str();
|
|
|
- }
|
|
|
-};
|