1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00

Reorganized artifact-related classes

- files now generally contain only 1 class (except for tightly coupled
classes)
- files are now located in lib/entities/artifact directory
- removed excessive includes

No changes to functionality
This commit is contained in:
Ivan Savenko
2025-04-29 12:10:19 +03:00
parent 5433b07e5f
commit f70ad2c15b
96 changed files with 1666 additions and 1454 deletions

View File

@ -20,12 +20,12 @@
#include "../constants/StringConstants.h"
#include "../GameLibrary.h"
#include "../CArtHandler.h"
#include "../CCreatureHandler.h"
#include "../CCreatureSet.h"
#include "../spells/CSpellHandler.h"
#include "../CSkillHandler.h"
#include "../IGameCallback.h"
#include "../entities/artifact/CArtHandler.h"
#include "../entities/hero/CHero.h"
#include "../entities/hero/CHeroClass.h"
#include "../gameState/CGameState.h"
@ -147,7 +147,7 @@ JsonRandomizationException::JsonRandomizationException(const std::string & messa
{
assert(value.isStruct());
std::set<CArtifact::EartClass> allowedClasses;
std::set<EArtifactClass::Type> allowedClasses;
std::set<ArtifactPosition> allowedPositions;
ui32 minValue = 0;
ui32 maxValue = std::numeric_limits<ui32>::max();