xoreos  0.0.5
Public Member Functions | Private Attributes | List of all members
Engines::NWN2::Location Class Reference

#include <location.h>

Inheritance diagram for Engines::NWN2::Location:
Inheritance graph
[legend]
Collaboration diagram for Engines::NWN2::Location:
Collaboration graph
[legend]

Public Member Functions

 Location ()
 
 ~Location ()
 
Locationclone () const
 Clone factory method. More...
 
AreagetArea () 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...
 

Detailed Description

Definition at line 36 of file location.h.

Constructor & Destructor Documentation

◆ Location()

Engines::NWN2::Location::Location ( )

Definition at line 31 of file location.cpp.

References _position.

Referenced by clone().

Here is the caller graph for this function:

◆ ~Location()

Engines::NWN2::Location::~Location ( )

Definition at line 37 of file location.cpp.

Member Function Documentation

◆ clone()

Location * Engines::NWN2::Location::clone ( ) const
virtual

Clone factory method.

Implements Aurora::NWScript::EngineType.

Definition at line 40 of file location.cpp.

References Location().

Here is the call graph for this function:

◆ getArea()

Area * Engines::NWN2::Location::getArea ( ) const

Return the location's area.

Definition at line 44 of file location.cpp.

References _area.

◆ getFacing()

float Engines::NWN2::Location::getFacing ( ) const

Return the location's orientation.

Definition at line 64 of file location.cpp.

References _facing.

◆ getPosition()

void Engines::NWN2::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::NWN2::Functions::actionJumpToLocation(), Engines::NWN2::Functions::actionMoveToLocation(), Engines::NWN2::Functions::getPositionFromLocation(), and Engines::NWN2::Functions::jumpToLocation().

Here is the caller graph for this function:

◆ setArea()

void Engines::NWN2::Location::setArea ( Area area)

Set the location's area.

Definition at line 48 of file location.cpp.

References _area.

Referenced by Engines::NWN2::Object::getLocation(), and Engines::NWN2::Functions::location().

Here is the caller graph for this function:

◆ setFacing()

void Engines::NWN2::Location::setFacing ( float  facing)

Set the location's orientation.

Definition at line 68 of file location.cpp.

References _facing.

Referenced by Engines::NWN2::Object::getLocation(), and Engines::NWN2::Functions::location().

Here is the caller graph for this function:

◆ setPosition()

void Engines::NWN2::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::NWN2::Object::getLocation(), and Engines::NWN2::Functions::location().

Here is the caller graph for this function:

Member Data Documentation

◆ _area

Area* Engines::NWN2::Location::_area
private

The location's area.

Definition at line 60 of file location.h.

Referenced by getArea(), and setArea().

◆ _facing

float Engines::NWN2::Location::_facing
private

The location's orientation.

Definition at line 63 of file location.h.

Referenced by getFacing(), and setFacing().

◆ _position

float Engines::NWN2::Location::_position[3]
private

The location's position.

Definition at line 62 of file location.h.

Referenced by getPosition(), Location(), and setPosition().


The documentation for this class was generated from the following files: