| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* ICharacter.hpp :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: bchanot <bchanot@42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2025/12/18 19:26:25 by bchanot #+# #+# */
- /* Updated: 2025/12/25 23:44:28 by bchanot ### ########.fr */
- /* */
- /* ************************************************************************** */
- #ifndef ICHARACTER_HPP
- # define ICHARACTER_HPP
- # include <iostream>
- # include <string>
- class AMateria;
- class ICharacter
- {
- public:
- virtual ~ICharacter() {}
- virtual std::string const & getName() const = 0;
- virtual void equip(AMateria *m) = 0;
- virtual void unequip(int idx) = 0;
- virtual void use(int idx, ICharacter& target) = 0;
- ICharacter & operator=( ICharacter const & rhs ) = delete;
- };
- std::ostream & operator<<( std::ostream & o, ICharacter const & i );
- #endif /* ****************************************************** ICHARACTER_H */
|