mise en page

This commit is contained in:
lenovo
2022-12-09 13:39:46 +01:00
parent c91d23a5d4
commit fecde1a8b1
12 changed files with 104 additions and 45 deletions

View File

@@ -7,34 +7,41 @@
class ATarget;
class ASpell {
private:
std::string name;
std::string effects;
public:
ASpell() {
};
ASpell(ASpell const & other) {
ASpell()
{};
ASpell(ASpell const & other)
{
*this = other;
};
ASpell & operator=(ASpell const & other) {
ASpell & operator=(ASpell const & other)
{
this->name = other.name;
this->effects = other.effects;
return (*this);
};
ASpell(std::string const & name, std::string const & effects) {
ASpell(std::string const & name, std::string const & effects)
{
this->name = name;
this->effects = effects;
};
virtual ~ASpell() {
};
virtual ~ASpell()
{};
std::string const & getName() const {
std::string const & getName() const
{
return (this->name);
};
std::string const & getEffects() const {
std::string const & getEffects() const
{
return (this->effects);
};
void launch(ATarget const & atarget) const;
virtual ASpell * clone() const = 0;
@@ -43,3 +50,6 @@ class ASpell {
#include "ATarget.hpp"
#endif