This commit is contained in:
1 parent
1e4f422117
commit
cdaa056810
8 files changed
+31
-7
No files matched your search
@@ -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
|
||||
|
||||
File renamed without changes.
@@ -2,7 +2,7 @@
|
||||
#define CREATURELIB_CREATECREATURE_HPP
|
||||
|
||||
|
||||
#include "DataLibrary.hpp"
|
||||
#include "../DataLibrary.hpp"
|
||||
#include "Creature.hpp"
|
||||
|
||||
namespace CreatureLib::Library {
|
||||
File renamed without changes.
@@ -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 {
|
||||
@@ -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
|
||||
#include "../../src/Library/CreateCreature.hpp"
|
||||
#include "../../src/Library/Living/CreateCreature.hpp"
|
||||
#include "../TestLibrary/TestLibrary.cpp"
|
||||
|
||||
using namespace CreatureLib::Library;
|
||||
|
||||
Reference in new issue
Block a user