feat: adding the class ScavTrap
This commit is contained in:
parent
0188957b10
commit
245ac4c3a9
5 changed files with 38 additions and 7 deletions
|
|
@ -0,0 +1,21 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ScavTrap.cpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/01/24 17:41:01 by rparodi #+# #+# */
|
||||
/* Updated: 2025/01/24 18:31:52 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "ScavTrap.hpp"
|
||||
|
||||
ScavTrap::ScavTrap (std::string name) {
|
||||
_name = name;
|
||||
_hit_point = 100;
|
||||
_energy_point = 50;
|
||||
_attack_damage = 20;
|
||||
std::cout << "\n[Init] ScavTrap:\n\t" << "Name: " << _name << std::endl;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue