Files
42_INT_09_piscine_cpp/d04/ex03/srcs/Cure.cpp
2022-02-27 22:07:04 +01:00

16 lines
272 B
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#include "Cure.hpp"
Cure::Cure() : _type("cure") {}
Cure::Cure( Cure const & src ) {
*this = src
}
Cure & Cure::operator=( Cure const & rhs ) {
return *this;
}
virtual void Ice::use(ICharacter & target) {
std::cout << "* heals " << target.name << "s wounds *"
}