Fixes dependency issue, lack of virtual destructor for DamageLibrary
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is failing
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	continuous-integration/drone/push Build is failing
				
			This commit is contained in:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user