40 : _resRef(resRef.toLower()) {
41 load(resRef, x, y, z);
55 _model->setPosition(x, y, z);
virtual void show()
Show the object.
A room within a Star Wars: Knights of the Old Republic II - The Sith Lords area.
void disableWalkmeshHighlight()
virtual void hide()
Hide the object.
A class holding an UTF-8 string.
void reset(PointerType o=0)
Resets the pointer with the new value.
Engines::KotOR::Walkmesh _walkmesh
void setWalkmeshInvisible(bool invisible)
void setInvisible(bool invisible)
Basic exceptions to throw.
const char * c_str() const
Return the (utf8 encoded) string data.
float evaluateElevation(float x, float y, bool highlight=false)
void highlightFace(uint32 index)
Highlight face with specified index.
void load(const Common::UString &resRef, float x, float y, float z)
Common::UString getResRef() const
Common::ScopedPtr< Graphics::Aurora::Model > _model
Graphics::Aurora::Model * loadModelObject(const Common::UString &resref, const Common::UString &texture)
float getElevationAt(float x, float y, uint32 &faceIndex) const
Return elevation at given coordinates or FLT_MIN if can't walk there.
Room(const Common::UString &resRef, float x, float y, float z)
void load(const Common::UString &resRef, ::Aurora::FileType type=::Aurora::kFileTypeWOK, const glm::mat4 &transform=glm::mat4())
Generic Aurora engines model functions.