Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma
- #include <string>
- #include "player.h"
- namespace std
- {
- class Monster
- {
- string name;
- int health;
- int attack;
- bool dead;
- public: void Attack(Player player)
- {
- player.TakeDamage(attack);
- }
- public: void TakeDamage(int amount)
- {
- health -= amount;
- }
- public: void Death()
- {
- dead = true;
- }
- };
- }
Add Comment
Please, Sign In to add comment