Repository navigation
Expand file tree
/
Copy pathRuleCraft.h
More file actions
104 lines (98 loc) · 2.95 KB
/
Copy pathRuleCraft.h
File metadata and controls
104 lines (98 loc) · 2.95 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
/*
* 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_RULECRAFT_H
#define OPENXCOM_RULECRAFT_H
#include <vector>
#include <string>
#include <string>
namespace OpenXcom
{
class RuleTerrain;
/**
* Represents a specific type of craft.
* Contains constant info about a craft like
* costs, speed, capacities, consumptions, etc.
* @sa Craft
*/
class RuleCraft
{
private:
std::string _type;
int _sprite;
int _fuelMax, _damageMax, _speedMax, _accel, _weapons, _soldiers, _hwps, _fee, _repair, _refuel;
// battlescape:
RuleTerrain *_battlescapeTerrainData;
public:
/// Creates a blank craft ruleset.
RuleCraft(std::string type);
/// Cleans up the craft ruleset.
~RuleCraft();
/// Gets the craft's type.
std::string getType() const;
/// Gets the craft's sprite.
int getSprite() const;
/// Sets the craft's sprite.
void setSprite(int sprite);
/// Gets the craft's maximum fuel.
int getMaxFuel() const;
/// Sets the craft's maximum fuel.
void setMaxFuel(int fuel);
/// Gets the craft's maximum damage.
int getMaxDamage() const;
/// Sets the craft's maximum damage.
void setMaxDamage(int damage);
/// Gets the craft's maximum speed.
int getMaxSpeed() const;
/// Sets the craft's maximum speed.
void setMaxSpeed(int speed);
/// Gets the craft's acceleration.
int getAcceleration() const;
/// Sets the craft's acceleration.
void setAcceleration(int accel);
/// Gets the craft's weapon capacity.
int getWeapons() const;
/// Sets the craft's weapon capacity.
void setWeapons(int weapons);
/// Gets the craft's soldier capacity.
int getSoldiers() const;
/// Sets the craft's soldier capacity.
void setSoldiers(int soldiers);
/// Gets the craft's HWP capacity.
int getHWPs() const;
/// Sets the craft's HWP capacity.
void setHWPs(int hwps);
/// Gets the craft's monthly fee.
int getMonthlyFee() const;
/// Sets the craft's monthly fee.
void setMonthlyFee(int fee);
/// Gets the craft's repair rate.
int getRepairRate() const;
/// Sets the craft's repair rate.
void setRepairRate(int repair);
/// Gets the craft's refuel rate.
int getRefuelRate() const;
/// Sets the craft's refuel rate.
void setRefuelRate(int refuel);
/// Gets the craft's terrain data.
RuleTerrain *getBattlescapeTerrainData();
/// Sets the craft's terrain data.
void setBattlescapeTerrainData(RuleTerrain *t);
};
}
#endif