mirror of
https://github.com/Ladebeze66/cpp-partie-1.git
synced 2025-12-16 05:58:04 +01:00
28 lines
1.2 KiB
C++
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;
|
|
}
|