OpenMW
Public Types | Public Member Functions | Private Member Functions | Private Attributes
MWWorld::Scene Class Reference

#include <scene.hpp>

List of all members.

Public Types

typedef std::set< CellStore * > CellStoreCollection

Public Member Functions

 Scene (MWRender::RenderingManager &rendering, PhysicsSystem *physics)
 ~Scene ()
void unloadCell (CellStoreCollection::iterator iter)
void loadCell (CellStore *cell, Loading::Listener *loadingListener)
void changeCell (int X, int Y, const ESM::Position &position, bool adjustPlayerPos)
CellStoregetCurrentCell ()
const CellStoreCollectiongetActiveCells () const
bool hasCellChanged () const
 Has the player moved to a different cell, since the last frame?
void changeToInteriorCell (const std::string &cellName, const ESM::Position &position)
 Move to interior cell.
void changeToExteriorCell (const ESM::Position &position)
 Move to exterior cell.
void changeToVoid ()
 Change into a void.
void markCellAsUnchanged ()
void update (float duration, bool paused)
void addObjectToScene (const Ptr &ptr)
 Add an object that already exists in the world model to the scene.
void removeObjectFromScene (const Ptr &ptr)
 Remove an object from the scene, but not from the world model.
bool isCellActive (const CellStore &cell)

Private Member Functions

void playerCellChange (CellStore *cell, const ESM::Position &position, bool adjustPlayerPos=true)
void insertCell (Ptr::CellStore &cell, bool rescale, Loading::Listener *loadingListener)
int countRefs (const Ptr::CellStore &cell)

Private Attributes

CellStoremCurrentCell
CellStoreCollection mActiveCells
bool mCellChanged
PhysicsSystemmPhysics
MWRender::RenderingManagermRendering

Member Typedef Documentation


Constructor & Destructor Documentation


Member Function Documentation

void MWWorld::Scene::addObjectToScene ( const Ptr ptr)

Add an object that already exists in the world model to the scene.

void MWWorld::Scene::changeCell ( int  X,
int  Y,
const ESM::Position position,
bool  adjustPlayerPos 
)

Move to exterior cell.

void MWWorld::Scene::changeToInteriorCell ( const std::string &  cellName,
const ESM::Position position 
)

Move to interior cell.

Change into a void.

int MWWorld::Scene::countRefs ( const Ptr::CellStore cell) [private]

Has the player moved to a different cell, since the last frame?

void MWWorld::Scene::insertCell ( Ptr::CellStore cell,
bool  rescale,
Loading::Listener loadingListener 
) [private]
bool MWWorld::Scene::isCellActive ( const CellStore cell)
void MWWorld::Scene::loadCell ( Ptr::CellStore cell,
Loading::Listener loadingListener 
)
Todo:
rescale depending on the state of a new GMST
void MWWorld::Scene::playerCellChange ( MWWorld::CellStore cell,
const ESM::Position position,
bool  adjustPlayerPos = true 
) [private]

Remove an object from the scene, but not from the world model.

void MWWorld::Scene::unloadCell ( CellStoreCollection::iterator  iter)
void MWWorld::Scene::update ( float  duration,
bool  paused 
)

Member Data Documentation


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