You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

37 lines
1.9 KiB

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ShrubberyCreationForm.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/06/27 10:17:15 by narnaud #+# #+# */
/* Updated: 2022/06/27 14:39:19 by narnaud ### ########.fr */
/* */
/* ************************************************************************** */
#include "ShrubberyCreationForm.hpp"
ShrubberyCreationForm::ShrubberyCreationForm (string target): Form("ShrubberyCreationForm", 147, 137, target) {
cout << "ShrubberyCreationForm parameter constructor called" << endl;
}
ShrubberyCreationForm::~ShrubberyCreationForm (void) {
cout << "ShrubberyCreationForm default destructor called" << endl;
}
void ShrubberyCreationForm::run(void) const {
std::ofstream file;
file.open(_target + "shrubbery");
file << " ,@@@@@@@," << endl;
file << " ,,,. ,@@@@@@/@@, .oo8888o." << endl;
file << " ,&\%%&%&&%,@@@@@/@@@@@@,8888\\88/8o" << endl;
file << " ,%&\\%&&%&&%,@@@\\@@@/@@@88\\88888/88'" << endl;
file << " %&&%&%&/%&&%@@\\@@/ /@@@88888\\88888'" << endl;
file << " %&&%/ %&\%%&&@@\\ V /@@' `88\\8 `/88'" << endl;
file << " `&%\\ ` /%&' |.| \\ '|8'" << endl;
file << " |o| | | | |" << endl;
file << " |.| | | | |" << endl;
file << " \\\\/ ._\\//_/__/ ,\\_//__\\\\/. \\_//__/_" << endl;
file.close();
}