projects
/
42
/
CPP_Module_03
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
80f1f39
)
Swap Scav- and ClapTrap in ex01 main
trunk
author
Lukas Jiriste
<ljiriste@student.42prague.com>
Fri, 10 Jan 2025 15:33:49 +0000
(16:33 +0100)
committer
Lukas Jiriste
<ljiriste@student.42prague.com>
Fri, 10 Jan 2025 15:33:49 +0000
(16:33 +0100)
They were obviously swapped as ClapTrap does not have the GuardGate
method. The swap was needed for compilation to complete.
ex01/main.cpp
patch
|
blob
|
history
diff --git
a/ex01/main.cpp
b/ex01/main.cpp
index 38dcebb8017113850b67479852c07382cf872e72..90e24100389d536a48fb68b6fcc1d703a11daad3 100644
(file)
--- a/
ex01/main.cpp
+++ b/
ex01/main.cpp
@@
-3,8
+3,8
@@
int main()
{
int main()
{
-
Clap
Trap a("Alen");
-
Scav
Trap b("Boris");
+
Scav
Trap a("Alen");
+
Clap
Trap b("Boris");
b.attack("foo");
b.takeDamage(9);
b.attack("foo");
b.takeDamage(9);