CPP03 1.0
読み取り中…
検索中…
一致する文字列を見つけられません
FragTrap.hpp
[詳解]
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* FragTrap.hpp :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: kamitsui <kamitsui@student.42tokyo.jp> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2025/05/12 12:47:48 by kamitsui #+# #+# */
9/* Updated: 2025/05/12 16:53:35 by kamitsui ### ########.fr */
10/* */
11/* ************************************************************************** */
12
22#ifndef FRAGTRAP_HPP
23#define FRAGTRAP_HPP
24
25#include "ClapTrap.hpp"
26#include <iostream>
27#include <string>
28
38class FragTrap : public ClapTrap {
39 public:
40 FragTrap();
41 FragTrap(const std::string &name);
42 FragTrap(const FragTrap &other);
43 virtual ~FragTrap();
44
45 FragTrap &operator=(const FragTrap &other);
46
47 virtual void attack(const std::string &target);
48 void highFivesGuys(void);
49};
50
51#endif
Represents a basic robot character.
Definition ClapTrap.hpp:34
Represents a FragTrap robot, a specialized type derived from ClapTrap.
Definition FragTrap.hpp:38
void highFivesGuys(void)
highFivesGuys function implementation for FragTrap.
Definition FragTrap.cpp:96
FragTrap()
Default constructor implementation for FragTrap.
Definition FragTrap.cpp:28
virtual void attack(const std::string &target)
Attack function implementation for FragTrap.
Definition FragTrap.cpp:81
FragTrap & operator=(const FragTrap &other)
Definition FragTrap.cpp:69
virtual ~FragTrap()
Virtual destructor implementation for FragTrap.
Definition FragTrap.cpp:58
Header file for the ClapTrap class.