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