1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Reogranize callback-related classes on 1 file = 1 class basis

This commit is contained in:
Ivan Savenko
2025-05-11 11:58:09 +03:00
parent 29207c0b0f
commit 35644da2b7
217 changed files with 1670 additions and 1494 deletions

View File

@@ -11,7 +11,7 @@
#include "gtest/gtest.h"
#include "../lib/CGameInfoCallback.h"
#include "../lib/callback/CPlayerSpecificInfoCallback.h"
#include "../lib/ResourceSet.h"
class CCallback;

View File

@@ -12,6 +12,8 @@
#include <vcmi/Creature.h>
#include "../../lib/ResourceSet.h"
class IBonusBearer;
class FactionID;

View File

@@ -12,11 +12,9 @@
#include <vcmi/ServerCallback.h>
#include "../../lib/IGameCallback.h"
#include "../../lib/callback/IGameCallback.h"
#include "../../lib/int3.h"
#include "../../lib/ResourceSet.h"
class GameCallbackMock : public IGameCallback
{
@@ -59,7 +57,7 @@ public:
void showTeleportDialog(TeleportDialog *iw) override {}
void showObjectWindow(const CGObjectInstance * object, EOpenWindowMode window, const CGHeroInstance * visitor, bool addQuery) override {};
void giveResource(PlayerColor player, GameResID which, int val) override {}
void giveResources(PlayerColor player, TResources resources) override {}
void giveResources(PlayerColor player, ResourceSet resources) override {}
void giveCreatures(const CArmedInstance *objid, const CGHeroInstance * h, const CCreatureSet &creatures, bool remove) override {}
void takeCreatures(ObjectInstanceID objid, const std::vector<CStackBasicDescriptor> &creatures, bool forceRemoval) override {}

View File

@@ -10,7 +10,7 @@
#pragma once
#include "../../lib/CGameInfoCallback.h"
#include "../../lib/callback/CGameInfoCallback.h"
class IGameInfoCallbackMock : public IGameInfoCallback
{

View File

@@ -11,7 +11,6 @@
#pragma once
#include "../../lib/spells/ISpellMechanics.h"
#include "../../lib/CGameInfoCallback.h"
#include "../../lib/battle/BattleHexArray.h"
namespace spells