Repository navigation
Expand file tree
/
Copy pathRuleUfo.h
More file actions
91 lines (85 loc) · 2.45 KB
/
Copy pathRuleUfo.h
File metadata and controls
91 lines (85 loc) · 2.45 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
/*
* 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/>.
*/
#ifndef OPENXCOM_RULEUFO_H
#define OPENXCOM_RULEUFO_H
#include <vector>
#include <string>
namespace OpenXcom
{
class RuleTerrain;
/**
* Represents a specific type of UFO.
* Contains constant info about a UFO like
* speed, weapons, scores, etc.
* @sa Ufo
*/
class RuleUfo
{
private:
std::string _type, _size;
int _sprite;
int _damageMax, _speedMax, _accel, _power, _range, _score;
RuleTerrain *_battlescapeTerrainData;
public:
/// Creates a blank UFO ruleset.
RuleUfo(std::string type);
/// Cleans up the UFO ruleset.
~RuleUfo();
/// Gets the UFO's type.
std::string getType() const;
/// Gets the UFO's size.
std::string getSize() const;
/// Sets the UFO's size.
void setSize(std::string size);
/// Gets the UFO's radius.
int getRadius() const;
/// Gets the UFO's sprite.
int getSprite() const;
/// Sets the UFO's sprite.
void setSprite(int sprite);
/// Gets the UFO's maximum damage.
int getMaxDamage() const;
/// Sets the UFO's maximum damage.
void setMaxDamage(int damage);
/// Gets the UFO's maximum speed.
int getMaxSpeed() const;
/// Sets the UFO's maximum speed.
void setMaxSpeed(int speed);
/// Gets the UFO's acceleration.
int getAcceleration() const;
/// Sets the UFO's acceleration.
void setAcceleration(int accel);
/// Gets the UFO's weapon power.
int getWeaponPower() const;
/// Sets the UFO's weapon power.
void setWeaponPower(int power);
/// Gets the UFO's weapon range.
int getWeaponRange() const;
/// Sets the UFO's weapon range.
void setWeaponRange(int range);
/// Gets the UFO's score.
int getScore() const;
/// Sets the UFO's score.
void setScore(int score);
/// stuff needed to draw this UFO on the battlescape
RuleTerrain *getBattlescapeTerrainData();
void setBattlescapeTerrainData(RuleTerrain *t);
};
}
#endif