|
OpenMW
|
#include <scene.hpp>
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) |
| CellStore * | getCurrentCell () |
| const CellStoreCollection & | getActiveCells () 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 | |
| CellStore * | mCurrentCell |
| CellStoreCollection | mActiveCells |
| bool | mCellChanged |
| PhysicsSystem * | mPhysics |
| MWRender::RenderingManager & | mRendering |
| typedef std::set<CellStore *> MWWorld::Scene::CellStoreCollection |
| MWWorld::Scene::Scene | ( | MWRender::RenderingManager & | rendering, |
| PhysicsSystem * | physics | ||
| ) |
| 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 | ||
| ) |
| void MWWorld::Scene::changeToExteriorCell | ( | const ESM::Position & | position | ) |
Move to exterior cell.
| void MWWorld::Scene::changeToInteriorCell | ( | const std::string & | cellName, |
| const ESM::Position & | position | ||
| ) |
Move to interior cell.
| void MWWorld::Scene::changeToVoid | ( | ) |
Change into a void.
| int MWWorld::Scene::countRefs | ( | const Ptr::CellStore & | cell | ) | [private] |
| const Scene::CellStoreCollection & MWWorld::Scene::getActiveCells | ( | ) | const |
| bool MWWorld::Scene::hasCellChanged | ( | ) | const |
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 | ||
| ) |
| void MWWorld::Scene::markCellAsUnchanged | ( | ) |
| void MWWorld::Scene::playerCellChange | ( | MWWorld::CellStore * | cell, |
| const ESM::Position & | position, | ||
| bool | adjustPlayerPos = true |
||
| ) | [private] |
| void MWWorld::Scene::removeObjectFromScene | ( | const Ptr & | ptr | ) |
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 | ||
| ) |
bool MWWorld::Scene::mCellChanged [private] |
CellStore* MWWorld::Scene::mCurrentCell [private] |
PhysicsSystem* MWWorld::Scene::mPhysics [private] |
1.7.6.1