1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

refactor map loading, few small tweaks

This commit is contained in:
alexvins
2013-02-02 17:20:31 +00:00
parent beb1ca1bf8
commit b376ac8568
6 changed files with 501 additions and 627 deletions

View File

@ -6,7 +6,6 @@
#include "VCMI_Lib.h"
#include "JsonNode.h"
#include <cctype>
#include "GameConstants.h"
#include "BattleHex.h"
#include "CModHandler.h"
@ -251,40 +250,6 @@ CSpell::ETargetType CSpell::getTargetType() const //TODO: parse these at game la
return NO_TARGET;
}
bool CSpell::isPositive() const
{
return positiveness == POSITIVE;
}
bool CSpell::isNegative() const
{
return positiveness == NEGATIVE;
}
bool CSpell::isRisingSpell() const
{
return isRising;
}
bool CSpell::isDamageSpell() const
{
return isDamage;
}
bool CSpell::isMindSpell() const
{
return isMind;
}
bool CSpell::isOffensiveSpell() const
{
return isOffensive;
}
bool CSpell::hasEffects() const
{
return !effects[0].empty();
}
void CSpell::getEffects(std::vector<Bonus>& lst, const int level) const