mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Nullkiller: android fixes
This commit is contained in:
parent
e95ccda5de
commit
dec723b4be
@ -15,8 +15,8 @@
|
||||
#include "../Goals/ExecuteHeroChain.h"
|
||||
#include "CaptureObjectsBehavior.h"
|
||||
#include "../AIUtility.h"
|
||||
#include "lib/mapping/CMap.h" //for victory conditions
|
||||
#include "lib/CPathfinder.h"
|
||||
#include "../../../lib/mapping/CMap.h" //for victory conditions
|
||||
#include "../../../lib/CPathfinder.h"
|
||||
|
||||
extern boost::thread_specific_ptr<CCallback> cb;
|
||||
extern boost::thread_specific_ptr<VCAI> ai;
|
||||
|
@ -9,7 +9,7 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "lib/VCMI_Lib.h"
|
||||
#include "../../../lib/VCMI_Lib.h"
|
||||
#include "../AIUtility.h"
|
||||
#include "../Goals/CGoal.h"
|
||||
|
||||
|
@ -83,12 +83,12 @@ namespace Goals
|
||||
template<typename T> class DLL_EXPORT ElementarGoal : public CGoal<T>, public ITask
|
||||
{
|
||||
public:
|
||||
ElementarGoal<T>(EGoals goal = INVALID) : CGoal(goal), ITask()
|
||||
ElementarGoal<T>(EGoals goal = INVALID) : CGoal<T>(goal), ITask()
|
||||
{
|
||||
isAbstract = false;
|
||||
AbstractGoal::isAbstract = false;
|
||||
}
|
||||
|
||||
ElementarGoal<T>(const ElementarGoal<T> & other) : CGoal(other), ITask(other)
|
||||
ElementarGoal<T>(const ElementarGoal<T> & other) : CGoal<T>(other), ITask(other)
|
||||
{
|
||||
}
|
||||
|
||||
@ -101,7 +101,7 @@ namespace Goals
|
||||
|
||||
T & setpriority(float p)
|
||||
{
|
||||
priority = p;
|
||||
ITask::priority = p;
|
||||
|
||||
return *((T *)this);
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ TGoalVec Composition::decompose() const
|
||||
return result;
|
||||
}
|
||||
|
||||
Composition & Composition::addNext(AbstractGoal & goal)
|
||||
Composition & Composition::addNext(const AbstractGoal & goal)
|
||||
{
|
||||
return addNext(sptr(goal));
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ namespace Goals
|
||||
virtual bool operator==(const Composition & other) const override;
|
||||
virtual std::string toString() const override;
|
||||
void accept(VCAI * ai) override;
|
||||
Composition & addNext(AbstractGoal & goal);
|
||||
Composition & addNext(const AbstractGoal & goal);
|
||||
Composition & addNext(TSubgoal goal);
|
||||
virtual TGoalVec decompose() const override;
|
||||
virtual bool isElementar() const override;
|
||||
|
@ -10,8 +10,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#define PATHFINDER_TRACE_LEVEL 1
|
||||
#define AI_TRACE_LEVEL 2
|
||||
#define PATHFINDER_TRACE_LEVEL 0
|
||||
#define AI_TRACE_LEVEL 1
|
||||
|
||||
#include "../../../lib/CPathfinder.h"
|
||||
#include "../../../lib/mapObjects/CGHeroInstance.h"
|
||||
|
@ -8,8 +8,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "StdInc.h"
|
||||
#include "SpecialAction.h"
|
||||
#include "../../VCAI.h"
|
||||
#include "../../Goals/CGoal.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user