You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

33 regels
500 B

#include <cstring>
#include "Spell.hpp"
Spell::Spell(const char *spellName,
const int spellType,
int spellPower,
int spellCost) : type(spellType), name("")
{
this->power = spellPower;
this->cost = spellCost;
strcpy(this->name, spellName);
}
int Spell::getType()
{
return this->type;
}
int Spell::getPower()
{
return this->power;
}
int Spell::getCost()
{
return this->cost;
}
const char *Spell::getName()
{
return this->name;
}