46 LOG_INFO(
"Cure copy assignment operator called");
Declares the Cure materia class.
Defines the Logger class for console-based logging.
#define LOG_INFO(msg)
Macro for logging informational messages.
Represents an abstract base class for all magical materias.
virtual AMateria & operator=(const AMateria &rhs)
Copy assignment operator for AMateria. Assigns the type from another AMateria object....
Represents a healing magic materia.
Cure & operator=(const Cure &other)
Copy assignment operator for Cure. Assigns values from another Cure object by calling the base class ...
virtual void use(ICharacter &target)
Uses the Cure materia to heal the target character. Prints a message indicating that the target's wou...
virtual ~Cure()
Destroys the Cure object.
Cure()
Default constructor for Cure. Initializes the materia type to "cure".
virtual AMateria * clone() const
Creates a new, identical instance of a Cure materia.
An interface for any character that can interact with Materias.
virtual std::string const & getName() const =0
Gets the name of the character. This is a pure virtual function, requiring derived classes to impleme...