OpenXcom  1.0
Open-source clone of the original X-Com
AlienBase.h
1 #pragma once
2 /*
3  * Copyright 2010-2016 OpenXcom Developers.
4  *
5  * This file is part of OpenXcom.
6  *
7  * OpenXcom is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * OpenXcom is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with OpenXcom. If not, see <http://www.gnu.org/licenses/>.
19  */
20 #include "Target.h"
21 #include <string>
22 #include "../Mod/AlienDeployment.h"
23 #include <yaml-cpp/yaml.h>
24 
25 namespace OpenXcom
26 {
27 
31 class AlienBase : public Target
32 {
33 private:
34  std::string _race;
35  bool _inBattlescape, _discovered;
36  AlienDeployment *_deployment;
37 public:
39  AlienBase(AlienDeployment *deployment);
41  ~AlienBase();
43  void load(const YAML::Node& node);
45  YAML::Node save() const;
47  std::string getType() const;
49  int getMarker() const;
51  std::string getAlienRace() const;
53  void setAlienRace(const std::string &race);
55  void setInBattlescape(bool inbattle);
57  bool isInBattlescape() const;
59  bool isDiscovered() const;
61  void setDiscovered(bool discovered);
62 
63  AlienDeployment *getDeployment() const;
64 
65 };
66 
67 }
void load(const YAML::Node &node)
Loads the alien base from YAML.
Definition: AlienBase.cpp:43
Represents an alien base on the world.
Definition: AlienBase.h:31
void setAlienRace(const std::string &race)
Sets the alien base&#39;s alien race.
Definition: AlienBase.cpp:101
~AlienBase()
Cleans up the alien base.
Definition: AlienBase.cpp:35
void setInBattlescape(bool inbattle)
Sets the alien base&#39;s battlescape status.
Definition: AlienBase.cpp:119
void setDiscovered(bool discovered)
Sets the alien base&#39;s discovered status.
Definition: AlienBase.cpp:137
int getMarker() const
Gets the alien base&#39;s marker sprite.
Definition: AlienBase.cpp:81
bool isDiscovered() const
Gets the alien base&#39;s discovered status.
Definition: AlienBase.cpp:128
bool isInBattlescape() const
Gets the alien base&#39;s battlescape status.
Definition: AlienBase.cpp:110
std::string getAlienRace() const
Gets the alien base&#39;s amount of active hours.
Definition: AlienBase.cpp:92
std::string getType() const
Gets the alien base&#39;s type.
Definition: AlienBase.cpp:72
YAML::Node save() const
Saves the alien base to YAML.
Definition: AlienBase.cpp:55
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
AlienBase(AlienDeployment *deployment)
Creates an alien base.
Definition: AlienBase.cpp:28
Definition: BaseInfoState.cpp:40