Files
BattleCap/include/Player.h
ParkSuMin 253e1cf423 Delete Soldier class
Make Infantry as structure
2025-07-07 02:43:47 +03:00

21 lines
364 B
C++

#pragma once
#include <string>
#include <vector>
#include "stdafx.h"
class Player {
private:
char name;
std::vector<std::unique_ptr<Infantry>> army;
double score;
public:
Player() {
score = 0.;
for (auto i = 0; i < 4; ++i) {
army.push_back(std::make_unique<Infantry>());
}
}
std::vector<std::unique_ptr<Infantry>>& get_army() {
return army;
}
};