|
xoreos
0.0.5
|
#include <location.h>


Public Member Functions | |
| Location () | |
| ~Location () | |
| Location * | clone () const |
| Clone factory method. More... | |
| Area * | getArea () const |
| Return the location's area. More... | |
| void | setArea (Area *area) |
| Set the location's area. More... | |
| void | getPosition (float &x, float &y, float &z) const |
| Return the location's position. More... | |
| void | setPosition (float x, float y, float z) |
| Set the location's position. More... | |
| float | getFacing () const |
| Return the location's orientation. More... | |
| void | setFacing (float facing) |
| Set the location's orientation. More... | |
Public Member Functions inherited from Aurora::NWScript::EngineType | |
| EngineType () | |
| virtual | ~EngineType () |
Private Attributes | |
| Area * | _area |
| The location's area. More... | |
| float | _position [3] |
| The location's position. More... | |
| float | _facing |
| The location's orientation. More... | |
Definition at line 36 of file location.h.
| Engines::NWN::Location::Location | ( | ) |
Definition at line 31 of file location.cpp.
References _position.
Referenced by clone().

| Engines::NWN::Location::~Location | ( | ) |
Definition at line 37 of file location.cpp.
|
virtual |
Clone factory method.
Implements Aurora::NWScript::EngineType.
Definition at line 40 of file location.cpp.
References Location().

| Area * Engines::NWN::Location::getArea | ( | ) | const |
| float Engines::NWN::Location::getFacing | ( | ) | const |
| void Engines::NWN::Location::getPosition | ( | float & | x, |
| float & | y, | ||
| float & | z | ||
| ) | const |
Return the location's position.
Definition at line 52 of file location.cpp.
References _position.
Referenced by Engines::NWN::Functions::actionMoveToLocation(), Engines::NWN::Functions::getPositionFromLocation(), and Engines::NWN::Functions::jumpToLocation().

| void Engines::NWN::Location::setArea | ( | Area * | area | ) |
Set the location's area.
Definition at line 48 of file location.cpp.
References _area.
Referenced by Engines::NWN::Object::getLocation(), and Engines::NWN::Functions::location().

| void Engines::NWN::Location::setFacing | ( | float | facing | ) |
Set the location's orientation.
Definition at line 68 of file location.cpp.
References _facing.
Referenced by Engines::NWN::Object::getLocation(), and Engines::NWN::Functions::location().

| void Engines::NWN::Location::setPosition | ( | float | x, |
| float | y, | ||
| float | z | ||
| ) |
Set the location's position.
Definition at line 58 of file location.cpp.
References _position.
Referenced by Engines::NWN::Object::getLocation(), and Engines::NWN::Functions::location().

|
private |
The location's area.
Definition at line 60 of file location.h.
|
private |
The location's orientation.
Definition at line 63 of file location.h.
Referenced by getFacing(), and setFacing().
|
private |
The location's position.
Definition at line 62 of file location.h.
Referenced by getPosition(), Location(), and setPosition().
1.8.14