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 public: 13 int _hp; 14 int _attack; 15 }; 16
1 #pragma once 2 3 class Knight 4 { 5 public: 6 Knight(); 7 Knight(int hp); 8 ~Knight(); 9 10 void PrintInfo(); 11 12 public: 13 int _hp; 14 int _attack; 15 }; 16