22 #include <yaml-cpp/yaml.h> 27 class RuleAlienMission;
28 class AlienDeployment;
39 size_t _secondsRemaining;
40 std::string _race, _city;
41 bool _inBattlescape, _detected;
48 void load(
const YAML::Node& node);
50 YAML::Node
save()
const;
80 void setCity(
const std::string &city);
void setAlienRace(const std::string &race)
Sets the mission site's alien race.
Definition: MissionSite.cpp:155
void setTexture(int texture)
Sets the mission site's texture.
Definition: MissionSite.cpp:191
const AlienDeployment * getDeployment() const
Gets the mission site's deployment.
Definition: MissionSite.cpp:97
MissionSite(const RuleAlienMission *rules, const AlienDeployment *deployment)
Creates a mission site.
Definition: MissionSite.cpp:30
std::string getAlienRace() const
Gets the mission site's alien race.
Definition: MissionSite.cpp:146
Represents an alien mission site on the world.
Definition: MissionSite.h:33
bool getDetected() const
Gets the mission site's detection state.
Definition: MissionSite.cpp:219
size_t getSecondsRemaining() const
Gets the seconds until this mission site expires.
Definition: MissionSite.cpp:128
void setCity(const std::string &city)
Sets the mission site's city.
Definition: MissionSite.cpp:209
const RuleAlienMission * getRules() const
Gets the mission site's ruleset.
Definition: MissionSite.cpp:88
~MissionSite()
Cleans up the mission site.
Definition: MissionSite.cpp:37
void setDetected(bool detected)
Sets the mission site's detection state.
Definition: MissionSite.cpp:228
std::string getCity() const
Gets the mission site's city.
Definition: MissionSite.cpp:200
int getMarker() const
Gets the mission site's marker sprite.
Definition: MissionSite.cpp:115
void setInBattlescape(bool inbattle)
Sets the mission site's battlescape status.
Definition: MissionSite.cpp:173
void setSecondsRemaining(size_t seconds)
Sets the seconds until this mission site expires.
Definition: MissionSite.cpp:137
bool isInBattlescape() const
Gets if the mission site is in battlescape.
Definition: MissionSite.cpp:164
std::string getType() const
Gets the waypoint's type.
Definition: MissionSite.cpp:79
void load(const YAML::Node &node)
Loads the mission site from YAML.
Definition: MissionSite.cpp:45
int getTexture() const
Gets the mission site's texture.
Definition: MissionSite.cpp:182
Stores fixed information about a mission type.
Definition: RuleAlienMission.h:67
std::string getMarkerName() const
Gets the mission site's marker name.
Definition: MissionSite.cpp:106
YAML::Node save() const
Saves the mission site to YAML.
Definition: MissionSite.cpp:59
Represents a specific type of Alien Deployment.
Definition: AlienDeployment.h:63
Base class for targets on the globe with a set of radian coordinates.
Definition: Target.h:35
Definition: BaseInfoState.cpp:40