xoreos
0.0.5
|
#include <room.h>
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 |
Engines::KotOR2::Room::Room | ( | const Common::UString & | resRef, |
float | x, | ||
float | y, | ||
float | z | ||
) |
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().
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().
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().
void Engines::KotOR2::Room::hide | ( | ) |
Definition at line 88 of file room.cpp.
References _model, _walkmesh, and Graphics::Renderable::hide().
bool Engines::KotOR2::Room::isVisible | ( | ) | const |
Definition at line 94 of file room.cpp.
References _model.
Referenced by Engines::KotOR2::Area::notifyPCMoved().
|
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().
void Engines::KotOR2::Room::setWalkmeshInvisible | ( | bool | invisible | ) |
Definition at line 78 of file room.cpp.
References _walkmesh, and Graphics::Aurora::Walkmesh::setInvisible().
void Engines::KotOR2::Room::show | ( | ) |
Definition at line 82 of file room.cpp.
References _model, _walkmesh, and Graphics::Renderable::show().
|
private |
|
private |
Definition at line 59 of file room.h.
Referenced by getResRef().
|
private |
Definition at line 61 of file room.h.
Referenced by disableWalkmeshHighlight(), evaluateElevation(), hide(), load(), setWalkmeshInvisible(), and show().