| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* AMateria.cpp :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: bchanot <bchanot@42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2025/12/18 19:23:39 by bchanot #+# #+# */
- /* Updated: 2025/12/19 15:29:23 by bchanot ### ########.fr */
- /* */
- /* ************************************************************************** */
- #include "AMateria.hpp"
- /*
- ** ------------------------------- CONSTRUCTOR --------------------------------
- */
- AMateria::AMateria() : _type("Punch")
- {
- std::cout << this->_type << " AMateria constructed" << std::endl;
- }
- AMateria::AMateria(std::string const & type) : _type(type)
- {
- std::cout << this->_type << " AMateria constructed" << std::endl;
- }
- AMateria::AMateria( const AMateria & src ) : _type(src._type)
- {
- std::cout << this->_type << " AMateria constructed" << std::endl;
- }
- /*
- ** -------------------------------- DESTRUCTOR --------------------------------
- */
- AMateria::~AMateria()
- {
- std::cout << this->_type << "AMateria destroyed" << std::endl;
- }
- /*
- ** --------------------------------- OVERLOAD ---------------------------------
- */
- /*
- ** --------------------------------- METHODS ----------------------------------
- */
- void AMateria::use(ICharacter& target) {
- std::cout << this->_type << " In tour face ! Or mine ? Should i use on mine ... ?" << std::endl;
- }
- /*
- ** --------------------------------- ACCESSOR ---------------------------------
- */
- std::string const & AMateria::getType() const {
- return this->_type;
- }
- /* ************************************************************************** */
|