style: use my one (with logic) norm for header hope u enjoy it

This commit is contained in:
Raphael 2024-12-23 14:36:04 +01:00
parent ff72109a4e
commit 2d6b2ddb83
13 changed files with 316 additions and 315 deletions

View file

@ -6,25 +6,25 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/05 13:34:19 by rparodi #+# #+# */
/* Updated: 2024/11/05 14:23:03 by rparodi ### ########.fr */
/* Updated: 2024/12/23 12:38:16 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef HUMANA_HPP
#define HUMANA_HPP
#include "Weapon.hpp"
#include <iostream>
#include <string>
class HumanA {
public:
HumanA(std::string name, Weapon &toGive);
~HumanA();
void attack();
private:
std::string _name;
Weapon *_weapon;
};
#define HUMANA_HPP
#include "Weapon.hpp"
#include <iostream>
#include <string>
class HumanA {
public:
HumanA(std::string name, Weapon &toGive);
~HumanA();
void attack();
private:
std::string _name;
Weapon *_weapon;
};
#endif

View file

@ -6,27 +6,27 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/05 13:34:19 by rparodi #+# #+# */
/* Updated: 2024/11/05 14:32:31 by rparodi ### ########.fr */
/* Updated: 2024/12/23 12:38:24 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef HUMANB_HPP
#define HUMANB_HPP
#include "Weapon.hpp"
#include <iostream>
#include <string>
class HumanB {
public:
HumanB(std::string name);
~HumanB();
void attack();
void setWeapon(Weapon &_toGive);
private:
std::string _name;
bool _isArmed;
Weapon *_weaponGiven;
};
#define HUMANB_HPP
#include "Weapon.hpp"
#include <iostream>
#include <string>
class HumanB {
public:
HumanB(std::string name);
~HumanB();
void attack();
void setWeapon(Weapon &_toGive);
private:
std::string _name;
bool _isArmed;
Weapon *_weaponGiven;
};
#endif

View file

@ -6,32 +6,32 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/05 13:24:43 by rparodi #+# #+# */
/* Updated: 2024/11/05 14:25:09 by rparodi ### ########.fr */
/* Updated: 2024/12/23 12:38:07 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef WEAPON_HPP
#define WEAPON_HPP
#include <iostream>
#include <string>
class Weapon {
public:
Weapon(std::string type);
~Weapon();
std::string getType();
void setType(std::string type);
private:
std::string _type;
};
#define CLR_RESET "\033[0m"
#define CLR_YELLOW "\033[0;33m"
#define CLR_GOLD "\033[38;5;220m"
#define CLR_BLUE "\033[0;34m"
#define CLR_CYAN "\033[0;36m"
#define WEAPON_HPP
#include <iostream>
#include <string>
class Weapon {
public:
Weapon(std::string type);
~Weapon();
std::string getType();
void setType(std::string type);
private:
std::string _type;
};
#define CLR_RESET "\033[0m"
#define CLR_YELLOW "\033[0;33m"
#define CLR_GOLD "\033[38;5;220m"
#define CLR_BLUE "\033[0;34m"
#define CLR_CYAN "\033[0;36m"
#endif