Player blueHat; Player redHat; Player greenHat; Player yellowHat;
void Player::getTreasure() {
health++; // increments the value of the player's health by one
}
void Player.greenHat::getTreasure() {
health++; // increments the value of the player's health by one
}
void Player::getTreasure() {
health++; // increments the value of the player's health by one
}
void Player.greenHat::getTreasure() {
health++; // increments the value of the player's health by one
}
void Player.greenHat::getTreasure() {
health++; // increments the value of all player's health by one
}
void Player.greenHat::getTreasure() {
health++; // increments the value of the greenHat player's health by one
}
