xoreos  0.0.5
item.h
Go to the documentation of this file.
1 /* xoreos - A reimplementation of BioWare's Aurora engine
2  *
3  * xoreos is the legal property of its developers, whose names
4  * can be found in the AUTHORS file distributed with this source
5  * distribution.
6  *
7  * xoreos is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 3
10  * of the License, or (at your option) any later version.
11  *
12  * xoreos 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 xoreos. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
25 #ifndef ENGINES_KOTOR_ITEM_H
26 #define ENGINES_KOTOR_ITEM_H
27 
29 
30 namespace Engines {
31 
32 namespace KotOR {
33 
34 class Item : public Object {
35 public:
36  Item(const Common::UString &item);
37 
38  const Common::UString &getName() const;
40 
41  int getBodyVariation() const;
42  int getTextureVariation() const;
43  const Common::UString getIcon() const;
44  const Common::UString getModelName() const;
45 
46 private:
47  int _baseItem;
50 
54 
55  void load(const Aurora::GFF3Struct &gff);
56 };
57 
58 } // End of namespace KotOR
59 
60 } // End of namespace Engines
61 
62 #endif // ENGINES_KOTOR_ITEM_H
const Common::UString getModelName() const
Definition: item.cpp:87
A class holding an UTF-8 string.
Definition: ustring.h:48
int _bodyVariation
Definition: item.h:52
Common::UString _itemClass
Definition: item.h:48
int getTextureVariation() const
Definition: item.cpp:76
EquipmentSlot _equipableSlots
Definition: item.h:49
Item(const Common::UString &item)
Definition: item.cpp:39
void load(const Aurora::GFF3Struct &gff)
Definition: item.cpp:46
int _modelVariation
Definition: item.h:51
int _textureVariation
Definition: item.h:53
A struct within a GFF3.
Definition: gff3file.h:164
const Common::UString getIcon() const
Definition: item.cpp:80
EquipmentSlot getEquipableSlots() const
Definition: item.cpp:68
int getBodyVariation() const
Definition: item.cpp:72
An object in a Star Wars: Knights of the Old Republic area.
const Common::UString & getName() const
Definition: item.cpp:64