OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MWWorld::World Class Reference

The game world and its visual representation. More...

#include <worldimp.hpp>

Inheritance diagram for MWWorld::World:
Collaboration diagram for MWWorld::World:

Public Member Functions

void removeContainerScripts (const Ptr &reference)
 
 World (osgViewer::Viewer *viewer, osg::ref_ptr< osg::Group > rootNode, Resource::ResourceSystem *resourceSystem, const Files::Collections &fileCollections, const std::vector< std::string > &contentFiles, ToUTF8::Utf8Encoder *encoder, const std::map< std::string, std::string > &fallbackMap, int activationDistanceOverride, const std::string &startCell, const std::string &startupScript, const std::string &resourcePath)
 
virtual ~World ()
 
virtual void startNewGame (bool bypass)
 
virtual void preloadCommonAssets ()
 
virtual void clear ()
 
virtual int countSavedGameRecords () const
 
virtual int countSavedGameCells () const
 
virtual void write (ESM::ESMWriter &writer, Loading::Listener &progress) const
 
virtual void readRecord (ESM::ESMReader &reader, uint32_t type, const std::map< int, int > &contentFileMap)
 
virtual CellStoregetExterior (int x, int y)
 
virtual CellStoregetInterior (const std::string &name)
 
virtual CellStoregetCell (const ESM::CellId &id)
 
virtual void useDeathCamera ()
 
virtual void setWaterHeight (const float height)
 
virtual bool toggleWater ()
 
virtual bool toggleWorld ()
 
virtual void adjustSky ()
 
virtual const Fallback::MapgetFallback () const
 
virtual PlayergetPlayer ()
 
virtual MWWorld::Ptr getPlayerPtr ()
 
virtual const MWWorld::ESMStoregetStore () const
 
virtual std::vector
< ESM::ESMReader > & 
getEsmReader ()
 
virtual LocalScriptsgetLocalScripts ()
 
virtual bool hasCellChanged () const
 Has the set of active cells changed, since the last frame? More...
 
virtual bool isCellExterior () const
 
virtual bool isCellQuasiExterior () const
 
virtual osg::Vec2f getNorthVector (const CellStore *cell)
 get north vector for given interior cell More...
 
virtual void getDoorMarkers (MWWorld::CellStore *cell, std::vector< DoorMarker > &out)
 get a list of teleport door markers for a given cell, to be displayed on the local map More...
 
virtual void setGlobalInt (const std::string &name, int value)
 Set value independently from real type. More...
 
virtual void setGlobalFloat (const std::string &name, float value)
 Set value independently from real type. More...
 
virtual int getGlobalInt (const std::string &name) const
 Get value independently from real type. More...
 
virtual float getGlobalFloat (const std::string &name) const
 Get value independently from real type. More...
 
virtual char getGlobalVariableType (const std::string &name) const
 Return ' ', if there is no global variable with this name. More...
 
virtual std::string getCellName (const MWWorld::CellStore *cell=0) const
 
virtual void removeRefScript (MWWorld::RefData *ref)
 
virtual Ptr getPtr (const std::string &name, bool activeOnly)
 
virtual Ptr searchPtr (const std::string &name, bool activeOnly)
 
virtual Ptr searchPtrViaActorId (int actorId)
 Search is limited to the active cells. More...
 
virtual MWWorld::Ptr findContainer (const MWWorld::ConstPtr &ptr)
 
virtual void adjustPosition (const Ptr &ptr, bool force)
 
virtual void fixPosition (const Ptr &actor)
 Attempt to fix position so that the Ptr is no longer inside collision geometry. More...
 
virtual void enable (const Ptr &ptr)
 
virtual void disable (const Ptr &ptr)
 
virtual void advanceTime (double hours, bool incremental=false)
 Advance in-game time. More...
 
virtual void setHour (double hour)
 Set in-game time hour. More...
 
virtual void setMonth (int month)
 Set in-game time month. More...
 
virtual void setDay (int day)
 Set in-game time day. More...
 
virtual int getDay () const
 
virtual int getMonth () const
 
virtual int getYear () const
 
virtual std::string getMonthName (int month=-1) const
 Return name of month (-1: current month) More...
 
virtual TimeStamp getTimeStamp () const
 Return current in-game time stamp. More...
 
virtual bool toggleSky ()
 
virtual void changeWeather (const std::string &region, const unsigned int id)
 
virtual int getCurrentWeather () const
 
virtual int getMasserPhase () const
 
virtual int getSecundaPhase () const
 
virtual void setMoonColour (bool red)
 
virtual void modRegion (const std::string &regionid, const std::vector< char > &chances)
 
virtual float getTimeScaleFactor () const
 
virtual void changeToInteriorCell (const std::string &cellName, const ESM::Position &position, bool adjustPlayerPos, bool changeEvent=true)
 
virtual void changeToExteriorCell (const ESM::Position &position, bool adjustPlayerPos, bool changeEvent=true)
 
virtual void changeToCell (const ESM::CellId &cellId, const ESM::Position &position, bool adjustPlayerPos, bool changeEvent=true)
 
virtual const ESM::CellgetExterior (const std::string &cellName) const
 Return a cell matching the given name or a 0-pointer, if there is no such cell. More...
 
virtual void markCellAsUnchanged ()
 
virtual MWWorld::Ptr getFacedObject ()
 Return pointer to the object the player is looking at, if it is within activation range. More...
 
virtual float getDistanceToFacedObject ()
 
virtual std::pair
< MWWorld::Ptr, osg::Vec3f > 
getHitContact (const MWWorld::ConstPtr &ptr, float distance)
 
virtual void deleteObject (const Ptr &ptr)
 
virtual void undeleteObject (const Ptr &ptr)
 
virtual MWWorld::Ptr moveObject (const Ptr &ptr, float x, float y, float z)
 
virtual MWWorld::Ptr moveObject (const Ptr &ptr, CellStore *newCell, float x, float y, float z, bool movePhysics=true)
 
virtual void scaleObject (const Ptr &ptr, float scale)
 
virtual void rotateObject (const Ptr &ptr, float x, float y, float z, bool adjust=false)
 
virtual MWWorld::Ptr placeObject (const MWWorld::ConstPtr &ptr, MWWorld::CellStore *cell, ESM::Position pos)
 Place an object. Makes a copy of the Ptr. More...
 
virtual MWWorld::Ptr safePlaceObject (const MWWorld::ConstPtr &ptr, const MWWorld::ConstPtr &referenceObject, MWWorld::CellStore *referenceCell, int direction, float distance)
 
virtual float getMaxActivationDistance ()
 
virtual void indexToPosition (int cellX, int cellY, float &x, float &y, bool centre=false) const
 Convert cell numbers to position. More...
 
virtual void positionToIndex (float x, float y, int &cellX, int &cellY) const
 Convert position to cell numbers. More...
 
virtual void queueMovement (const Ptr &ptr, const osg::Vec3f &velocity)
 
virtual bool castRay (float x1, float y1, float z1, float x2, float y2, float z2)
 cast a Ray and return true if there is an object in the ray path. More...
 
virtual bool toggleCollisionMode ()
 
virtual bool toggleRenderMode (MWRender::RenderMode mode)
 
virtual const ESM::PotioncreateRecord (const ESM::Potion &record)
 
virtual const ESM::SpellcreateRecord (const ESM::Spell &record)
 
virtual const ESM::ClasscreateRecord (const ESM::Class &record)
 
virtual const ESM::CellcreateRecord (const ESM::Cell &record)
 
virtual const ESM::NPCcreateRecord (const ESM::NPC &record)
 
virtual const ESM::ArmorcreateRecord (const ESM::Armor &record)
 
virtual const ESM::WeaponcreateRecord (const ESM::Weapon &record)
 
virtual const ESM::ClothingcreateRecord (const ESM::Clothing &record)
 
virtual const ESM::EnchantmentcreateRecord (const ESM::Enchantment &record)
 
virtual const ESM::BookcreateRecord (const ESM::Book &record)
 
virtual const
ESM::CreatureLevList
createOverrideRecord (const ESM::CreatureLevList &record)
 
virtual const ESM::ItemLevListcreateOverrideRecord (const ESM::ItemLevList &record)
 
virtual void update (float duration, bool paused)
 
virtual MWWorld::Ptr placeObject (const MWWorld::ConstPtr &object, float cursorX, float cursorY, int amount)
 
virtual MWWorld::Ptr dropObjectOnGround (const MWWorld::Ptr &actor, const MWWorld::ConstPtr &object, int amount)
 
virtual bool canPlaceObject (float cursorX, float cursorY)
 
virtual void processChangedSettings (const Settings::CategorySettingVector &settings)
 
virtual bool isFlying (const MWWorld::Ptr &ptr) const
 
virtual bool isSlowFalling (const MWWorld::Ptr &ptr) const
 
virtual bool isSubmerged (const MWWorld::ConstPtr &object) const
 Is the head of the creature underwater? More...
 
virtual bool isSwimming (const MWWorld::ConstPtr &object) const
 
virtual bool isUnderwater (const MWWorld::CellStore *cell, const osg::Vec3f &pos) const
 
virtual bool isWading (const MWWorld::ConstPtr &object) const
 
virtual bool isWaterWalkingCastableOnTarget (const MWWorld::ConstPtr &target) const
 
virtual bool isOnGround (const MWWorld::Ptr &ptr) const
 
virtual osg::Matrixf getActorHeadTransform (const MWWorld::ConstPtr &actor) const
 
virtual void togglePOV ()
 
virtual bool isFirstPerson () const
 
virtual void togglePreviewMode (bool enable)
 
virtual bool toggleVanityMode (bool enable)
 
virtual void allowVanityMode (bool allow)
 
virtual void togglePlayerLooking (bool enable)
 
virtual void changeVanityModeScale (float factor)
 
virtual bool vanityRotateCamera (float *rot)
 
virtual void setCameraDistance (float dist, bool adjust=false, bool override=true)
 
virtual void setupPlayer ()
 
virtual void renderPlayer ()
 
virtual void activateDoor (const MWWorld::Ptr &door)
 open or close a non-teleport door (depending on current state) More...
 
virtual void activateDoor (const MWWorld::Ptr &door, int state)
 
virtual bool getPlayerStandingOn (const MWWorld::ConstPtr &object)
 
virtual bool getActorStandingOn (const MWWorld::ConstPtr &object)
 
virtual bool getPlayerCollidingWith (const MWWorld::ConstPtr &object)
 
virtual bool getActorCollidingWith (const MWWorld::ConstPtr &object)
 
virtual void hurtStandingActors (const MWWorld::ConstPtr &object, float dmgPerSecond)
 
virtual void hurtCollidingActors (const MWWorld::ConstPtr &object, float dmgPerSecond)
 
virtual float getWindSpeed ()
 
virtual void getContainersOwnedBy (const MWWorld::ConstPtr &npc, std::vector< MWWorld::Ptr > &out)
 get all containers in active cells owned by this Npc More...
 
virtual void getItemsOwnedBy (const MWWorld::ConstPtr &npc, std::vector< MWWorld::Ptr > &out)
 get all items in active cells owned by this Npc More...
 
virtual bool getLOS (const MWWorld::ConstPtr &actor, const MWWorld::ConstPtr &targetActor)
 get Line of Sight (morrowind stupid implementation) More...
 
virtual float getDistToNearestRayHit (const osg::Vec3f &from, const osg::Vec3f &dir, float maxDist, bool includeWater=false)
 
virtual void enableActorCollision (const MWWorld::Ptr &actor, bool enable)
 
virtual int canRest ()
 
virtual MWRender::AnimationgetAnimation (const MWWorld::Ptr &ptr)
 
virtual const MWRender::AnimationgetAnimation (const MWWorld::ConstPtr &ptr) const
 
virtual void reattachPlayerCamera ()
 
virtual void screenshot (osg::Image *image, int w, int h)
 
virtual bool findExteriorPosition (const std::string &name, ESM::Position &pos)
 
virtual bool findInteriorPosition (const std::string &name, ESM::Position &pos)
 
virtual void enableTeleporting (bool enable)
 Enables or disables use of teleport spell effects (recall, intervention, etc). More...
 
virtual bool isTeleportingEnabled () const
 Returns true if teleport spell effects are allowed. More...
 
virtual void enableLevitation (bool enable)
 Enables or disables use of levitation spell effect. More...
 
virtual bool isLevitationEnabled () const
 Returns true if levitation spell effect is allowed. More...
 
virtual bool getGodModeState ()
 
virtual bool toggleGodMode ()
 
virtual bool toggleScripts ()
 
virtual bool getScriptsEnabled () const
 
virtual bool startSpellCast (const MWWorld::Ptr &actor)
 startSpellCast attempt to start casting a spell. Might fail immediately if conditions are not met. More...
 
virtual void castSpell (const MWWorld::Ptr &actor)
 Cast the actual spell, should be called mid-animation. More...
 
virtual void launchMagicBolt (const std::string &spellId, bool stack, const ESM::EffectList &effects, const MWWorld::Ptr &caster, const std::string &sourceName, const osg::Vec3f &fallbackDirection)
 
virtual void launchProjectile (MWWorld::Ptr actor, MWWorld::ConstPtr projectile, const osg::Vec3f &worldPos, const osg::Quat &orient, MWWorld::Ptr bow, float speed, float attackStrength)
 
virtual const std::vector
< std::string > & 
getContentFiles () const
 
virtual void breakInvisibility (const MWWorld::Ptr &actor)
 
virtual bool isDark () const
 
virtual bool findInteriorPositionInWorldSpace (const MWWorld::CellStore *cell, osg::Vec3f &result)
 
virtual void teleportToClosestMarker (const MWWorld::Ptr &ptr, const std::string &id)
 
virtual void listDetectedReferences (const MWWorld::Ptr &ptr, std::vector< MWWorld::Ptr > &out, DetectionType type)
 
virtual void updateDialogueGlobals ()
 
virtual void confiscateStolenItems (const MWWorld::Ptr &ptr)
 Moves all stolen items from ptr to the closest evidence chest. More...
 
virtual void goToJail ()
 
virtual void spawnRandomCreature (const std::string &creatureList)
 Spawn a random creature from a levelled list next to the player. More...
 
virtual void spawnBloodEffect (const MWWorld::Ptr &ptr, const osg::Vec3f &worldPosition)
 Spawn a blood effect for ptr at worldPosition. More...
 
virtual void spawnEffect (const std::string &model, const std::string &textureOverride, const osg::Vec3f &worldPos)
 
virtual void explodeSpell (const osg::Vec3f &origin, const ESM::EffectList &effects, const MWWorld::Ptr &caster, const MWWorld::Ptr &ignore, ESM::RangeType rangeType, const std::string &id, const std::string &sourceName, const bool fromProjectile=false)
 
virtual void activate (const MWWorld::Ptr &object, const MWWorld::Ptr &actor)
 
virtual bool isInStorm () const
 
virtual osg::Vec3f getStormDirection () const
 
virtual void resetActors ()
 Resets all actors in the current active cells to their original location within that cell. More...
 
virtual bool isWalkingOnWater (const MWWorld::ConstPtr &actor) const
 
virtual osg::Vec3f aimToTarget (const MWWorld::ConstPtr &actor, const MWWorld::ConstPtr &target)
 
virtual float getHitDistance (const MWWorld::ConstPtr &actor, const MWWorld::ConstPtr &target)
 Return the distance between actor's weapon and target's collision box. More...
 
virtual bool isPlayerInJail () const
 
virtual float getTerrainHeightAt (const osg::Vec3f &worldPos) const
 Return terrain height at worldPos position. More...
 
virtual osg::Vec3f getHalfExtents (const MWWorld::ConstPtr &actor, bool rendering=false) const
 Return physical or rendering half extents of the given actor. More...
 
- Public Member Functions inherited from MWBase::World
 World ()
 
virtual void processChangedSettings (const std::set< std::pair< std::string, std::string > > &settings)=0
 

Private Member Functions

 World (const World &)
 
Worldoperator= (const World &)
 
void updateWeather (float duration, bool paused=false)
 
int getDaysPerMonth (int month) const
 
void rotateObjectImp (const Ptr &ptr, const osg::Vec3f &rot, bool adjust)
 
Ptr moveObjectImp (const Ptr &ptr, float x, float y, float z, bool movePhysics=true)
 
Ptr copyObjectToCell (const ConstPtr &ptr, CellStore *cell, ESM::Position pos, int count, bool adjustPos)
 
void updateSoundListener ()
 
void updateWindowManager ()
 
void updatePlayer (bool paused)
 
MWWorld::Ptr getFacedObject (float maxDistance, bool ignorePlayer=true)
 
void addContainerScripts (const Ptr &reference, CellStore *cell)
 
void PCDropped (const Ptr &item)
 
void processDoors (float duration)
 Run physics simulation and modify world accordingly. More...
 
void doPhysics (float duration)
 Run physics simulation and modify world accordingly. More...
 
void ensureNeededRecords ()
 
void fillGlobalVariables ()
 
void loadContentFiles (const Files::Collections &fileCollections, const std::vector< std::string > &content, ContentLoader &contentLoader)
 loadContentFiles - Loads content files (esm,esp,omwgame,omwaddon) More...
 
bool isUnderwater (const MWWorld::ConstPtr &object, const float heightRatio) const
 helper function for implementing isSwimming(), isSubmerged(), isWading() More...
 
float feetToGameUnits (float feet)
 
float getActivationDistancePlusTelekinesis ()
 
MWWorld::ConstPtr getClosestMarker (const MWWorld::Ptr &ptr, const std::string &id)
 
MWWorld::ConstPtr getClosestMarkerFromExteriorPosition (const osg::Vec3f &worldPos, const std::string &id)
 

Private Attributes

Resource::ResourceSystemmResourceSystem
 
Fallback::Map mFallback
 
MWRender::RenderingManagermRendering
 
MWWorld::WeatherManagermWeatherManager
 
MWWorld::ScenemWorldScene
 
MWWorld::PlayermPlayer
 
std::vector< ESM::ESMReadermEsm
 
MWWorld::ESMStore mStore
 
LocalScripts mLocalScripts
 
MWWorld::Globals mGlobalVariables
 
MWPhysics::PhysicsSystemmPhysics
 
bool mSky
 
ESM::VariantmGameHour
 
ESM::VariantmDaysPassed
 
ESM::VariantmDay
 
ESM::VariantmMonth
 
ESM::VariantmYear
 
ESM::VariantmTimeScale
 
Cells mCells
 
std::string mCurrentWorldSpace
 
boost::shared_ptr
< ProjectileManager
mProjectileManager
 
bool mGodMode
 
bool mScriptsEnabled
 
std::vector< std::string > mContentFiles
 
int mActivationDistanceOverride
 
std::string mStartupScript
 
std::map< MWWorld::Ptr, intmDoorStates
 only holds doors that are currently moving. 1 = opening, 2 = closing More...
 
std::string mStartCell
 
float mSwimHeightScale
 
float mDistanceToFacedObject
 
bool mTeleportEnabled
 
bool mLevitationEnabled
 
bool mGoToJail
 
int mDaysInPrison
 

Additional Inherited Members

- Public Types inherited from MWBase::World
enum  DetectionType { Detect_Enchantment, Detect_Key, Detect_Creature }
 

Detailed Description

The game world and its visual representation.

Constructor & Destructor Documentation

MWWorld::World::World ( const World )
private
MWWorld::World::World ( osgViewer::Viewer *  viewer,
osg::ref_ptr< osg::Group >  rootNode,
Resource::ResourceSystem resourceSystem,
const Files::Collections fileCollections,
const std::vector< std::string > &  contentFiles,
ToUTF8::Utf8Encoder encoder,
const std::map< std::string, std::string > &  fallbackMap,
int  activationDistanceOverride,
const std::string &  startCell,
const std::string &  startupScript,
const std::string &  resourcePath 
)

Here is the call graph for this function:

MWWorld::World::~World ( )
virtual

Reimplemented from MWBase::World.

Member Function Documentation

void MWWorld::World::activate ( const MWWorld::Ptr object,
const MWWorld::Ptr actor 
)
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::activateDoor ( const MWWorld::Ptr door)
virtual

open or close a non-teleport door (depending on current state)

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::activateDoor ( const MWWorld::Ptr door,
int  state 
)
virtual

update movement state of a non-teleport door as specified

Parameters
statesee MWClass::setDoorState
Note
throws an exception when invoked on a teleport door

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::addContainerScripts ( const Ptr reference,
CellStore cell 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::adjustPosition ( const Ptr ptr,
bool  force 
)
virtual

Adjust position after load to be on ground. Must be called after model load.

Parameters
forcedo this even if the ptr is flying

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::adjustSky ( )
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::advanceTime ( double  hours,
bool  incremental = false 
)
virtual

Advance in-game time.

Implements MWBase::World.

Here is the call graph for this function:

osg::Vec3f MWWorld::World::aimToTarget ( const MWWorld::ConstPtr actor,
const MWWorld::ConstPtr target 
)
virtual

Return a vector aiming the actor's weapon towards a target.

Note
The length of the vector is the distance between actor and target.

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::allowVanityMode ( bool  allow)
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::breakInvisibility ( const MWWorld::Ptr actor)
virtual

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

bool MWWorld::World::canPlaceObject ( float  cursorX,
float  cursorY 
)
virtual
Returns
true if it is possible to place on object at specified cursor location

Implements MWBase::World.

Here is the call graph for this function:

int MWWorld::World::canRest ( )
virtual

check if the player is allowed to rest
0 - yes
1 - only waiting
2 - player is underwater
3 - enemies are nearby (not implemented)

Implements MWBase::World.

Here is the call graph for this function:

bool MWWorld::World::castRay ( float  x1,
float  y1,
float  z1,
float  x2,
float  y2,
float  z2 
)
virtual

cast a Ray and return true if there is an object in the ray path.

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::castSpell ( const MWWorld::Ptr actor)
virtual

Cast the actual spell, should be called mid-animation.

Parameters
actor

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::changeToCell ( const ESM::CellId cellId,
const ESM::Position position,
bool  adjustPlayerPos,
bool  changeEvent = true 
)
virtual
Parameters
changeEventIf false, do not trigger cell change flag or detect worldspace changes

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::changeToExteriorCell ( const ESM::Position position,
bool  adjustPlayerPos,
bool  changeEvent = true 
)
virtual

Move to exterior cell.

Parameters
changeEventIf false, do not trigger cell change flag or detect worldspace changes

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::changeToInteriorCell ( const std::string &  cellName,
const ESM::Position position,
bool  adjustPlayerPos,
bool  changeEvent = true 
)
virtual

Move to interior cell.

Parameters
changeEventIf false, do not trigger cell change flag or detect worldspace changes

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::changeVanityModeScale ( float  factor)
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::changeWeather ( const std::string &  region,
const unsigned int  id 
)
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::clear ( )
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::confiscateStolenItems ( const MWWorld::Ptr ptr)
virtual

Moves all stolen items from ptr to the closest evidence chest.

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

Ptr MWWorld::World::copyObjectToCell ( const ConstPtr ptr,
CellStore cell,
ESM::Position  pos,
int  count,
bool  adjustPos 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

int MWWorld::World::countSavedGameCells ( ) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

int MWWorld::World::countSavedGameRecords ( ) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

const ESM::CreatureLevList * MWWorld::World::createOverrideRecord ( const ESM::CreatureLevList record)
virtual

Write this record to the ESM store, allowing it to override a pre-existing record with the same ID.

Returns
pointer to created record

Implements MWBase::World.

Here is the call graph for this function:

const ESM::ItemLevList * MWWorld::World::createOverrideRecord ( const ESM::ItemLevList record)
virtual

Write this record to the ESM store, allowing it to override a pre-existing record with the same ID.

Returns
pointer to created record

Implements MWBase::World.

Here is the call graph for this function:

const ESM::Potion * MWWorld::World::createRecord ( const ESM::Potion record)
virtual

Create a new record (of type potion) in the ESM store.

Returns
pointer to created record

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

const ESM::Spell * MWWorld::World::createRecord ( const ESM::Spell record)
virtual

Create a new record (of type spell) in the ESM store.

Returns
pointer to created record

Implements MWBase::World.

Here is the call graph for this function:

const ESM::Class * MWWorld::World::createRecord ( const ESM::Class record)
virtual

Create a new record (of type class) in the ESM store.

Returns
pointer to created record

Implements MWBase::World.

Here is the call graph for this function:

const ESM::Cell * MWWorld::World::createRecord ( const ESM::Cell record)
virtual

Create a new record (of type cell) in the ESM store.

Returns
pointer to created record

Implements MWBase::World.

Here is the call graph for this function:

const ESM::NPC * MWWorld::World::createRecord ( const ESM::NPC record)
virtual

Create a new record (of type npc) in the ESM store.

Returns
pointer to created record

Implements MWBase::World.

Here is the call graph for this function:

const ESM::Armor * MWWorld::World::createRecord ( const ESM::Armor record)
virtual

Create a new record (of type armor) in the ESM store.

Returns
pointer to created record

Implements MWBase::World.

Here is the call graph for this function:

const ESM::Weapon * MWWorld::World::createRecord ( const ESM::Weapon record)
virtual

Create a new record (of type weapon) in the ESM store.

Returns
pointer to created record

Implements MWBase::World.

Here is the call graph for this function:

const ESM::Clothing * MWWorld::World::createRecord ( const ESM::Clothing record)
virtual

Create a new record (of type clothing) in the ESM store.

Returns
pointer to created record

Implements MWBase::World.

Here is the call graph for this function:

const ESM::Enchantment * MWWorld::World::createRecord ( const ESM::Enchantment record)
virtual

Create a new record (of type enchantment) in the ESM store.

Returns
pointer to created record

Implements MWBase::World.

Here is the call graph for this function:

const ESM::Book * MWWorld::World::createRecord ( const ESM::Book record)
virtual

Create a new record (of type book) in the ESM store.

Returns
pointer to created record

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::deleteObject ( const Ptr ptr)
virtual
Note
No-op for items in containers. Use ContainerStore::removeItem instead.

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::disable ( const Ptr ptr)
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::doPhysics ( float  duration)
private

Run physics simulation and modify world accordingly.

Here is the call graph for this function:

Here is the caller graph for this function:

MWWorld::Ptr MWWorld::World::dropObjectOnGround ( const MWWorld::Ptr actor,
const MWWorld::ConstPtr object,
int  amount 
)
virtual

copy and place an object into the gameworld at the given actor's position

Parameters
actorgiving the dropped object position
object
numberof objects to place

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::enable ( const Ptr ptr)
virtual

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::enableActorCollision ( const MWWorld::Ptr actor,
bool  enable 
)
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::enableLevitation ( bool  enable)
virtual

Enables or disables use of levitation spell effect.

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::enableTeleporting ( bool  enable)
virtual

Enables or disables use of teleport spell effects (recall, intervention, etc).

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::ensureNeededRecords ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::explodeSpell ( const osg::Vec3f &  origin,
const ESM::EffectList effects,
const MWWorld::Ptr caster,
const MWWorld::Ptr ignore,
ESM::RangeType  rangeType,
const std::string &  id,
const std::string &  sourceName,
const bool  fromProjectile = false 
)
virtual

Implements MWBase::World.

Here is the call graph for this function:

float MWWorld::World::feetToGameUnits ( float  feet)
private

Here is the caller graph for this function:

void MWWorld::World::fillGlobalVariables ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

Ptr MWWorld::World::findContainer ( const MWWorld::ConstPtr ptr)
virtual

Return a pointer to a liveCellRef which contains ptr.

Note
Search is limited to the active cells.

Implements MWBase::World.

Here is the call graph for this function:

bool MWWorld::World::findExteriorPosition ( const std::string &  name,
ESM::Position pos 
)
virtual

Find center of exterior cell above land surface

Returns
false if exterior with given name not exists, true otherwise

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

bool MWWorld::World::findInteriorPosition ( const std::string &  name,
ESM::Position pos 
)
virtual

Find position in interior cell near door entrance

Returns
false if interior with given name not exists, true otherwise
Note
Using any door pointed to the interior, not the one pointed to current door.

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

bool MWWorld::World::findInteriorPositionInWorldSpace ( const MWWorld::CellStore cell,
osg::Vec3f &  result 
)
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::fixPosition ( const Ptr actor)
virtual

Attempt to fix position so that the Ptr is no longer inside collision geometry.

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

float MWWorld::World::getActivationDistancePlusTelekinesis ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

bool MWWorld::World::getActorCollidingWith ( const MWWorld::ConstPtr object)
virtual
Returns
true if any actor is colliding with object

Implements MWBase::World.

Here is the call graph for this function:

osg::Matrixf MWWorld::World::getActorHeadTransform ( const MWWorld::ConstPtr actor) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

bool MWWorld::World::getActorStandingOn ( const MWWorld::ConstPtr object)
virtual
Returns
true if any actor is standing on object

Implements MWBase::World.

Here is the call graph for this function:

MWRender::Animation * MWWorld::World::getAnimation ( const MWWorld::Ptr ptr)
virtual
Todo:
Probably shouldn't be here

Implements MWBase::World.

Here is the call graph for this function:

const MWRender::Animation * MWWorld::World::getAnimation ( const MWWorld::ConstPtr ptr) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

CellStore * MWWorld::World::getCell ( const ESM::CellId id)
virtual

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string MWWorld::World::getCellName ( const MWWorld::CellStore cell = 0) const
virtual

Return name of the cell.

Note
If cell==0, the cell the player is currently in will be used instead to generate a name.

Implements MWBase::World.

Here is the call graph for this function:

MWWorld::ConstPtr MWWorld::World::getClosestMarker ( const MWWorld::Ptr ptr,
const std::string &  id 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

MWWorld::ConstPtr MWWorld::World::getClosestMarkerFromExteriorPosition ( const osg::Vec3f &  worldPos,
const std::string &  id 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::getContainersOwnedBy ( const MWWorld::ConstPtr npc,
std::vector< MWWorld::Ptr > &  out 
)
virtual

get all containers in active cells owned by this Npc

Implements MWBase::World.

Here is the call graph for this function:

const std::vector< std::string > & MWWorld::World::getContentFiles ( ) const
virtual

Implements MWBase::World.

int MWWorld::World::getCurrentWeather ( ) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

int MWWorld::World::getDay ( ) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

int MWWorld::World::getDaysPerMonth ( int  month) const
private

Here is the caller graph for this function:

float MWWorld::World::getDistanceToFacedObject ( )
virtual

Implements MWBase::World.

float MWWorld::World::getDistToNearestRayHit ( const osg::Vec3f &  from,
const osg::Vec3f &  dir,
float  maxDist,
bool  includeWater = false 
)
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::getDoorMarkers ( MWWorld::CellStore cell,
std::vector< DoorMarker > &  out 
)
virtual

get a list of teleport door markers for a given cell, to be displayed on the local map

Implements MWBase::World.

Here is the call graph for this function:

std::vector< ESM::ESMReader > & MWWorld::World::getEsmReader ( )
virtual

Implements MWBase::World.

CellStore * MWWorld::World::getExterior ( int  x,
int  y 
)
virtual

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

const ESM::Cell * MWWorld::World::getExterior ( const std::string &  cellName) const
virtual

Return a cell matching the given name or a 0-pointer, if there is no such cell.

Implements MWBase::World.

Here is the call graph for this function:

MWWorld::Ptr MWWorld::World::getFacedObject ( float  maxDistance,
bool  ignorePlayer = true 
)
private

Here is the call graph for this function:

MWWorld::Ptr MWWorld::World::getFacedObject ( )
virtual

Return pointer to the object the player is looking at, if it is within activation range.

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

const Fallback::Map * MWWorld::World::getFallback ( ) const
virtual

Implements MWBase::World.

Here is the caller graph for this function:

float MWWorld::World::getGlobalFloat ( const std::string &  name) const
virtual

Get value independently from real type.

Implements MWBase::World.

int MWWorld::World::getGlobalInt ( const std::string &  name) const
virtual

Get value independently from real type.

Implements MWBase::World.

char MWWorld::World::getGlobalVariableType ( const std::string &  name) const
virtual

Return ' ', if there is no global variable with this name.

Implements MWBase::World.

Here is the call graph for this function:

bool MWWorld::World::getGodModeState ( )
virtual

Implements MWBase::World.

Here is the caller graph for this function:

osg::Vec3f MWWorld::World::getHalfExtents ( const MWWorld::ConstPtr actor,
bool  rendering = false 
) const
virtual

Return physical or rendering half extents of the given actor.

Implements MWBase::World.

Here is the call graph for this function:

std::pair< MWWorld::Ptr, osg::Vec3f > MWWorld::World::getHitContact ( const MWWorld::ConstPtr ptr,
float  distance 
)
virtual

Returns a pointer to the object the provided object would hit (if within the specified distance), and the point where the hit occurs. This will attempt to use the "Head" node as a basis.

Implements MWBase::World.

Here is the call graph for this function:

float MWWorld::World::getHitDistance ( const MWWorld::ConstPtr actor,
const MWWorld::ConstPtr target 
)
virtual

Return the distance between actor's weapon and target's collision box.

Implements MWBase::World.

Here is the call graph for this function:

CellStore * MWWorld::World::getInterior ( const std::string &  name)
virtual

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::getItemsOwnedBy ( const MWWorld::ConstPtr npc,
std::vector< MWWorld::Ptr > &  out 
)
virtual

get all items in active cells owned by this Npc

Implements MWBase::World.

Here is the call graph for this function:

LocalScripts & MWWorld::World::getLocalScripts ( )
virtual

Implements MWBase::World.

Here is the caller graph for this function:

bool MWWorld::World::getLOS ( const MWWorld::ConstPtr actor,
const MWWorld::ConstPtr targetActor 
)
virtual

get Line of Sight (morrowind stupid implementation)

Implements MWBase::World.

Here is the call graph for this function:

int MWWorld::World::getMasserPhase ( ) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

float MWWorld::World::getMaxActivationDistance ( )
virtual

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

int MWWorld::World::getMonth ( ) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string MWWorld::World::getMonthName ( int  month = -1) const
virtual

Return name of month (-1: current month)

Implements MWBase::World.

Here is the call graph for this function:

osg::Vec2f MWWorld::World::getNorthVector ( const CellStore cell)
virtual

get north vector for given interior cell

Implements MWBase::World.

Here is the call graph for this function:

MWWorld::Player & MWWorld::World::getPlayer ( )
virtual

Implements MWBase::World.

bool MWWorld::World::getPlayerCollidingWith ( const MWWorld::ConstPtr object)
virtual
Returns
true if the player is colliding with object

Implements MWBase::World.

Here is the call graph for this function:

MWWorld::Ptr MWWorld::World::getPlayerPtr ( )
virtual

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

bool MWWorld::World::getPlayerStandingOn ( const MWWorld::ConstPtr object)
virtual
Returns
true if the player is standing on object

Implements MWBase::World.

Here is the call graph for this function:

Ptr MWWorld::World::getPtr ( const std::string &  name,
bool  activeOnly 
)
virtual

Return a pointer to a liveCellRef with the given name.

Parameters
activeOnlydo non search inactive cells.

Implements MWBase::World.

Here is the call graph for this function:

bool MWWorld::World::getScriptsEnabled ( ) const
virtual

Implements MWBase::World.

int MWWorld::World::getSecundaPhase ( ) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

const MWWorld::ESMStore & MWWorld::World::getStore ( ) const
virtual

Implements MWBase::World.

Here is the caller graph for this function:

osg::Vec3f MWWorld::World::getStormDirection ( ) const
virtual
See Also
MWWorld::WeatherManager::getStormDirection

Implements MWBase::World.

Here is the call graph for this function:

float MWWorld::World::getTerrainHeightAt ( const osg::Vec3f &  worldPos) const
virtual

Return terrain height at worldPos position.

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

float MWWorld::World::getTimeScaleFactor ( ) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

TimeStamp MWWorld::World::getTimeStamp ( ) const
virtual

Return current in-game time stamp.

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

float MWWorld::World::getWindSpeed ( )
virtual

Implements MWBase::World.

Here is the call graph for this function:

int MWWorld::World::getYear ( ) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::goToJail ( )
virtual

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

bool MWWorld::World::hasCellChanged ( ) const
virtual

Has the set of active cells changed, since the last frame?

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::hurtCollidingActors ( const MWWorld::ConstPtr object,
float  dmgPerSecond 
)
virtual

Apply a health difference to any actors colliding with object. To hurt actors, healthPerSecond should be a positive value. For a negative value, actors will be healed.

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::hurtStandingActors ( const MWWorld::ConstPtr object,
float  dmgPerSecond 
)
virtual

Apply a health difference to any actors standing on object. To hurt actors, healthPerSecond should be a positive value. For a negative value, actors will be healed.

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::indexToPosition ( int  cellX,
int  cellY,
float &  x,
float &  y,
bool  centre = false 
) const
virtual

Convert cell numbers to position.

Implements MWBase::World.

Here is the caller graph for this function:

bool MWWorld::World::isCellExterior ( ) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

bool MWWorld::World::isCellQuasiExterior ( ) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

bool MWWorld::World::isDark ( ) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

bool MWWorld::World::isFirstPerson ( ) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

bool MWWorld::World::isFlying ( const MWWorld::Ptr ptr) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

bool MWWorld::World::isInStorm ( ) const
virtual
See Also
MWWorld::WeatherManager::isInStorm

Implements MWBase::World.

Here is the call graph for this function:

bool MWWorld::World::isLevitationEnabled ( ) const
virtual

Returns true if levitation spell effect is allowed.

Implements MWBase::World.

Here is the caller graph for this function:

bool MWWorld::World::isOnGround ( const MWWorld::Ptr ptr) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

bool MWWorld::World::isPlayerInJail ( ) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

bool MWWorld::World::isSlowFalling ( const MWWorld::Ptr ptr) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

bool MWWorld::World::isSubmerged ( const MWWorld::ConstPtr object) const
virtual

Is the head of the creature underwater?

Implements MWBase::World.

Here is the call graph for this function:

bool MWWorld::World::isSwimming ( const MWWorld::ConstPtr object) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

bool MWWorld::World::isTeleportingEnabled ( ) const
virtual

Returns true if teleport spell effects are allowed.

Implements MWBase::World.

bool MWWorld::World::isUnderwater ( const MWWorld::ConstPtr object,
const float  heightRatio 
) const
private

helper function for implementing isSwimming(), isSubmerged(), isWading()

Here is the call graph for this function:

Here is the caller graph for this function:

bool MWWorld::World::isUnderwater ( const MWWorld::CellStore cell,
const osg::Vec3f &  pos 
) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

bool MWWorld::World::isWading ( const MWWorld::ConstPtr object) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

bool MWWorld::World::isWalkingOnWater ( const MWWorld::ConstPtr actor) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

bool MWWorld::World::isWaterWalkingCastableOnTarget ( const MWWorld::ConstPtr target) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::launchMagicBolt ( const std::string &  spellId,
bool  stack,
const ESM::EffectList effects,
const MWWorld::Ptr caster,
const std::string &  sourceName,
const osg::Vec3f &  fallbackDirection 
)
virtual

Implements MWBase::World.

void MWWorld::World::launchProjectile ( MWWorld::Ptr  actor,
MWWorld::ConstPtr  projectile,
const osg::Vec3f &  worldPos,
const osg::Quat &  orient,
MWWorld::Ptr  bow,
float  speed,
float  attackStrength 
)
virtual

Implements MWBase::World.

void MWWorld::World::listDetectedReferences ( const MWWorld::Ptr ptr,
std::vector< MWWorld::Ptr > &  out,
DetectionType  type 
)
virtual

List all references (filtered by type) detected by ptr. The range is determined by the current magnitude of the "Detect X" magic effect belonging to type.

Note
This also works for references in containers.

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::loadContentFiles ( const Files::Collections fileCollections,
const std::vector< std::string > &  content,
ContentLoader contentLoader 
)
private

loadContentFiles - Loads content files (esm,esp,omwgame,omwaddon)

Parameters
fileCollections-Container which holds content file names and their paths
content- Container which holds content file names
contentLoader-

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::markCellAsUnchanged ( )
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::modRegion ( const std::string &  regionid,
const std::vector< char > &  chances 
)
virtual

Implements MWBase::World.

Here is the call graph for this function:

MWWorld::Ptr MWWorld::World::moveObject ( const Ptr ptr,
float  x,
float  y,
float  z 
)
virtual
Returns
an updated Ptr in case the Ptr's cell changes

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

MWWorld::Ptr MWWorld::World::moveObject ( const Ptr ptr,
CellStore newCell,
float  x,
float  y,
float  z,
bool  movePhysics = true 
)
virtual
Returns
an updated Ptr

Implements MWBase::World.

Here is the call graph for this function:

MWWorld::Ptr MWWorld::World::moveObjectImp ( const Ptr ptr,
float  x,
float  y,
float  z,
bool  movePhysics = true 
)
private
Returns
an updated Ptr in case the Ptr's cell changes

Here is the call graph for this function:

Here is the caller graph for this function:

World& MWWorld::World::operator= ( const World )
private
void MWWorld::World::PCDropped ( const Ptr item)
private

Here is the call graph for this function:

Here is the caller graph for this function:

MWWorld::Ptr MWWorld::World::placeObject ( const MWWorld::ConstPtr ptr,
MWWorld::CellStore cell,
ESM::Position  pos 
)
virtual

Place an object. Makes a copy of the Ptr.

Implements MWBase::World.

Here is the call graph for this function:

MWWorld::Ptr MWWorld::World::placeObject ( const MWWorld::ConstPtr object,
float  cursorX,
float  cursorY,
int  amount 
)
virtual

copy and place an object into the gameworld at the specified cursor position

Parameters
object
cursorX (relative 0-1)
cursorY (relative 0-1)
numberof objects to place

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::positionToIndex ( float  x,
float  y,
int cellX,
int cellY 
) const
virtual

Convert position to cell numbers.

Implements MWBase::World.

Here is the caller graph for this function:

void MWWorld::World::preloadCommonAssets ( )
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::processChangedSettings ( const Settings::CategorySettingVector settings)
virtual

Here is the call graph for this function:

void MWWorld::World::processDoors ( float  duration)
private

Run physics simulation and modify world accordingly.

Todo:
should use convexSweepTest here

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::queueMovement ( const Ptr ptr,
const osg::Vec3f &  velocity 
)
virtual

Queues movement for ptr (in local space), to be applied in the next call to doPhysics.

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::readRecord ( ESM::ESMReader reader,
uint32_t  type,
const std::map< int, int > &  contentFileMap 
)
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::reattachPlayerCamera ( )
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::removeContainerScripts ( const Ptr reference)
virtual

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::removeRefScript ( MWWorld::RefData ref)
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::renderPlayer ( )
virtual

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::resetActors ( )
virtual

Resets all actors in the current active cells to their original location within that cell.

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::rotateObject ( const Ptr ptr,
float  x,
float  y,
float  z,
bool  adjust = false 
)
virtual

World rotates object, uses radians

Note
Rotations via this method use a different rotation order than the initial rotations in the CS. This could be considered a bug, but is needed for MW compatibility.
Parameters
adjustindicates rotation should be set or adjusted

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::rotateObjectImp ( const Ptr ptr,
const osg::Vec3f &  rot,
bool  adjust 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

MWWorld::Ptr MWWorld::World::safePlaceObject ( const MWWorld::ConstPtr ptr,
const MWWorld::ConstPtr referenceObject,
MWWorld::CellStore referenceCell,
int  direction,
float  distance 
)
virtual

Place an object in a safe place next to referenceObject. direction and distance specify the wanted placement relative to referenceObject (but the object may be placed somewhere else if the wanted location is obstructed).

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::scaleObject ( const Ptr ptr,
float  scale 
)
virtual

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::screenshot ( osg::Image *  image,
int  w,
int  h 
)
virtual
Todo:
this does not belong here

Implements MWBase::World.

Here is the call graph for this function:

Ptr MWWorld::World::searchPtr ( const std::string &  name,
bool  activeOnly 
)
virtual

Return a pointer to a liveCellRef with the given name.

Parameters
activeOnlydo non search inactive cells.

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

Ptr MWWorld::World::searchPtrViaActorId ( int  actorId)
virtual

Search is limited to the active cells.

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::setCameraDistance ( float  dist,
bool  adjust = false,
bool  override = true 
)
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::setDay ( int  day)
virtual

Set in-game time day.

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::setGlobalFloat ( const std::string &  name,
float  value 
)
virtual

Set value independently from real type.

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::setGlobalInt ( const std::string &  name,
int  value 
)
virtual

Set value independently from real type.

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::setHour ( double  hour)
virtual

Set in-game time hour.

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::setMonth ( int  month)
virtual

Set in-game time month.

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::setMoonColour ( bool  red)
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::setupPlayer ( )
virtual

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::setWaterHeight ( const float  height)
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::spawnBloodEffect ( const MWWorld::Ptr ptr,
const osg::Vec3f &  worldPosition 
)
virtual

Spawn a blood effect for ptr at worldPosition.

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::spawnEffect ( const std::string &  model,
const std::string &  textureOverride,
const osg::Vec3f &  worldPos 
)
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::spawnRandomCreature ( const std::string &  creatureList)
virtual

Spawn a random creature from a levelled list next to the player.

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::startNewGame ( bool  bypass)
virtual
Parameters
bypassBypass regular game start.

Implements MWBase::World.

Here is the call graph for this function:

bool MWWorld::World::startSpellCast ( const MWWorld::Ptr actor)
virtual

startSpellCast attempt to start casting a spell. Might fail immediately if conditions are not met.

Parameters
actor
Returns
true if the spell can be casted (i.e. the animation should start)

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::teleportToClosestMarker ( const MWWorld::Ptr ptr,
const std::string &  id 
)
virtual

Teleports ptr to the closest reference of id (e.g. DivineMarker, PrisonMarker, TempleMarker)

Note
id must be lower case

Implements MWBase::World.

Here is the call graph for this function:

bool MWWorld::World::toggleCollisionMode ( )
virtual

Toggle collision mode for player. If disabled player object should ignore collisions and gravity.

Returns
Resulting mode

Implements MWBase::World.

Here is the call graph for this function:

bool MWWorld::World::toggleGodMode ( )
virtual

Implements MWBase::World.

void MWWorld::World::togglePlayerLooking ( bool  enable)
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::togglePOV ( )
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::togglePreviewMode ( bool  enable)
virtual

Implements MWBase::World.

Here is the call graph for this function:

bool MWWorld::World::toggleRenderMode ( MWRender::RenderMode  mode)
virtual

Toggle a render mode.

Returns
Resulting mode

Implements MWBase::World.

Here is the call graph for this function:

bool MWWorld::World::toggleScripts ( )
virtual

Implements MWBase::World.

bool MWWorld::World::toggleSky ( )
virtual
Returns
Resulting mode

Implements MWBase::World.

Here is the call graph for this function:

bool MWWorld::World::toggleVanityMode ( bool  enable)
virtual

Implements MWBase::World.

Here is the call graph for this function:

bool MWWorld::World::toggleWater ( )
virtual

Implements MWBase::World.

Here is the call graph for this function:

bool MWWorld::World::toggleWorld ( )
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::undeleteObject ( const Ptr ptr)
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::update ( float  duration,
bool  paused 
)
virtual

Implements MWBase::World.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::updateDialogueGlobals ( )
virtual

Update the value of some globals according to the world state, which may be used by dialogue entries. This should be called when initiating a dialogue.

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::updatePlayer ( bool  paused)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::updateSoundListener ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::updateWeather ( float  duration,
bool  paused = false 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::updateWindowManager ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::World::useDeathCamera ( )
virtual

Implements MWBase::World.

Here is the call graph for this function:

bool MWWorld::World::vanityRotateCamera ( float *  rot)
virtual

Implements MWBase::World.

Here is the call graph for this function:

void MWWorld::World::write ( ESM::ESMWriter writer,
Loading::Listener progress 
) const
virtual

Implements MWBase::World.

Here is the call graph for this function:

Member Data Documentation

int MWWorld::World::mActivationDistanceOverride
private
Cells MWWorld::World::mCells
private
std::vector<std::string> MWWorld::World::mContentFiles
private
std::string MWWorld::World::mCurrentWorldSpace
private
ESM::Variant* MWWorld::World::mDay
private
int MWWorld::World::mDaysInPrison
private
ESM::Variant* MWWorld::World::mDaysPassed
private
float MWWorld::World::mDistanceToFacedObject
private
std::map<MWWorld::Ptr, int> MWWorld::World::mDoorStates
private

only holds doors that are currently moving. 1 = opening, 2 = closing

std::vector<ESM::ESMReader> MWWorld::World::mEsm
private
Fallback::Map MWWorld::World::mFallback
private
ESM::Variant* MWWorld::World::mGameHour
private
MWWorld::Globals MWWorld::World::mGlobalVariables
private
bool MWWorld::World::mGodMode
private
bool MWWorld::World::mGoToJail
private
bool MWWorld::World::mLevitationEnabled
private
LocalScripts MWWorld::World::mLocalScripts
private
ESM::Variant* MWWorld::World::mMonth
private
MWPhysics::PhysicsSystem* MWWorld::World::mPhysics
private
MWWorld::Player* MWWorld::World::mPlayer
private
boost::shared_ptr<ProjectileManager> MWWorld::World::mProjectileManager
private
MWRender::RenderingManager* MWWorld::World::mRendering
private
Resource::ResourceSystem* MWWorld::World::mResourceSystem
private
bool MWWorld::World::mScriptsEnabled
private
bool MWWorld::World::mSky
private
std::string MWWorld::World::mStartCell
private
std::string MWWorld::World::mStartupScript
private
MWWorld::ESMStore MWWorld::World::mStore
private
float MWWorld::World::mSwimHeightScale
private
bool MWWorld::World::mTeleportEnabled
private
ESM::Variant* MWWorld::World::mTimeScale
private
MWWorld::WeatherManager* MWWorld::World::mWeatherManager
private
MWWorld::Scene* MWWorld::World::mWorldScene
private
ESM::Variant* MWWorld::World::mYear
private

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