/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ShrubberyCreationForm.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: narnaud +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/06/27 10:17:15 by narnaud #+# #+# */ /* Updated: 2022/06/27 16:36:13 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(); }