summaryrefslogtreecommitdiff
path: root/ex01/Zombie.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ex01/Zombie.cpp')
-rw-r--r--ex01/Zombie.cpp10
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;
+}