19 #ifndef OPENXCOM_RULECOUNTRY_H
20 #define OPENXCOM_RULECOUNTRY_H
23 #include <yaml-cpp/yaml.h>
37 int _fundingBase, _fundingCap;
38 double _labelLon, _labelLat;
39 std::vector<double> _lonMin, _lonMax, _latMin, _latMax;
46 void load(
const YAML::Node& node);
59 const std::vector<double> &getLonMax()
const {
return _lonMax; }
60 const std::vector<double> &getLonMin()
const {
return _lonMin; }
61 const std::vector<double> &getLatMax()
const {
return _latMax; }
62 const std::vector<double> &getLatMin()
const {
return _latMin; }
~RuleCountry()
Cleans up the country ruleset.
Definition: RuleCountry.cpp:39
double getLabelLatitude() const
Gets the country's label Y position.
Definition: RuleCountry.cpp:108
void load(const YAML::Node &node)
Loads the country from YAML.
Definition: RuleCountry.cpp:47
int generateFunding() const
Generates the country's starting funding.
Definition: RuleCountry.cpp:80
RuleCountry(const std::string &type)
Creates a blank country ruleset.
Definition: RuleCountry.cpp:32
std::string getType() const
Gets the country's type.
Definition: RuleCountry.cpp:71
double getLabelLongitude() const
Gets the country's label X position.
Definition: RuleCountry.cpp:99
Represents a specific funding country.
Definition: RuleCountry.h:33
int getFundingCap() const
Gets the country's funding cap.
Definition: RuleCountry.cpp:90
bool insideCountry(double lon, double lat) const
Checks if a point is inside the country.
Definition: RuleCountry.cpp:119