CPP05 1.0
読み取り中…
検索中…
一致する文字列を見つけられません
RobotomyRequestForm.hpp
[詳解]
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* RobotomyRequestForm.hpp :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: kamitsui <kamitsui@student.42tokyo.jp> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2025/06/30 12:20:30 by kamitsui #+# #+# */
9/* Updated: 2025/06/30 12:20:47 by kamitsui ### ########.fr */
10/* */
11/* ************************************************************************** */
12
18#ifndef ROBOTOMYREQUESTFORM_HPP
19#define ROBOTOMYREQUESTFORM_HPP
20
21#include "AForm.hpp"
22#include <cstdlib> // For rand()
23
28class RobotomyRequestForm : public AForm {
29 private:
31
32 public:
33 // Orthodox Canonical Form
34 RobotomyRequestForm(const std::string &target);
38
39 // Action
40 virtual void performAction() const;
41};
42
43#endif
An abstract base class for forms.
Definition AForm.hpp:34
A concrete form that simulates a robotomy attempt.
RobotomyRequestForm & operator=(const RobotomyRequestForm &other)
virtual void performAction() const
Makes drilling noises and informs of a 50% successful robotomy.
Defines the abstract base class AForm for all specific forms.