xoreos  0.0.5
location.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_JADE_LOCATION_H
26 #define ENGINES_JADE_LOCATION_H
27 
29 
30 namespace Engines {
31 
32 namespace Jade {
33 
34 class Area;
35 
37 public:
38  Location();
39  ~Location();
40 
42  Location *clone() const;
43 
45  Area *getArea() const;
47  void setArea(Area *area);
48 
50  void getPosition(float &x, float &y, float &z) const;
52  void setPosition(float x, float y, float z);
53 
55  float getFacing() const;
57  void setFacing(float facing);
58 
59 private:
61 
62  float _position[3];
63  float _facing;
64 };
65 
66 } // End of namespace Jade
67 
68 } // End of namespace Engines
69 
70 #endif // ENGINES_JADE_LOCATION_H
float _position[3]
The location&#39;s position.
Definition: location.h:62
void setPosition(float x, float y, float z)
Set the location&#39;s position.
Definition: location.cpp:58
void getPosition(float &x, float &y, float &z) const
Return the location&#39;s position.
Definition: location.cpp:52
Area * getArea() const
Return the location&#39;s area.
Definition: location.cpp:44
An NWScript engine type.
An area in Jade Empire, holding all objects and rooms within, as well as general area properties like...
Definition: area.h:57
Location * clone() const
Clone factory method.
Definition: location.cpp:40
float getFacing() const
Return the location&#39;s orientation.
Definition: location.cpp:64
float _facing
The location&#39;s orientation.
Definition: location.h:63
void setFacing(float facing)
Set the location&#39;s orientation.
Definition: location.cpp:68
Area * _area
The location&#39;s area.
Definition: location.h:60
void setArea(Area *area)
Set the location&#39;s area.
Definition: location.cpp:48