xoreos  0.0.5
trigger.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 
26 #ifndef ENGINES_KOTOR2_TRIGGER_H
27 #define ENGINES_KOTOR2_TRIGGER_H
28 
30 
32 
33 namespace Engines {
34 
35 namespace KotOR2 {
36 
37 class Trigger : public ::Engines::Trigger, public Object {
38 public:
39  Trigger(const Aurora::GFF3Struct &gff);
40 
41  // .--- Object
42  void show();
43  void hide();
44  void hideSoft();
45  bool isVisible() const;
46  // '---
47 protected:
48  void load(const Aurora::GFF3Struct &gff);
49  void loadBlueprint(const Aurora::GFF3Struct &gff);
50 };
51 
52 } // End of namespace KotOR2
53 
54 } // End of namespace Engines
55 
56 #endif // ENGINES_KOTOR2_TRIGGER_H
void load(const Aurora::GFF3Struct &gff)
Definition: trigger.cpp:59
bool isVisible() const
Is the object&#39;s model(s) visible?
Definition: trigger.cpp:55
void loadBlueprint(const Aurora::GFF3Struct &gff)
Definition: trigger.cpp:94
An object in a Star Wars: Knights of the Old Republic II - The Sith Lords area.
Generic trigger.
void hideSoft()
Hide the object&#39;s model(s) if applicable.
Definition: trigger.cpp:52
A struct within a GFF3.
Definition: gff3file.h:164
void show()
Show the object&#39;s model(s).
Definition: trigger.cpp:44
void hide()
Hide the object&#39;s model(s).
Definition: trigger.cpp:48