Files
BattleCap/include/Player.h
ParkSuMin 7da1909c76 Debug information about positions of units
Random position for flag and enemy (function Random)
2025-07-07 17:42:31 +03:00

25 lines
412 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.) {};
std::vector<std::unique_ptr<Infantry>>& get_army() {
return army;
}
void set_army(int x, int y) {
army.push_back(std::make_unique<Infantry>(x, y));
}
void set_name(char _name) {
name = _name;
}
};