14 lines
424 B
C++
14 lines
424 B
C++
#include "RobotomyRequestForm.hpp"
|
|
#include <cstdlib>
|
|
|
|
RobotomyRequestForm::RobotomyRequestForm() : AForm("", "", 72, 45) {}
|
|
|
|
RobotomyRequestForm::RobotomyRequestForm(std::string target) : AForm("robotomy", target, 72, 45) {}
|
|
|
|
void RobotomyRequestForm::executeAction() const {
|
|
if (std::rand() % 2)
|
|
std::cout << getTarget() << " has been robotomized!" << std::endl;
|
|
else
|
|
std::cout << "Robotomy failed." << std::endl;
|
|
}
|