|
| | Ice () |
| | Default constructor for Ice. Initializes the materia type to "ice" and displays a construction message.
|
| |
| | Ice (const Ice &other) |
| | Copy constructor for Ice. Invokes the base AMateria copy constructor to copy the type. Displays a copy construction message.
|
| |
| Ice & | operator= (const Ice &other) |
| | Copy assignment operator for Ice. Assigns values from another Ice object by calling the base class assignment operator. Displays a copy assignment message. Handles self-assignment implicitly via base operator.
|
| |
| virtual | ~Ice () |
| | Destroys the Ice object. Displays a destruction message.
|
| |
| virtual AMateria * | clone () const |
| | Creates a new, identical instance of an Ice materia. This method overrides the clone() pure virtual function from AMateria.
|
| |
| virtual void | use (ICharacter &target) |
| | Uses the Ice materia to shoot an ice bolt at the target character. This method overrides the use() virtual function from AMateria. Prints a message indicating the ice bolt attack on the target.
|
| |
| | AMateria (std::string const &type) |
| | Constructs an AMateria object with a specified type.
|
| |
| | AMateria (const AMateria &other) |
| | Copy constructor for AMateria. Performs a shallow copy of the type from another AMateria object.
|
| |
| virtual | ~AMateria () |
| | Destroys the AMateria object.
|
| |
| virtual AMateria & | operator= (const AMateria &rhs) |
| | Copy assignment operator for AMateria. Assigns the type from another AMateria object. Handles self-assignment.
|
| |
| std::string const & | getType () const |
| | Gets the type of the materia.
|
| |
Represents an ice-based offensive magic materia.
The Ice class is a concrete implementation of AMateria. It specializes the generic materia behavior to cast an ice bolt when used on a character. It correctly implements the orthodox canonical class form and overrides necessary virtual functions from its base.
Ice.hpp の 36 行目に定義があります。