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