1 #ifndef GAME_MWWORLD_SCENE_H
2 #define GAME_MWWORLD_SCENE_H
33 class RenderingManager;
91 void unloadCell (CellStoreCollection::iterator iter);
119 void update (
float duration,
bool paused);
const CellStoreCollection & getActiveCells() const
Definition: scene.cpp:493
bool mPreloadDoors
Definition: scene.hpp:68
void preloadCells()
Definition: scene.cpp:645
void markCellAsUnchanged()
Definition: scene.cpp:583
void preloadCell(MWWorld::CellStore *cell, bool preloadSurrounding=false)
Definition: scene.cpp:735
Definition: renderingmanager.hpp:63
std::auto_ptr< CellPreloader > mPreloader
Definition: scene.hpp:60
void addObjectToScene(const Ptr &ptr)
Add an object that already exists in the world model to the scene.
Definition: scene.cpp:599
CellStoreCollection mActiveCells
Definition: scene.hpp:56
void preloadTeleportDoorDestinations()
Definition: scene.cpp:655
bool mCellChanged
Definition: scene.hpp:57
Definition: loadinglistener.hpp:8
Definition: physicssystem.hpp:51
void unloadCell(CellStoreCollection::iterator iter)
Definition: scene.cpp:211
~Scene()
Definition: scene.cpp:484
void getGridCenter(int &cellX, int &cellY)
Definition: scene.cpp:172
int mHalfGridSize
Definition: scene.hpp:62
void removeObjectFromScene(const Ptr &ptr)
Remove an object from the scene, but not from the world model.
Definition: scene.cpp:613
bool hasCellChanged() const
Has the set of active cells changed, since the last frame?
Definition: scene.cpp:488
void playerMoved(const osg::Vec3f &pos)
Definition: scene.cpp:321
Mutable state of a cell.
Definition: cellstore.hpp:53
bool mPreloadEnabled
Definition: scene.hpp:65
bool mPreloadFastTravel
Definition: scene.hpp:69
void changeCellGrid(int X, int Y, bool changeEvent=true)
Definition: scene.cpp:342
void changeToVoid()
Change into a void.
Definition: scene.cpp:312
float mPreloadTimer
Definition: scene.hpp:61
void changeToInteriorCell(const std::string &cellName, const ESM::Position &position, bool adjustPlayerPos, bool changeEvent=true)
Definition: scene.cpp:498
void insertCell(CellStore &cell, bool rescale, Loading::Listener *loadingListener)
Definition: scene.cpp:588
Scene(MWRender::RenderingManager &rendering, MWPhysics::PhysicsSystem *physics)
Definition: scene.cpp:460
CellStore * mCurrentCell
Definition: scene.hpp:55
void preloadExteriorGrid()
Definition: scene.cpp:700
MWPhysics::PhysicsSystem * mPhysics
Definition: scene.hpp:58
CellStore * getCurrentCell()
Definition: scene.cpp:578
void update(float duration, bool paused)
Definition: scene.cpp:194
float mCellLoadingThreshold
Definition: scene.hpp:63
void loadCell(CellStore *cell, Loading::Listener *loadingListener, bool respawn)
Definition: scene.cpp:245
void updateObjectScale(const Ptr &ptr)
Definition: scene.cpp:167
bool isCellActive(const CellStore &cell)
Definition: scene.cpp:623
std::set< CellStore * > CellStoreCollection
Definition: scene.hpp:51
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
float mPreloadDistance
Definition: scene.hpp:64
void changeToExteriorCell(const ESM::Position &position, bool adjustPlayerPos, bool changeEvent=true)
Definition: scene.cpp:563
void preloadFastTravelDestinations()
Definition: scene.cpp:786
void updateObjectRotation(const Ptr &ptr, bool inverseRotationOrder)
Definition: scene.cpp:162
MWRender::RenderingManager & mRendering
Definition: scene.hpp:59
Ptr searchPtrViaActorId(int actorId)
Definition: scene.cpp:635
bool mPreloadExteriorGrid
Definition: scene.hpp:67
void changePlayerCell(CellStore *newCell, const ESM::Position &position, bool adjustPlayerPos)
Definition: scene.cpp:428