24 lines
483 B
C++
24 lines
483 B
C++
#ifndef AUTO_AIM__VOTER_HPP
|
|
#define AUTO_AIM__VOTER_HPP
|
|
|
|
#include <vector>
|
|
|
|
#include "armor.hpp"
|
|
|
|
namespace auto_aim
|
|
{
|
|
|
|
class Voter
|
|
{
|
|
public:
|
|
Voter();
|
|
void vote(const Color color, const ArmorName name, const ArmorType type);
|
|
std::size_t count(const Color color, const ArmorName name, const ArmorType type);
|
|
|
|
private:
|
|
std::vector<std::size_t> count_;
|
|
std::size_t index(const Color color, const ArmorName name, const ArmorType type) const;
|
|
};
|
|
} // namespace auto_aim
|
|
|
|
#endif |