OpenMW
|
The game world and its visual representation. More...
#include <worldimp.hpp>
Public Member Functions | |
void | removeContainerScripts (const Ptr &reference) override |
World (osgViewer::Viewer *viewer, osg::ref_ptr< osg::Group > rootNode, Resource::ResourceSystem *resourceSystem, SceneUtil::WorkQueue *workQueue, 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, const std::string &userDataPath) | |
virtual | ~World () |
void | startNewGame (bool bypass) override |
void | clear () override |
int | countSavedGameRecords () const override |
int | countSavedGameCells () const override |
void | write (ESM::ESMWriter &writer, Loading::Listener &progress) const override |
void | readRecord (ESM::ESMReader &reader, uint32_t type, const std::map< int, int > &contentFileMap) override |
CellStore * | getExterior (int x, int y) override |
CellStore * | getInterior (const std::string &name) override |
CellStore * | getCell (const ESM::CellId &id) override |
void | useDeathCamera () override |
void | setWaterHeight (const float height) override |
void | rotateWorldObject (const MWWorld::Ptr &ptr, osg::Quat rotate) override |
bool | toggleWater () override |
bool | toggleWorld () override |
bool | toggleBorders () override |
void | adjustSky () override |
const Fallback::Map * | getFallback () const override |
Player & | getPlayer () override |
MWWorld::Ptr | getPlayerPtr () override |
const MWWorld::ESMStore & | getStore () const override |
std::vector< ESM::ESMReader > & | getEsmReader () override |
LocalScripts & | getLocalScripts () override |
bool | hasCellChanged () const override |
Has the set of active cells changed, since the last frame? More... | |
bool | isCellExterior () const override |
bool | isCellQuasiExterior () const override |
osg::Vec2f | getNorthVector (const CellStore *cell) override |
get north vector for given interior cell More... | |
void | getDoorMarkers (MWWorld::CellStore *cell, std::vector< DoorMarker > &out) override |
get a list of teleport door markers for a given cell, to be displayed on the local map More... | |
void | setGlobalInt (const std::string &name, int value) override |
Set value independently from real type. More... | |
void | setGlobalFloat (const std::string &name, float value) override |
Set value independently from real type. More... | |
int | getGlobalInt (const std::string &name) const override |
Get value independently from real type. More... | |
float | getGlobalFloat (const std::string &name) const override |
Get value independently from real type. More... | |
char | getGlobalVariableType (const std::string &name) const override |
Return ' ', if there is no global variable with this name. More... | |
std::string | getCellName (const MWWorld::CellStore *cell=0) const override |
void | removeRefScript (MWWorld::RefData *ref) override |
Ptr | getPtr (const std::string &name, bool activeOnly) override |
Ptr | searchPtr (const std::string &name, bool activeOnly) override |
Ptr | searchPtrViaActorId (int actorId) override |
Search is limited to the active cells. More... | |
MWWorld::Ptr | findContainer (const MWWorld::ConstPtr &ptr) override |
void | adjustPosition (const Ptr &ptr, bool force) override |
void | fixPosition (const Ptr &actor) override |
Attempt to fix position so that the Ptr is no longer inside collision geometry. More... | |
void | enable (const Ptr &ptr) override |
void | disable (const Ptr &ptr) override |
void | advanceTime (double hours, bool incremental=false) override |
Advance in-game time. More... | |
void | setHour (double hour) override |
Set in-game time hour. More... | |
void | setMonth (int month) override |
Set in-game time month. More... | |
void | setDay (int day) override |
Set in-game time day. More... | |
int | getDay () const override |
int | getMonth () const override |
int | getYear () const override |
std::string | getMonthName (int month=-1) const override |
Return name of month (-1: current month) More... | |
TimeStamp | getTimeStamp () const override |
Return current in-game time stamp. More... | |
bool | toggleSky () override |
void | changeWeather (const std::string ®ion, const unsigned int id) override |
int | getCurrentWeather () const override |
int | getMasserPhase () const override |
int | getSecundaPhase () const override |
void | setMoonColour (bool red) override |
void | modRegion (const std::string ®ionid, const std::vector< char > &chances) override |
float | getTimeScaleFactor () const override |
void | changeToInteriorCell (const std::string &cellName, const ESM::Position &position, bool adjustPlayerPos, bool changeEvent=true) override |
void | changeToExteriorCell (const ESM::Position &position, bool adjustPlayerPos, bool changeEvent=true) override |
void | changeToCell (const ESM::CellId &cellId, const ESM::Position &position, bool adjustPlayerPos, bool changeEvent=true) override |
const ESM::Cell * | getExterior (const std::string &cellName) const override |
Return a cell matching the given name or a 0-pointer, if there is no such cell. More... | |
void | markCellAsUnchanged () override |
MWWorld::Ptr | getFacedObject () override |
Return pointer to the object the player is looking at, if it is within activation range. More... | |
float | getDistanceToFacedObject () override |
std::pair< MWWorld::Ptr, osg::Vec3f > | getHitContact (const MWWorld::ConstPtr &ptr, float distance, std::vector< MWWorld::Ptr > &targets) override |
void | deleteObject (const Ptr &ptr) override |
void | undeleteObject (const Ptr &ptr) override |
MWWorld::Ptr | moveObject (const Ptr &ptr, float x, float y, float z) override |
MWWorld::Ptr | moveObject (const Ptr &ptr, CellStore *newCell, float x, float y, float z, bool movePhysics=true) override |
void | scaleObject (const Ptr &ptr, float scale) override |
void | rotateObject (const Ptr &ptr, float x, float y, float z, bool adjust=false) override |
MWWorld::Ptr | placeObject (const MWWorld::ConstPtr &ptr, MWWorld::CellStore *cell, ESM::Position pos) override |
Place an object. Makes a copy of the Ptr. More... | |
MWWorld::Ptr | safePlaceObject (const MWWorld::ConstPtr &ptr, const MWWorld::ConstPtr &referenceObject, MWWorld::CellStore *referenceCell, int direction, float distance) override |
float | getMaxActivationDistance () override |
void | indexToPosition (int cellX, int cellY, float &x, float &y, bool centre=false) const override |
Convert cell numbers to position. More... | |
void | positionToIndex (float x, float y, int &cellX, int &cellY) const override |
Convert position to cell numbers. More... | |
void | queueMovement (const Ptr &ptr, const osg::Vec3f &velocity) override |
bool | castRay (float x1, float y1, float z1, float x2, float y2, float z2, bool ignoreDoors=false) override |
cast a Ray and return true if there is an object in the ray path. More... | |
bool | toggleCollisionMode () override |
bool | toggleRenderMode (MWRender::RenderMode mode) override |
const ESM::Potion * | createRecord (const ESM::Potion &record) override |
const ESM::Spell * | createRecord (const ESM::Spell &record) override |
const ESM::Class * | createRecord (const ESM::Class &record) override |
const ESM::Cell * | createRecord (const ESM::Cell &record) override |
const ESM::NPC * | createRecord (const ESM::NPC &record) override |
const ESM::Armor * | createRecord (const ESM::Armor &record) override |
const ESM::Weapon * | createRecord (const ESM::Weapon &record) override |
const ESM::Clothing * | createRecord (const ESM::Clothing &record) override |
const ESM::Enchantment * | createRecord (const ESM::Enchantment &record) override |
const ESM::Book * | createRecord (const ESM::Book &record) override |
const ESM::CreatureLevList * | createOverrideRecord (const ESM::CreatureLevList &record) override |
const ESM::ItemLevList * | createOverrideRecord (const ESM::ItemLevList &record) override |
void | update (float duration, bool paused) override |
void | updateWindowManager () override |
MWWorld::Ptr | placeObject (const MWWorld::ConstPtr &object, float cursorX, float cursorY, int amount) override |
MWWorld::Ptr | dropObjectOnGround (const MWWorld::Ptr &actor, const MWWorld::ConstPtr &object, int amount) override |
bool | canPlaceObject (float cursorX, float cursorY) override |
void | processChangedSettings (const Settings::CategorySettingVector &settings) override |
bool | isFlying (const MWWorld::Ptr &ptr) const override |
bool | isSlowFalling (const MWWorld::Ptr &ptr) const override |
bool | isSubmerged (const MWWorld::ConstPtr &object) const override |
Is the head of the creature underwater? More... | |
bool | isSwimming (const MWWorld::ConstPtr &object) const override |
bool | isUnderwater (const MWWorld::CellStore *cell, const osg::Vec3f &pos) const override |
bool | isUnderwater (const MWWorld::ConstPtr &object, const float heightRatio) const override |
bool | isWading (const MWWorld::ConstPtr &object) const override |
bool | isWaterWalkingCastableOnTarget (const MWWorld::ConstPtr &target) const override |
bool | isOnGround (const MWWorld::Ptr &ptr) const override |
osg::Matrixf | getActorHeadTransform (const MWWorld::ConstPtr &actor) const override |
void | togglePOV () override |
bool | isFirstPerson () const override |
void | togglePreviewMode (bool enable) override |
bool | toggleVanityMode (bool enable) override |
void | allowVanityMode (bool allow) override |
void | togglePlayerLooking (bool enable) override |
void | changeVanityModeScale (float factor) override |
bool | vanityRotateCamera (float *rot) override |
void | setCameraDistance (float dist, bool adjust=false, bool override=true) override |
void | setupPlayer () override |
void | renderPlayer () override |
void | activateDoor (const MWWorld::Ptr &door) override |
open or close a non-teleport door (depending on current state) More... | |
void | activateDoor (const MWWorld::Ptr &door, int state) override |
void | getActorsStandingOn (const MWWorld::ConstPtr &object, std::vector< MWWorld::Ptr > &actors) override |
get a list of actors standing on object More... | |
bool | getPlayerStandingOn (const MWWorld::ConstPtr &object) override |
bool | getActorStandingOn (const MWWorld::ConstPtr &object) override |
bool | getPlayerCollidingWith (const MWWorld::ConstPtr &object) override |
bool | getActorCollidingWith (const MWWorld::ConstPtr &object) override |
void | hurtStandingActors (const MWWorld::ConstPtr &object, float dmgPerSecond) override |
void | hurtCollidingActors (const MWWorld::ConstPtr &object, float dmgPerSecond) override |
float | getWindSpeed () override |
void | getContainersOwnedBy (const MWWorld::ConstPtr &npc, std::vector< MWWorld::Ptr > &out) override |
get all containers in active cells owned by this Npc More... | |
void | getItemsOwnedBy (const MWWorld::ConstPtr &npc, std::vector< MWWorld::Ptr > &out) override |
get all items in active cells owned by this Npc More... | |
bool | getLOS (const MWWorld::ConstPtr &actor, const MWWorld::ConstPtr &targetActor) override |
get Line of Sight (morrowind stupid implementation) More... | |
float | getDistToNearestRayHit (const osg::Vec3f &from, const osg::Vec3f &dir, float maxDist, bool includeWater=false) override |
void | enableActorCollision (const MWWorld::Ptr &actor, bool enable) override |
RestPermitted | canRest () const override |
check if the player is allowed to rest More... | |
void | rest () override |
MWRender::Animation * | getAnimation (const MWWorld::Ptr &ptr) override |
const MWRender::Animation * | getAnimation (const MWWorld::ConstPtr &ptr) const override |
void | reattachPlayerCamera () override |
void | screenshot (osg::Image *image, int w, int h) override |
bool | screenshot360 (osg::Image *image, std::string settingStr) override |
bool | findExteriorPosition (const std::string &name, ESM::Position &pos) override |
bool | findInteriorPosition (const std::string &name, ESM::Position &pos) override |
void | enableTeleporting (bool enable) override |
Enables or disables use of teleport spell effects (recall, intervention, etc). More... | |
bool | isTeleportingEnabled () const override |
Returns true if teleport spell effects are allowed. More... | |
void | enableLevitation (bool enable) override |
Enables or disables use of levitation spell effect. More... | |
bool | isLevitationEnabled () const override |
Returns true if levitation spell effect is allowed. More... | |
bool | getGodModeState () override |
bool | toggleGodMode () override |
bool | toggleScripts () override |
bool | getScriptsEnabled () const override |
bool | startSpellCast (const MWWorld::Ptr &actor) override |
startSpellCast attempt to start casting a spell. Might fail immediately if conditions are not met. More... | |
void | castSpell (const MWWorld::Ptr &actor, bool manualSpell=false) override |
Cast the actual spell, should be called mid-animation. More... | |
void | launchMagicBolt (const std::string &spellId, const MWWorld::Ptr &caster, const osg::Vec3f &fallbackDirection) override |
void | launchProjectile (MWWorld::Ptr &actor, MWWorld::Ptr &projectile, const osg::Vec3f &worldPos, const osg::Quat &orient, MWWorld::Ptr &bow, float speed, float attackStrength) override |
void | applyLoopingParticles (const MWWorld::Ptr &ptr) override |
const std::vector< std::string > & | getContentFiles () const override |
void | breakInvisibility (const MWWorld::Ptr &actor) override |
bool | useTorches () const override |
bool | findInteriorPositionInWorldSpace (const MWWorld::CellStore *cell, osg::Vec3f &result) override |
void | teleportToClosestMarker (const MWWorld::Ptr &ptr, const std::string &id) override |
void | listDetectedReferences (const MWWorld::Ptr &ptr, std::vector< MWWorld::Ptr > &out, DetectionType type) override |
void | updateDialogueGlobals () override |
void | confiscateStolenItems (const MWWorld::Ptr &ptr) override |
Moves all stolen items from ptr to the closest evidence chest. More... | |
void | goToJail () override |
void | spawnRandomCreature (const std::string &creatureList) override |
Spawn a random creature from a levelled list next to the player. More... | |
void | spawnBloodEffect (const MWWorld::Ptr &ptr, const osg::Vec3f &worldPosition) override |
Spawn a blood effect for ptr at worldPosition. More... | |
void | spawnEffect (const std::string &model, const std::string &textureOverride, const osg::Vec3f &worldPos, float scale=1.f, bool isMagicVFX=true) override |
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) override |
void | activate (const MWWorld::Ptr &object, const MWWorld::Ptr &actor) override |
bool | isInStorm () const override |
osg::Vec3f | getStormDirection () const override |
void | resetActors () override |
Resets all actors in the current active cells to their original location within that cell. More... | |
bool | isWalkingOnWater (const MWWorld::ConstPtr &actor) const override |
osg::Vec3f | aimToTarget (const MWWorld::ConstPtr &actor, const MWWorld::ConstPtr &target) override |
float | getHitDistance (const MWWorld::ConstPtr &actor, const MWWorld::ConstPtr &target) override |
Return the distance between actor's weapon and target's collision box. More... | |
bool | isPlayerInJail () const override |
void | setPlayerTraveling (bool traveling) override |
bool | isPlayerTraveling () const override |
float | getTerrainHeightAt (const osg::Vec3f &worldPos) const override |
Return terrain height at worldPos position. More... | |
osg::Vec3f | getHalfExtents (const MWWorld::ConstPtr &actor, bool rendering=false) const override |
Return physical or rendering half extents of the given actor. More... | |
std::string | exportSceneGraph (const MWWorld::Ptr &ptr) override |
void | preloadEffects (const ESM::EffectList *effectList) override |
Preload VFX associated with this effect list. More... | |
![]() | |
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 | updatePlayer () |
void | preloadSpells () |
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... | |
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 | |
![]() | |
enum | RestPermitted { Rest_Allowed = 0, Rest_OnlyWaiting = 1, Rest_PlayerIsUnderwater = 2, Rest_EnemiesAreNearby = 3 } |
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, | ||
SceneUtil::WorkQueue * | workQueue, | ||
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, | ||
const std::string & | userDataPath | ||
) |
|
virtual |
Reimplemented from MWBase::World.
|
overridevirtual |
|
overridevirtual |
open or close a non-teleport door (depending on current state)
Implements MWBase::World.
|
overridevirtual |
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.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Return a vector aiming the actor's weapon towards a target.
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
check if the player is allowed to rest
Implements MWBase::World.
|
overridevirtual |
cast a Ray and return true if there is an object in the ray path.
Implements MWBase::World.
|
overridevirtual |
Cast the actual spell, should be called mid-animation.
actor |
Implements MWBase::World.
|
overridevirtual |
changeEvent | If false, do not trigger cell change flag or detect worldspace changes |
Implements MWBase::World.
|
overridevirtual |
Move to exterior cell.
changeEvent | If false, do not trigger cell change flag or detect worldspace changes |
Implements MWBase::World.
|
overridevirtual |
Move to interior cell.
changeEvent | If false, do not trigger cell change flag or detect worldspace changes |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
|
overridevirtual |
Moves all stolen items from ptr to the closest evidence chest.
Implements MWBase::World.
|
private |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Write this record to the ESM store, allowing it to override a pre-existing record with the same ID.
Implements MWBase::World.
|
overridevirtual |
Write this record to the ESM store, allowing it to override a pre-existing record with the same ID.
Implements MWBase::World.
|
overridevirtual |
Create a new record (of type potion) in the ESM store.
Implements MWBase::World.
|
overridevirtual |
Create a new record (of type spell) in the ESM store.
Implements MWBase::World.
|
overridevirtual |
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.
|
overridevirtual |
Create a new record (of type armor) in the ESM store.
Implements MWBase::World.
|
overridevirtual |
Create a new record (of type weapon) in the ESM store.
Implements MWBase::World.
|
overridevirtual |
Create a new record (of type clothing) in the ESM store.
Implements MWBase::World.
|
overridevirtual |
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.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
|
private |
Run physics simulation and modify world accordingly.
|
overridevirtual |
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.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
|
overridevirtual |
Enables or disables use of levitation spell effect.
Implements MWBase::World.
|
overridevirtual |
Enables or disables use of teleport spell effects (recall, intervention, etc).
Implements MWBase::World.
|
private |
|
overridevirtual |
|
overridevirtual |
Export scene graph to a file and return the filename.
ptr | object to export scene graph for (if empty, export entire scene graph) |
Implements MWBase::World.
|
private |
|
private |
|
overridevirtual |
Return a pointer to a liveCellRef which contains ptr.
Implements MWBase::World.
|
overridevirtual |
Find center of exterior cell above land surface
Implements MWBase::World.
|
overridevirtual |
Find position in interior cell near door entrance
Implements MWBase::World.
|
overridevirtual |
|
overridevirtual |
Attempt to fix position so that the Ptr is no longer inside collision geometry.
Implements MWBase::World.
|
private |
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
get a list of actors standing on object
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Return name of the cell.
Implements MWBase::World.
|
private |
|
private |
|
overridevirtual |
get all containers in active cells owned by this Npc
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
get a list of teleport door markers for a given cell, to be displayed on the local map
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
Implements MWBase::World.
|
overridevirtual |
Return a cell matching the given name or a 0-pointer, if there is no such cell.
Implements MWBase::World.
|
private |
|
overridevirtual |
Return pointer to the object the player is looking at, if it is within activation range.
Implements MWBase::World.
|
overridevirtual |
|
overridevirtual |
Get value independently from real type.
Implements MWBase::World.
|
overridevirtual |
Get value independently from real type.
Implements MWBase::World.
|
overridevirtual |
Return ' ', if there is no global variable with this name.
Implements MWBase::World.
|
overridevirtual |
|
overridevirtual |
Return physical or rendering half extents of the given actor.
Implements MWBase::World.
|
overridevirtual |
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.
|
overridevirtual |
Return the distance between actor's weapon and target's collision box.
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
get all items in active cells owned by this Npc
Implements MWBase::World.
|
overridevirtual |
|
overridevirtual |
get Line of Sight (morrowind stupid implementation)
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Return name of month (-1: current month)
Implements MWBase::World.
|
overridevirtual |
get north vector for given interior cell
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
|
overridevirtual |
Implements MWBase::World.
Return a pointer to a liveCellRef with the given name.
activeOnly | do non search inactive cells. |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Return terrain height at worldPos position.
Implements MWBase::World.
|
overridevirtual |
|
overridevirtual |
Return current in-game time stamp.
Implements MWBase::World.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Has the set of active cells changed, since the last frame?
Implements MWBase::World.
|
overridevirtual |
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.
|
overridevirtual |
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.
|
overridevirtual |
Convert cell numbers to position.
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
|
overridevirtual |
Returns true if levitation spell effect is allowed.
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
|
overridevirtual |
Is the head of the creature underwater?
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Returns true if teleport spell effects are allowed.
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
|
overridevirtual |
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 | - |
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
|
private |
|
private |
|
overridevirtual |
Place an object. Makes a copy of the Ptr.
Implements MWBase::World.
|
overridevirtual |
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.
|
overridevirtual |
Convert position to cell numbers.
Implements MWBase::World.
|
overridevirtual |
Preload VFX associated with this effect list.
Implements MWBase::World.
|
private |
|
override |
|
private |
Run physics simulation and modify world accordingly.
|
overridevirtual |
Queues movement for ptr (in local space), to be applied in the next call to doPhysics.
Implements MWBase::World.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Resets all actors in the current active cells to their original location within that cell.
Implements MWBase::World.
|
overridevirtual |
|
overridevirtual |
World rotates object, uses radians
adjust | indicates rotation should be set or adjusted |
Implements MWBase::World.
|
private |
|
overridevirtual |
|
overridevirtual |
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.
|
overridevirtual |
Implements MWBase::World.
Implements MWBase::World.
|
overridevirtual |
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.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Set in-game time day.
Implements MWBase::World.
|
overridevirtual |
Set value independently from real type.
Implements MWBase::World.
|
overridevirtual |
Set value independently from real type.
Implements MWBase::World.
|
overridevirtual |
Set in-game time hour.
Implements MWBase::World.
|
overridevirtual |
Set in-game time month.
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Spawn a blood effect for ptr at worldPosition.
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Spawn a random creature from a levelled list next to the player.
Implements MWBase::World.
|
overridevirtual |
bypass | Bypass regular game start. |
Implements MWBase::World.
|
overridevirtual |
startSpellCast attempt to start casting a spell. Might fail immediately if conditions are not met.
actor |
Implements MWBase::World.
|
overridevirtual |
Teleports ptr to the closest reference of id (e.g. DivineMarker, PrisonMarker, TempleMarker)
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Toggle collision mode for player. If disabled player object should ignore collisions and gravity.
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
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 |
|
overridevirtual |
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
|
overridevirtual |
Implements MWBase::World.
|
overridevirtual |
|
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 |
|
private |
|
private |
|
private |
|
private |