Fixes dependency issue, lack of virtual destructor for DamageLibrary
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2019-11-05 16:20:47 +01:00
parent 549ba4c1c2
commit efa994c88d
3 changed files with 5 additions and 1 deletions

View File

@ -7,6 +7,7 @@
namespace CreatureLib::Battling{
class DamageLibrary {
public:
virtual ~DamageLibrary();
virtual int GetDamage(ExecutingAttack* attack, Creature* target, uint8_t hitIndex) const;
virtual int GetBasePower(ExecutingAttack* attack, Creature* target, uint8_t hitIndex) const;

View File

@ -1,5 +1,6 @@
#include "CreateCreature.hpp"
#include "../../Core/Exceptions/CreatureException.hpp"
#include "../Library/BattleLibrary.hpp"
#include <utility>
using namespace CreatureLib::Battling;

View File

@ -2,7 +2,8 @@
#define CREATURELIB_BATTLECREATURE_HPP
#include "../../GenericTemplates.cpp"
#include "../Library/BattleLibrary.hpp"
#include "../../Library/CreatureData/CreatureSpecies.hpp"
#include "../../Library/Items/Item.hpp"
#include "LearnedAttack.hpp"
#include "DamageSource.hpp"
@ -10,6 +11,7 @@ namespace CreatureLib::Battling{
// Forward declare battle class
class Battle;
class BattleSide;
class BattleLibrary;
class Creature {
GetProperty(const Library::CreatureSpecies*, Species);