mastring the simple heritage
This commit is contained in:
parent
245ac4c3a9
commit
d161579a2a
13 changed files with 376 additions and 4 deletions
25
cpp03/ex02/FragTrap.cpp
Normal file
25
cpp03/ex02/FragTrap.cpp
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* FragTrap.cpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/01/24 17:41:01 by rparodi #+# #+# */
|
||||
/* Updated: 2025/01/24 21:01:58 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "FragTrap.hpp"
|
||||
|
||||
FragTrap::FragTrap (std::string name) {
|
||||
_name = name;
|
||||
_hit_point = 100;
|
||||
_energy_point = 100;
|
||||
_attack_damage = 30;
|
||||
std::cout << "\n[Init] FragTrap:\n\t" << "Name: " << _name << std::endl;
|
||||
}
|
||||
|
||||
void FragTrap::highFivesGuys() {
|
||||
std::cout << "\n[Clap] FragTrap:\n\t" << "Name:" << _name << "Hey bro can i get an high five ? Thanks u brother !" << _name << "Hey bro can i get an high five ? Thanks u brother !" << std::endl;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue