Delete Soldier class

Make Infantry as structure
This commit is contained in:
2025-07-07 02:43:47 +03:00
parent f13bf95ba2
commit 253e1cf423
6 changed files with 16 additions and 30 deletions

View File

@@ -6,7 +6,7 @@
class Player {
private:
char name;
std::vector<std::unique_ptr<Soldier>> army;
std::vector<std::unique_ptr<Infantry>> army;
double score;
public:
Player() {
@@ -15,7 +15,7 @@ public:
army.push_back(std::make_unique<Infantry>());
}
}
std::vector<std::unique_ptr<Soldier>>& get_army() {
std::vector<std::unique_ptr<Infantry>>& get_army() {
return army;
}
};