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::Jade::Location::Location | ( | ) |
Definition at line 31 of file location.cpp.
References _position.
Referenced by clone().
Engines::Jade::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::Jade::Location::getArea | ( | ) | const |
float Engines::Jade::Location::getFacing | ( | ) | const |
void Engines::Jade::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::Jade::Functions::actionJumpToLocation(), Engines::Jade::Functions::actionMoveToLocation(), Engines::Jade::Functions::getPositionFromLocation(), and Engines::Jade::Functions::jumpToLocation().
void Engines::Jade::Location::setArea | ( | Area * | area | ) |
Set the location's area.
Definition at line 48 of file location.cpp.
References _area.
Referenced by Engines::Jade::Object::getLocation(), and Engines::Jade::Functions::location().
void Engines::Jade::Location::setFacing | ( | float | facing | ) |
Set the location's orientation.
Definition at line 68 of file location.cpp.
References _facing.
Referenced by Engines::Jade::Object::getLocation(), and Engines::Jade::Functions::location().
void Engines::Jade::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::Jade::Object::getLocation(), and Engines::Jade::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().