OpenMW
|
The game world and its visual representation. More...
#include <worldimp.hpp>
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 CellStore * | getExterior (int x, int y) |
virtual CellStore * | getInterior (const std::string &name) |
virtual CellStore * | getCell (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::Map * | getFallback () const |
virtual Player & | getPlayer () |
virtual MWWorld::Ptr | getPlayerPtr () |
virtual const MWWorld::ESMStore & | getStore () const |
virtual std::vector < ESM::ESMReader > & | getEsmReader () |
virtual LocalScripts & | getLocalScripts () |
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 ®ion, 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 ®ionid, 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::Cell * | getExterior (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::Potion * | createRecord (const ESM::Potion &record) |
virtual const ESM::Spell * | createRecord (const ESM::Spell &record) |
virtual const ESM::Class * | createRecord (const ESM::Class &record) |
virtual const ESM::Cell * | createRecord (const ESM::Cell &record) |
virtual const ESM::NPC * | createRecord (const ESM::NPC &record) |
virtual const ESM::Armor * | createRecord (const ESM::Armor &record) |
virtual const ESM::Weapon * | createRecord (const ESM::Weapon &record) |
virtual const ESM::Clothing * | createRecord (const ESM::Clothing &record) |
virtual const ESM::Enchantment * | createRecord (const ESM::Enchantment &record) |
virtual const ESM::Book * | createRecord (const ESM::Book &record) |
virtual const ESM::CreatureLevList * | createOverrideRecord (const ESM::CreatureLevList &record) |
virtual const ESM::ItemLevList * | createOverrideRecord (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::Animation * | getAnimation (const MWWorld::Ptr &ptr) |
virtual const MWRender::Animation * | getAnimation (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 &) | |
World & | operator= (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) |
Additional Inherited Members | |
Public Types inherited from MWBase::World | |
enum | DetectionType { Detect_Enchantment, Detect_Key, Detect_Creature } |
The game world and its visual representation.
|
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 | ||
) |
|
virtual |
Reimplemented from MWBase::World.
|
virtual |
|
virtual |
open or close a non-teleport door (depending on current state)
Implements MWBase::World.
|
virtual |
update movement state of a non-teleport door as specified
state | see MWClass::setDoorState |
Implements MWBase::World.
Adjust position after load to be on ground. Must be called after model load.
force | do this even if the ptr is flying |
Implements MWBase::World.
|
virtual |
|
virtual |
|
virtual |
Return a vector aiming the actor's weapon towards a target.
Implements MWBase::World.
|
virtual |
|
virtual |
Implements MWBase::World.
|
virtual |
Implements MWBase::World.
|
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.
|
virtual |
cast a Ray and return true if there is an object in the ray path.
Implements MWBase::World.
|
virtual |
Cast the actual spell, should be called mid-animation.
actor |
Implements MWBase::World.
|
virtual |
changeEvent | If false, do not trigger cell change flag or detect worldspace changes |
Implements MWBase::World.
|
virtual |
Move to exterior cell.
changeEvent | If false, do not trigger cell change flag or detect worldspace changes |
Implements MWBase::World.
|
virtual |
Move to interior cell.
changeEvent | If false, do not trigger cell change flag or detect worldspace changes |
Implements MWBase::World.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Moves all stolen items from ptr to the closest evidence chest.
Implements MWBase::World.
|
private |
|
virtual |
|
virtual |
|
virtual |
Write this record to the ESM store, allowing it to override a pre-existing record with the same ID.
Implements MWBase::World.
|
virtual |
Write this record to the ESM store, allowing it to override a pre-existing record with the same ID.
Implements MWBase::World.
|
virtual |
Create a new record (of type potion) in the ESM store.
Implements MWBase::World.
|
virtual |
Create a new record (of type spell) in the ESM store.
Implements MWBase::World.
|
virtual |
Create a new record (of type class) in the ESM store.
Implements MWBase::World.
Create a new record (of type cell) in the ESM store.
Implements MWBase::World.
Create a new record (of type npc) in the ESM store.
Implements MWBase::World.
|
virtual |
Create a new record (of type armor) in the ESM store.
Implements MWBase::World.
|
virtual |
Create a new record (of type weapon) in the ESM store.
Implements MWBase::World.
|
virtual |
Create a new record (of type clothing) in the ESM store.
Implements MWBase::World.
|
virtual |
Create a new record (of type enchantment) in the ESM store.
Implements MWBase::World.
Create a new record (of type book) in the ESM store.
Implements MWBase::World.
|
virtual |
Implements MWBase::World.
|
virtual |
|
private |
Run physics simulation and modify world accordingly.
|
virtual |
copy and place an object into the gameworld at the given actor's position
actor | giving the dropped object position |
object | |
number | of objects to place |
Implements MWBase::World.
|
virtual |
Implements MWBase::World.
|
virtual |
|
virtual |
Enables or disables use of levitation spell effect.
Implements MWBase::World.
|
virtual |
Enables or disables use of teleport spell effects (recall, intervention, etc).
Implements MWBase::World.
|
private |
|
virtual |
|
private |
|
private |
|
virtual |
Return a pointer to a liveCellRef which contains ptr.
Implements MWBase::World.
|
virtual |
Find center of exterior cell above land surface
Implements MWBase::World.
|
virtual |
Find position in interior cell near door entrance
Implements MWBase::World.
|
virtual |
|
virtual |
Attempt to fix position so that the Ptr is no longer inside collision geometry.
Implements MWBase::World.
|
private |
|
virtual |
Implements MWBase::World.
|
virtual |
Implements MWBase::World.
|
virtual |
Implements MWBase::World.
|
virtual |
|
virtual |
|
virtual |
Implements MWBase::World.
|
virtual |
Return name of the cell.
Implements MWBase::World.
|
private |
|
private |
|
virtual |
get all containers in active cells owned by this Npc
Implements MWBase::World.
|
virtual |
Implements MWBase::World.
|
virtual |
|
virtual |
|
virtual |
Implements MWBase::World.
|
virtual |
|
virtual |
get a list of teleport door markers for a given cell, to be displayed on the local map
Implements MWBase::World.
|
virtual |
Implements MWBase::World.
Implements MWBase::World.
|
virtual |
Return a cell matching the given name or a 0-pointer, if there is no such cell.
Implements MWBase::World.
|
private |
|
virtual |
Return pointer to the object the player is looking at, if it is within activation range.
Implements MWBase::World.
|
virtual |
|
virtual |
Get value independently from real type.
Implements MWBase::World.
|
virtual |
Get value independently from real type.
Implements MWBase::World.
|
virtual |
Return ' ', if there is no global variable with this name.
Implements MWBase::World.
|
virtual |
|
virtual |
Return physical or rendering half extents of the given actor.
Implements MWBase::World.
|
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.
|
virtual |
Return the distance between actor's weapon and target's collision box.
Implements MWBase::World.
|
virtual |
Implements MWBase::World.
|
virtual |
get all items in active cells owned by this Npc
Implements MWBase::World.
|
virtual |
|
virtual |
get Line of Sight (morrowind stupid implementation)
Implements MWBase::World.
|
virtual |
|
virtual |
Implements MWBase::World.
|
virtual |
Implements MWBase::World.
|
virtual |
Return name of month (-1: current month)
Implements MWBase::World.
|
virtual |
get north vector for given interior cell
Implements MWBase::World.
|
virtual |
Implements MWBase::World.
|
virtual |
Implements MWBase::World.
|
virtual |
Implements MWBase::World.
|
virtual |
Implements MWBase::World.
Return a pointer to a liveCellRef with the given name.
activeOnly | do non search inactive cells. |
Implements MWBase::World.
|
virtual |
Implements MWBase::World.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Return terrain height at worldPos position.
Implements MWBase::World.
|
virtual |
|
virtual |
Return current in-game time stamp.
Implements MWBase::World.
|
virtual |
|
virtual |
|
virtual |
Implements MWBase::World.
|
virtual |
Has the set of active cells changed, since the last frame?
Implements MWBase::World.
|
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.
|
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.
|
virtual |
Convert cell numbers to position.
Implements MWBase::World.
|
virtual |
Implements MWBase::World.
|
virtual |
Implements MWBase::World.
|
virtual |
|
virtual |
Implements MWBase::World.
|
virtual |
Implements MWBase::World.
|
virtual |
|
virtual |
Returns true if levitation spell effect is allowed.
Implements MWBase::World.
|
virtual |
Implements MWBase::World.
|
virtual |
|
virtual |
|
virtual |
Is the head of the creature underwater?
Implements MWBase::World.
|
virtual |
Implements MWBase::World.
|
virtual |
Returns true if teleport spell effects are allowed.
Implements MWBase::World.
|
private |
helper function for implementing isSwimming(), isSubmerged(), isWading()
|
virtual |
|
virtual |
|
virtual |
Implements MWBase::World.
|
virtual |
|
virtual |
Implements MWBase::World.
|
virtual |
Implements MWBase::World.
|
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.
Implements MWBase::World.
|
private |
loadContentFiles - Loads content files (esm,esp,omwgame,omwaddon)
fileCollections- | Container which holds content file names and their paths |
content | - Container which holds content file names |
contentLoader | - |
|
virtual |
|
virtual |
|
virtual |
Implements MWBase::World.
|
virtual |
|
private |
|
private |
|
virtual |
Place an object. Makes a copy of the Ptr.
Implements MWBase::World.
|
virtual |
copy and place an object into the gameworld at the specified cursor position
object | |
cursor | X (relative 0-1) |
cursor | Y (relative 0-1) |
number | of objects to place |
Implements MWBase::World.
Convert position to cell numbers.
Implements MWBase::World.
|
virtual |
|
virtual |
|
private |
Run physics simulation and modify world accordingly.
|
virtual |
Queues movement for ptr (in local space), to be applied in the next call to doPhysics.
Implements MWBase::World.
|
virtual |
|
virtual |
|
virtual |
Implements MWBase::World.
|
virtual |
|
virtual |
Implements MWBase::World.
|
virtual |
Resets all actors in the current active cells to their original location within that cell.
Implements MWBase::World.
|
virtual |
World rotates object, uses radians
adjust | indicates rotation should be set or adjusted |
Implements MWBase::World.
|
private |
|
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.
|
virtual |
Implements MWBase::World.
Return a pointer to a liveCellRef with the given name.
activeOnly | do non search inactive cells. |
Implements MWBase::World.
Search is limited to the active cells.
Implements MWBase::World.
|
virtual |
Set in-game time day.
Implements MWBase::World.
|
virtual |
Set value independently from real type.
Implements MWBase::World.
|
virtual |
Set value independently from real type.
Implements MWBase::World.
|
virtual |
Set in-game time hour.
Implements MWBase::World.
|
virtual |
Set in-game time month.
Implements MWBase::World.
|
virtual |
|
virtual |
Implements MWBase::World.
|
virtual |
|
virtual |
Spawn a blood effect for ptr at worldPosition.
Implements MWBase::World.
|
virtual |
|
virtual |
Spawn a random creature from a levelled list next to the player.
Implements MWBase::World.
|
virtual |
bypass | Bypass regular game start. |
Implements MWBase::World.
|
virtual |
startSpellCast attempt to start casting a spell. Might fail immediately if conditions are not met.
actor |
Implements MWBase::World.
|
virtual |
Teleports ptr to the closest reference of id (e.g. DivineMarker, PrisonMarker, TempleMarker)
Implements MWBase::World.
|
virtual |
Toggle collision mode for player. If disabled player object should ignore collisions and gravity.
Implements MWBase::World.
|
virtual |
Implements MWBase::World.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Toggle a render mode.
Implements MWBase::World.
|
virtual |
Implements MWBase::World.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Implements MWBase::World.
|
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.
|
private |
|
private |
|
private |
|
private |
|
virtual |
|
virtual |
|
virtual |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
only holds doors that are currently moving. 1 = opening, 2 = closing
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |