21 #include <yaml-cpp/yaml.h> 35 int _fundingBase, _fundingCap;
36 double _labelLon, _labelLat;
37 std::vector<double> _lonMin, _lonMax, _latMin, _latMax;
44 void load(
const YAML::Node& node);
57 const std::vector<double> &getLonMax()
const {
return _lonMax; }
58 const std::vector<double> &getLonMin()
const {
return _lonMin; }
59 const std::vector<double> &getLatMax()
const {
return _latMax; }
60 const std::vector<double> &getLatMin()
const {
return _latMin; }
~RuleCountry()
Cleans up the country ruleset.
Definition: RuleCountry.cpp:38
void load(const YAML::Node &node)
Loads the country from YAML.
Definition: RuleCountry.cpp:46
int getFundingCap() const
Gets the country's funding cap.
Definition: RuleCountry.cpp:94
RuleCountry(const std::string &type)
Creates a blank country ruleset.
Definition: RuleCountry.cpp:31
int generateFunding() const
Generates the country's starting funding.
Definition: RuleCountry.cpp:84
double getLabelLongitude() const
Gets the country's label X position.
Definition: RuleCountry.cpp:103
Represents a specific funding country.
Definition: RuleCountry.h:31
double getLabelLatitude() const
Gets the country's label Y position.
Definition: RuleCountry.cpp:112
std::string getType() const
Gets the country's type.
Definition: RuleCountry.cpp:75
bool insideCountry(double lon, double lat) const
Checks if a point is inside the country.
Definition: RuleCountry.cpp:123
Definition: BaseInfoState.cpp:40