style: added color to the ex01 of the module 01
This commit is contained in:
parent
4054309f5e
commit
0271d4b2de
4 changed files with 42 additions and 8 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/11/04 16:10:21 by rparodi #+# #+# */
|
||||
/* Updated: 2024/11/04 20:22:57 by rparodi ### ########.fr */
|
||||
/* Updated: 2024/11/05 12:39:33 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -19,7 +19,7 @@ Zombie::Zombie()
|
|||
|
||||
Zombie::~Zombie()
|
||||
{
|
||||
std::cout << "Zombie's hunter: killed " << _name << std::endl;
|
||||
std::cout << CLR_YELLOW << "Zombie's hunter: killed " << CLR_RESET << CLR_GOLD << _name << CLR_RESET << std::endl;
|
||||
}
|
||||
|
||||
void Zombie::setName( std::string name )
|
||||
|
|
@ -29,5 +29,5 @@ void Zombie::setName( std::string name )
|
|||
|
||||
void Zombie::announce()
|
||||
{
|
||||
std::cout << _name << ": BraiiiiiiinnnzzzZ..." << std::endl;
|
||||
std::cout << CLR_BOLD_GREEN << _name << CLR_RESET << CLR_LIGHT_GREEN <<": BraiiiiiiinnnzzzZ..." << CLR_RESET << std::endl;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue