Player.h
1 #pragma once 2 3 4 5 class Player 6 { 7 public: 8 Player(); 9 Player(int hp); 10 11 virtual ~Player(); 12 13 // ������ ����ϴ� �Լ��Դϴ�. 14 // �߰� ������ �ִٸ� override�ؼ� ����ϼ���~ 15 virtual void PrintInfo(); 16 17 virtual void AddHp(int value); 18 bool IsDead(); 19 20 int GetAttackDamage(); 21 22 void OnDamaged(Player* attacker); 23 24 public: 25 26 int _hp; 27 int _maxHp; 28 int _attack; 29 }; 30