Battlearene 3. kodutöö
}
else if(opponent->hitpoints<=0){
cout<<"Your opponent has no HP"<typeName;
}
void Character::damage(int damage){
hitpoints-=damage;
}
void Character::toString(){
cout<<"nimi: "<typeName<getName();
}
void Character::printDescription(){
toString();
cout<<"HP: "<