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

#include <room.h>

Collaboration diagram for Engines::KotOR2::Room:
Collaboration graph
[legend]

Public Member Functions

 Room (const Common::UString &resRef, float x, float y, float z)
 
 ~Room ()
 
Common::UString getResRef () const
 
float evaluateElevation (float x, float y, bool highlight=false)
 
void disableWalkmeshHighlight ()
 
void setWalkmeshInvisible (bool invisible)
 
void show ()
 
void hide ()
 
bool isVisible () const
 

Private Member Functions

void load (const Common::UString &resRef, float x, float y, float z)
 

Private Attributes

Common::UString _resRef
 
Common::ScopedPtr< Graphics::Aurora::Model_model
 
Engines::KotOR::Walkmesh _walkmesh
 

Detailed Description

Definition at line 44 of file room.h.

Constructor & Destructor Documentation

◆ Room()

Engines::KotOR2::Room::Room ( const Common::UString resRef,
float  x,
float  y,
float  z 
)

Definition at line 39 of file room.cpp.

References load().

Here is the call graph for this function:

◆ ~Room()

Engines::KotOR2::Room::~Room ( )

Definition at line 44 of file room.cpp.

Member Function Documentation

◆ disableWalkmeshHighlight()

void Engines::KotOR2::Room::disableWalkmeshHighlight ( )

Definition at line 74 of file room.cpp.

References _walkmesh, and Graphics::Aurora::Walkmesh::highlightFace().

Referenced by Engines::KotOR2::Area::evaluateElevation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ evaluateElevation()

float Engines::KotOR2::Room::evaluateElevation ( float  x,
float  y,
bool  highlight = false 
)

Definition at line 64 of file room.cpp.

References _walkmesh, FLT_MIN, Graphics::Aurora::Walkmesh::getElevationAt(), and Graphics::Aurora::Walkmesh::highlightFace().

Referenced by Engines::KotOR2::Area::evaluateElevation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getResRef()

Common::UString Engines::KotOR2::Room::getResRef ( ) const

Definition at line 60 of file room.cpp.

References _resRef.

Referenced by Engines::KotOR2::Console::cmdGetPCRoom(), and Engines::KotOR2::Area::notifyPCMoved().

Here is the caller graph for this function:

◆ hide()

void Engines::KotOR2::Room::hide ( )

Definition at line 88 of file room.cpp.

References _model, _walkmesh, and Graphics::Renderable::hide().

Here is the call graph for this function:

◆ isVisible()

bool Engines::KotOR2::Room::isVisible ( ) const

Definition at line 94 of file room.cpp.

References _model.

Referenced by Engines::KotOR2::Area::notifyPCMoved().

Here is the caller graph for this function:

◆ load()

void Engines::KotOR2::Room::load ( const Common::UString resRef,
float  x,
float  y,
float  z 
)
private

Definition at line 47 of file room.cpp.

References _model, _walkmesh, Common::UString::c_str(), Engines::KotOR::Walkmesh::load(), Engines::loadModelObject(), and Common::ScopedPtrBase< T, Deallocator >::reset().

Referenced by Room().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setWalkmeshInvisible()

void Engines::KotOR2::Room::setWalkmeshInvisible ( bool  invisible)

Definition at line 78 of file room.cpp.

References _walkmesh, and Graphics::Aurora::Walkmesh::setInvisible().

Here is the call graph for this function:

◆ show()

void Engines::KotOR2::Room::show ( )

Definition at line 82 of file room.cpp.

References _model, _walkmesh, and Graphics::Renderable::show().

Here is the call graph for this function:

Member Data Documentation

◆ _model

Common::ScopedPtr<Graphics::Aurora::Model> Engines::KotOR2::Room::_model
private

Definition at line 60 of file room.h.

Referenced by hide(), isVisible(), load(), and show().

◆ _resRef

Common::UString Engines::KotOR2::Room::_resRef
private

Definition at line 59 of file room.h.

Referenced by getResRef().

◆ _walkmesh

Engines::KotOR::Walkmesh Engines::KotOR2::Room::_walkmesh
private

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