OpenXcom  1.0
Open-source clone of the original X-Com
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
StatStringCondition.h
1 /*
2  * Copyright 2010-2014 OpenXcom Developers.
3  *
4  * This file is part of OpenXcom.
5  *
6  * OpenXcom is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * OpenXcom is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with OpenXcom. If not, see <http://www.gnu.org/licenses/>.
18  */
19 #ifndef OPENXCOM_STATSTRINGCONDITION_H
20 #define OPENXCOM_STATSTRINGCONDITION_H
21 
22 #include <string>
23 
24 namespace OpenXcom
25 {
26 
28 {
29 private:
30  std::string _conditionName;
31  int _minVal;
32  int _maxVal;
33 public:
35  StatStringCondition(const std::string conditionName, int minVal, int maxVal);
37  virtual ~StatStringCondition();
39  const std::string getConditionName();
41  int getMinVal();
43  int getMaxVal();
44 };
45 
46 }
47 #endif
Definition: StatStringCondition.h:27
int getMaxVal()
Get MaxVal.
Definition: StatStringCondition.cpp:67
int getMinVal()
Get MinVal.
Definition: StatStringCondition.cpp:58
const std::string getConditionName()
Get MinVal.
Definition: StatStringCondition.cpp:49
StatStringCondition(const std::string conditionName, int minVal, int maxVal)
Creates a blank StatStringCondition.
Definition: StatStringCondition.cpp:31
virtual ~StatStringCondition()
Cleans up the StatStringCondition.
Definition: StatStringCondition.cpp:41