Knight.cpp
1 #include "Knight.h" 2 #include <iostream> 3 using namespace std; 4 5 6 Knight::Knight() 7 { 8 9 } 10 11 Knight::Knight(int hp) : Player(hp) 12 { 13 14 } 15 16 Knight::~Knight() 17 { 18 19 } 20 21 void Knight::PrintInfo() 22 { 23 cout << "------ KnightInfo ------" << endl; 24 cout << "HP: " << _hp << endl; 25 cout << "ATT: " << _attack << endl; 26 } 27