diff options
| author | Dominik Kaiser | 2025-02-10 11:34:52 +0100 |
|---|---|---|
| committer | Dominik Kaiser | 2025-02-10 11:34:52 +0100 |
| commit | 1d593b80d53124b96c2fcee1106b6fff88a2375b (patch) | |
| tree | e4e1563f3036ff3af44efc04b716bc0155fac85b /ex01/Zombie.cpp | |
| parent | 63f6707447e8377e21b074cab69ad03f019afe9b (diff) | |
| download | cpp01-1d593b80d53124b96c2fcee1106b6fff88a2375b.tar.gz cpp01-1d593b80d53124b96c2fcee1106b6fff88a2375b.zip | |
Add zombieHorde func
Diffstat (limited to 'ex01/Zombie.cpp')
| -rw-r--r-- | ex01/Zombie.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ex01/Zombie.cpp b/ex01/Zombie.cpp index bbd0a65..92d3a5f 100644 --- a/ex01/Zombie.cpp +++ b/ex01/Zombie.cpp @@ -6,13 +6,16 @@ /* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/02/10 10:27:11 by dkaiser #+# #+# */ -/* Updated: 2025/02/10 10:46:03 by dkaiser ### ########.fr */ +/* Updated: 2025/02/10 11:33:44 by dkaiser ### ########.fr */ /* */ /* ************************************************************************** */ #include "Zombie.hpp" #include <iostream> +Zombie::Zombie(void) +{} + Zombie::Zombie(const std::string &name) :name(name) {} @@ -26,3 +29,8 @@ void Zombie::announce(void) { std::cout << name << ": BraiiiiiiinnnzzzZ..." << std::endl; } + +void Zombie::setName(const std::string &name) +{ + this->name = name; +} |
