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