Files
BattleCap/include/Player.h

21 lines
362 B
C++

#pragma once
#include <string>
#include <vector>
#include "stdafx.h"
class Player {
private:
char name;
std::vector<std::unique_ptr<Soldier>> 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<Soldier>>& get_army() {
return army;
}
};