| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* AMateria.cpp :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: bchanot <bchanot@42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2025/12/18 19:23:39 by bchanot #+# #+# */
- /* Updated: 2025/12/26 01:09:08 by bchanot ### ########.fr */
- /* */
- /* ************************************************************************** */
- #include "AMateria.hpp"
- /*
- ** ------------------------------- CONSTRUCTOR --------------------------------
- */
- AMateria::AMateria() : _type("Punch")
- {
- }
- AMateria::AMateria(std::string const & type) : _type(type)
- {
- }
- AMateria::AMateria( const AMateria & src ) : _type(src._type)
- {
- }
- /*
- ** -------------------------------- DESTRUCTOR --------------------------------
- */
- AMateria::~AMateria()
- {
- }
- /*
- ** --------------------------------- OVERLOAD ---------------------------------
- */
- /*
- ** --------------------------------- METHODS ----------------------------------
- */
- void AMateria::use(ICharacter& target) {
- std::cout << "Use " << this->_type << " on " << target.getName() << "." << std::endl;
- }
- /*
- ** --------------------------------- ACCESSOR ---------------------------------
- */
- std::string const & AMateria::getType() const {
- return this->_type;
- }
- /* ************************************************************************** */
|