Knight.h
1 #pragma once 2 3 class Knight 4 { 5 public: 6 Knight(); 7 Knight(int hp); 8 ~Knight(); 9 10 void PrintInfo(); 11 12 void AddHp(int value); 13 bool IsDead(); 14 15 public: 16 int _hp; 17 int _attack; 18 }; 19
1 #pragma once 2 3 class Knight 4 { 5 public: 6 Knight(); 7 Knight(int hp); 8 ~Knight(); 9 10 void PrintInfo(); 11 12 void AddHp(int value); 13 bool IsDead(); 14 15 public: 16 int _hp; 17 int _attack; 18 }; 19