1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Fix tests compilation

This commit is contained in:
Ivan Savenko
2023-08-31 23:36:39 +03:00
parent ef94e7a78a
commit 8bdddd1324
9 changed files with 31 additions and 8 deletions

View File

@@ -124,6 +124,7 @@ public:
{
public:
const IBattleInfo * battle;
#if SCRIPTING_ENABLED
scripting::Pool * pool;
@@ -137,9 +138,14 @@ public:
{
}
void setBattle(const IBattleInfo * battleInfo)
const IBattleInfo * getBattle() const override
{
CBattleInfoCallback::setBattle(battleInfo);
return battle;
}
std::optional<PlayerColor> getPlayerID() const override
{
return std::nullopt;
}
#if SCRIPTING_ENABLED
@@ -170,7 +176,7 @@ public:
void startBattle()
{
subject.setBattle(&battleMock);
subject.battle = &battleMock;
}
void redirectUnitsToFake()