team fortress

#include <iostream>

class Player {
public:
    Player(int health, int armor) : health_(health), armor_(armor) {}

    int GetHealth() const {
        return health_;
    }

    int GetArmor() const {
        return armor_;
    }

private:
    int health_;
    int armor_;
};

class TeamFortress {
public:
    TeamFortress(const Player& player) : player_(player) {}

    void DisplayPlayerInfo() {
        std::cout << "Player Health: " << player_.GetHealth() << std::endl;
        std::cout << "Player Armor: " << player_.GetArmor() << std::endl;
    }

private:
    Player player_;
};

int main() {
    // Creating a Player object with initial health and armor values
    Player player1(100, 50);

    // Creating a TeamFortress object with the Player object
    TeamFortress fortress(player1);

    // Displaying player information using the TeamFortress object
    fortress.DisplayPlayerInfo();

    return 0;
}