Initial support for learned moves
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2019-10-23 18:57:50 +02:00
parent 1e4f422117
commit cdaa056810
8 changed files with 31 additions and 7 deletions

View File

@ -2,7 +2,7 @@
#define CREATURELIB_BATTLECREATURE_HPP
#include "../../GenericTemplates.cpp"
#include "../../Library/Creature.hpp"
#include "../../Library/Living/Creature.hpp"
namespace CreatureLib::Battling{
// Forward declare battle class

View File

@ -2,7 +2,7 @@
#define CREATURELIB_CREATECREATURE_HPP
#include "DataLibrary.hpp"
#include "../DataLibrary.hpp"
#include "Creature.hpp"
namespace CreatureLib::Library {

View File

@ -1,10 +1,10 @@
#ifndef CREATURELIB_CREATURE_HPP
#define CREATURELIB_CREATURE_HPP
#include "DataLibrary.hpp"
#include "Gender.hpp"
#include "../GenericTemplates.cpp"
#include "../Core/StatisticSet.hpp"
#include "../DataLibrary.hpp"
#include "../Gender.hpp"
#include "../../GenericTemplates.cpp"
#include "../../Core/StatisticSet.hpp"
namespace CreatureLib::Library{
class Creature {

View File

@ -0,0 +1,7 @@
#include "LearnedAttack.hpp"
CreatureLib::Library::LearnedAttack::LearnedAttack(CreatureLib::Library::AttackData *attack, uint8_t maxUses)
:_attack(attack), _maxUses(maxUses), _remainingUses(maxUses)
{
}

View File

@ -0,0 +1,17 @@
#ifndef CREATURELIB_LEARNEDATTACK_HPP
#define CREATURELIB_LEARNEDATTACK_HPP
#include "../Attacks/AttackData.hpp"
namespace CreatureLib::Library{
class LearnedAttack {
const AttackData* _attack;
const uint8_t _maxUses;
const uint8_t _remainingUses;
public:
LearnedAttack(AttackData* attack, uint8_t maxUses);
};
}
#endif //CREATURELIB_LEARNEDATTACK_HPP

View File

@ -1,5 +1,5 @@
#ifdef TESTS_BUILD
#include "../../src/Library/CreateCreature.hpp"
#include "../../src/Library/Living/CreateCreature.hpp"
#include "../TestLibrary/TestLibrary.cpp"
using namespace CreatureLib::Library;