Initial support for learned moves
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
1e4f422117
commit
cdaa056810
|
@ -2,7 +2,7 @@
|
||||||
#define CREATURELIB_BATTLECREATURE_HPP
|
#define CREATURELIB_BATTLECREATURE_HPP
|
||||||
|
|
||||||
#include "../../GenericTemplates.cpp"
|
#include "../../GenericTemplates.cpp"
|
||||||
#include "../../Library/Creature.hpp"
|
#include "../../Library/Living/Creature.hpp"
|
||||||
|
|
||||||
namespace CreatureLib::Battling{
|
namespace CreatureLib::Battling{
|
||||||
// Forward declare battle class
|
// Forward declare battle class
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define CREATURELIB_CREATECREATURE_HPP
|
#define CREATURELIB_CREATECREATURE_HPP
|
||||||
|
|
||||||
|
|
||||||
#include "DataLibrary.hpp"
|
#include "../DataLibrary.hpp"
|
||||||
#include "Creature.hpp"
|
#include "Creature.hpp"
|
||||||
|
|
||||||
namespace CreatureLib::Library {
|
namespace CreatureLib::Library {
|
|
@ -1,10 +1,10 @@
|
||||||
#ifndef CREATURELIB_CREATURE_HPP
|
#ifndef CREATURELIB_CREATURE_HPP
|
||||||
#define CREATURELIB_CREATURE_HPP
|
#define CREATURELIB_CREATURE_HPP
|
||||||
|
|
||||||
#include "DataLibrary.hpp"
|
#include "../DataLibrary.hpp"
|
||||||
#include "Gender.hpp"
|
#include "../Gender.hpp"
|
||||||
#include "../GenericTemplates.cpp"
|
#include "../../GenericTemplates.cpp"
|
||||||
#include "../Core/StatisticSet.hpp"
|
#include "../../Core/StatisticSet.hpp"
|
||||||
|
|
||||||
namespace CreatureLib::Library{
|
namespace CreatureLib::Library{
|
||||||
class Creature {
|
class Creature {
|
|
@ -0,0 +1,7 @@
|
||||||
|
#include "LearnedAttack.hpp"
|
||||||
|
|
||||||
|
CreatureLib::Library::LearnedAttack::LearnedAttack(CreatureLib::Library::AttackData *attack, uint8_t maxUses)
|
||||||
|
:_attack(attack), _maxUses(maxUses), _remainingUses(maxUses)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
|
@ -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
|
|
@ -1,5 +1,5 @@
|
||||||
#ifdef TESTS_BUILD
|
#ifdef TESTS_BUILD
|
||||||
#include "../../src/Library/CreateCreature.hpp"
|
#include "../../src/Library/Living/CreateCreature.hpp"
|
||||||
#include "../TestLibrary/TestLibrary.cpp"
|
#include "../TestLibrary/TestLibrary.cpp"
|
||||||
|
|
||||||
using namespace CreatureLib::Library;
|
using namespace CreatureLib::Library;
|
||||||
|
|
Loading…
Reference in New Issue