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

#include <room.h>

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

Public Member Functions

 Room (const Common::UString &resRef, uint32 id, float x, float y, float z, bool walkable)
 
 ~Room ()
 
const Common::UStringgetResRef () const
 
bool isWalkable () const
 
void show ()
 
void hide ()
 

Private Member Functions

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

Private Attributes

Common::ChangeID _resources
 
const Common::UString_resRef
 
Common::ScopedPtr< Graphics::Aurora::Model_model
 
bool _walkable
 

Detailed Description

Definition at line 37 of file room.h.

Constructor & Destructor Documentation

◆ Room()

Engines::Jade::Room::Room ( const Common::UString resRef,
uint32  id,
float  x,
float  y,
float  z,
bool  walkable 
)

Definition at line 38 of file room.cpp.

References load().

Here is the call graph for this function:

◆ ~Room()

Engines::Jade::Room::~Room ( )

Definition at line 44 of file room.cpp.

References unload().

Here is the call graph for this function:

Member Function Documentation

◆ getResRef()

const Common::UString & Engines::Jade::Room::getResRef ( ) const

Definition at line 48 of file room.cpp.

References _resRef.

Referenced by Engines::Jade::AreaLayout::updateCamera().

Here is the caller graph for this function:

◆ hide()

void Engines::Jade::Room::hide ( )

Definition at line 80 of file room.cpp.

References _model.

◆ isWalkable()

bool Engines::Jade::Room::isWalkable ( ) const

Definition at line 52 of file room.cpp.

References _walkable.

◆ load()

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

Definition at line 56 of file room.cpp.

References _model, _resources, Common::UString::c_str(), Engines::indexOptionalArchive(), 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:

◆ show()

void Engines::Jade::Room::show ( )

Definition at line 75 of file room.cpp.

References _model.

◆ unload()

void Engines::Jade::Room::unload ( )
private

Definition at line 69 of file room.cpp.

References _model, _resources, Engines::deindexResources(), 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:

Member Data Documentation

◆ _model

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

Definition at line 54 of file room.h.

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

◆ _resources

Common::ChangeID Engines::Jade::Room::_resources
private

Definition at line 50 of file room.h.

Referenced by load(), and unload().

◆ _resRef

const Common::UString& Engines::Jade::Room::_resRef
private

Definition at line 52 of file room.h.

Referenced by getResRef().

◆ _walkable

bool Engines::Jade::Room::_walkable
private

Definition at line 56 of file room.h.

Referenced by isWalkable().


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