Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C++ by Anonymous_228 ( 6 years ago )
class Hit {
public:
Hit(double damage, double accuracy) : damage(damage), accuracy(accuracy) {};
double getDamage() {
return this->damage;
}
double getAccuracy() {
return this->accuracy;
}
void setDamage(double value) {
this->damage = value;
}
void setAccuracy(double value) {
this->accuracy = value;
}
double calculateFinalDamage() {
return this->damage * this->accuracy;
}
protected:
double damage, accuracy;
};
Revise this Paste