feat(ex03): it works

This commit is contained in:
Khaïs COLIN 2025-05-12 14:00:11 +02:00
parent 8f7b9c3068
commit 28784b50f0
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
9 changed files with 153 additions and 0 deletions

10
ex03/Weapon.cpp Normal file
View file

@ -0,0 +1,10 @@
#include "Weapon.hpp"
Weapon::Weapon(std::string type) { this->type = type; }
const std::string &Weapon::getType(void) {
const std::string &retvalue = type;
return retvalue;
}
void Weapon::setType(std::string type) { this->type = type; }