mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Fix build
This commit is contained in:
parent
9fa7a93fb0
commit
ef94e7a78a
@ -52,8 +52,7 @@ void CBattleAI::initBattleInterface(std::shared_ptr<Environment> ENV, std::share
|
|||||||
setCbc(CB);
|
setCbc(CB);
|
||||||
env = ENV;
|
env = ENV;
|
||||||
cb = CB;
|
cb = CB;
|
||||||
assert(0);// FIXME:
|
playerID = *CB->getPlayerID();
|
||||||
// playerID = *CB->getPlayerID(); //TODO should be sth in callback
|
|
||||||
wasWaitingForRealize = CB->waitTillRealize;
|
wasWaitingForRealize = CB->waitTillRealize;
|
||||||
wasUnlockingGs = CB->unlockGsWhenWaiting;
|
wasUnlockingGs = CB->unlockGsWhenWaiting;
|
||||||
CB->waitTillRealize = false;
|
CB->waitTillRealize = false;
|
||||||
|
@ -145,9 +145,9 @@ public:
|
|||||||
virtual ~CCallback();
|
virtual ~CCallback();
|
||||||
|
|
||||||
//client-specific functionalities (pathfinding)
|
//client-specific functionalities (pathfinding)
|
||||||
bool canMoveBetween(const int3 &a, const int3 &b);
|
virtual bool canMoveBetween(const int3 &a, const int3 &b);
|
||||||
int3 getGuardingCreaturePosition(int3 tile);
|
virtual int3 getGuardingCreaturePosition(int3 tile);
|
||||||
std::shared_ptr<const CPathsInfo> getPathsInfo(const CGHeroInstance * h);
|
virtual std::shared_ptr<const CPathsInfo> getPathsInfo(const CGHeroInstance * h);
|
||||||
|
|
||||||
std::optional<PlayerColor> getPlayerID() const override;
|
std::optional<PlayerColor> getPlayerID() const override;
|
||||||
|
|
||||||
|
@ -56,6 +56,7 @@ public:
|
|||||||
#if SCRIPTING_ENABLED
|
#if SCRIPTING_ENABLED
|
||||||
virtual scripting::Pool * getContextPool() const = 0;
|
virtual scripting::Pool * getContextPool() const = 0;
|
||||||
#endif
|
#endif
|
||||||
|
virtual ~IBattleInfoCallback() = default;
|
||||||
|
|
||||||
virtual const IBattleInfo * getBattle() const = 0;
|
virtual const IBattleInfo * getBattle() const = 0;
|
||||||
virtual std::optional<PlayerColor> getPlayerID() const = 0;
|
virtual std::optional<PlayerColor> getPlayerID() const = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user