Applied norminette syntax for visual enjoyment

This commit is contained in:
Angel Ortigosa Perez
2025-09-14 13:52:18 +02:00
parent a56df94b5d
commit 661e81b552
24 changed files with 48 additions and 48 deletions

View File

@@ -20,4 +20,4 @@ void HumanA::attack() const
std::cout << this->name << " attacks with their "
<< this->weapon.getType()
<< std::endl;
}
}

View File

@@ -17,7 +17,7 @@
# include <iostream>
# include "../Weapon/Weapon.hpp"
class HumanA
class HumanA
{
private:
std::string name;

View File

@@ -31,4 +31,4 @@ void HumanB::attack() const
void HumanB::setWeapon(Weapon &w)
{
this->weapon = &w;
}
}

View File

@@ -17,7 +17,7 @@
# include <iostream>
# include "../Weapon/Weapon.hpp"
class HumanB
class HumanB
{
private:
std::string name;

View File

@@ -19,8 +19,7 @@ const std::string& Weapon::getType() const
return (this->type);
}
void Weapon::setType(const std::string &str)
void Weapon::setType(const std::string &str)
{
this->type = str;
}

View File

@@ -16,7 +16,7 @@
# include <iostream>
class Weapon
class Weapon
{
private:
std::string type;

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/09/06 02:18:16 by aortigos #+# #+# */
/* Updated: 2025/09/07 19:39:06 by aortigos ### ########.fr */
/* Updated: 2025/09/14 13:50:41 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
@@ -14,7 +14,7 @@
#include "HumanA/HumanA.hpp"
#include "HumanB/HumanB.hpp"
int main()
int main()
{
{
Weapon club = Weapon("crude spiked club");