cpp-partie-1/cpp04/ex03/AMateria.cpp
2024-02-20 15:35:19 +01:00

28 lines
1.2 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* AMateria.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: fgras-ca <fgras-ca@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/12/31 16:47:27 by fgras-ca #+# #+# */
/* Updated: 2023/12/31 16:48:56 by fgras-ca ### ########.fr */
/* */
/* ************************************************************************** */
#include "AMateria.hpp"
AMateria::AMateria(std::string const & type) : type(type) {}
AMateria::~AMateria() {}
std::string const & AMateria::getType() const
{
return (this->type);
}
void AMateria::use(ICharacter& target)
{
std::cout << "* uses some unknown materia on " << target.getName() << " *" << std::endl;
}