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:
@@ -11,7 +11,7 @@
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
#include "../lib/CGameInfoCallback.h"
|
||||
#include "../lib/callback/CPlayerSpecificInfoCallback.h"
|
||||
#include "../lib/ResourceSet.h"
|
||||
|
||||
class CCallback;
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
|
||||
#include <vcmi/Creature.h>
|
||||
|
||||
#include "../../lib/ResourceSet.h"
|
||||
|
||||
class IBonusBearer;
|
||||
class FactionID;
|
||||
|
||||
|
||||
@@ -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 {}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../../lib/CGameInfoCallback.h"
|
||||
#include "../../lib/callback/CGameInfoCallback.h"
|
||||
|
||||
class IGameInfoCallbackMock : public IGameInfoCallback
|
||||
{
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "../../lib/spells/ISpellMechanics.h"
|
||||
#include "../../lib/CGameInfoCallback.h"
|
||||
#include "../../lib/battle/BattleHexArray.h"
|
||||
|
||||
namespace spells
|
||||
|
||||
Reference in New Issue
Block a user