Applied norminette syntax for visual enjoyment
This commit is contained in:
@@ -20,4 +20,4 @@ void HumanA::attack() const
|
||||
std::cout << this->name << " attacks with their "
|
||||
<< this->weapon.getType()
|
||||
<< std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# include <iostream>
|
||||
# include "../Weapon/Weapon.hpp"
|
||||
|
||||
class HumanA
|
||||
class HumanA
|
||||
{
|
||||
private:
|
||||
std::string name;
|
||||
|
||||
@@ -31,4 +31,4 @@ void HumanB::attack() const
|
||||
void HumanB::setWeapon(Weapon &w)
|
||||
{
|
||||
this->weapon = &w;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# include <iostream>
|
||||
# include "../Weapon/Weapon.hpp"
|
||||
|
||||
class HumanB
|
||||
class HumanB
|
||||
{
|
||||
private:
|
||||
std::string name;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
# include <iostream>
|
||||
|
||||
class Weapon
|
||||
class Weapon
|
||||
{
|
||||
private:
|
||||
std::string type;
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user