Fixes dependency issue, lack of virtual destructor for DamageLibrary
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
549ba4c1c2
commit
efa994c88d
|
@ -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;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#include "CreateCreature.hpp"
|
||||
#include "../../Core/Exceptions/CreatureException.hpp"
|
||||
#include "../Library/BattleLibrary.hpp"
|
||||
#include <utility>
|
||||
|
||||
using namespace CreatureLib::Battling;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue