Repository navigation
Expand file tree
/
Copy pathRuleAlien.cpp
More file actions
106 lines (90 loc) · 1.98 KB
/
Copy pathRuleAlien.cpp
File metadata and controls
106 lines (90 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/*
* Copyright 2010 OpenXcom Developers.
*
* This file is part of OpenXcom.
*
* OpenXcom is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* OpenXcom is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with OpenXcom. If not, see <http://www.gnu.org/licenses/>.
*/
#include "RuleAlien.h"
namespace OpenXcom
{
/**
* Creates a blank ruleunit for a certain
* type of craft.
* @param type String defining the type.
*/
RuleAlien::RuleAlien(std::string type, std::string race, std::string rank) : _type(type), _race(race), _rank(rank), _armor(""), _standHeight(0), _kneelHeight(0), _loftemps(0)
{
}
/**
*
*/
RuleAlien::~RuleAlien()
{
}
/**
* Returns the language string that names
* this unit. Each unit type has a unique name.
* @return Unit name.
*/
std::string RuleAlien::getType() const
{
return _type;
}
void RuleAlien::setStats(struct UnitStats stats)
{
_stats = stats;
}
void RuleAlien::setArmor(std::string armor)
{
_armor = armor;
}
void RuleAlien::setVoxelParameters(int standHeight, int kneelHeight, int loftemps)
{
_standHeight = standHeight;
_kneelHeight = kneelHeight;
_loftemps = loftemps;
}
UnitStats RuleAlien::getStats() const
{
return _stats;
}
///
int RuleAlien::getStandHeight() const
{
return _standHeight;
}
///
int RuleAlien::getKneelHeight() const
{
return _kneelHeight;
}
///
int RuleAlien::gotLoftemps() const
{
return _loftemps;
}
std::string RuleAlien::getArmor() const
{
return _armor;
}
std::string RuleAlien::getRace() const
{
return _race;
}
std::string RuleAlien::getRank() const
{
return _rank;
}
}