1 #ifndef GAME_MWWORLD_WORLDIMP_H
2 #define GAME_MWWORLD_WORLDIMP_H
4 #include <boost/shared_ptr.hpp>
11 #include "../mwbase/world.hpp"
65 class ProjectileManager;
80 std::vector<ESM::ESMReader>
mEsm;
156 const std::vector<std::string>& content,
ContentLoader& contentLoader);
179 osgViewer::Viewer* viewer,
180 osg::ref_ptr<osg::Group> rootNode,
183 const std::vector<std::string>& contentFiles,
185 int activationDistanceOverride,
const std::string& startCell,
const std::string& startupScript,
const std::string& resourcePath);
194 virtual void clear();
202 const std::map<int, int>& contentFileMap);
268 virtual Ptr getPtr (
const std::string&
name,
bool activeOnly);
294 virtual void advanceTime (
double hours,
bool incremental =
false);
297 virtual void setHour (
double hour);
303 virtual void setDay (
int day);
306 virtual int getDay()
const;
310 virtual std::string
getMonthName (
int month = -1)
const;
319 virtual void changeWeather (
const std::string& region,
const unsigned int id);
329 virtual void modRegion(
const std::string ®ionid,
const std::vector<char> &chances);
376 virtual void rotateObject (
const Ptr& ptr,
float x,
float y,
float z,
bool adjust =
false);
387 virtual void indexToPosition (
int cellX,
int cellY,
float &x,
float &y,
bool centre =
false)
391 virtual void positionToIndex (
float x,
float y,
int &cellX,
int &cellY)
const;
398 virtual bool castRay (
float x1,
float y1,
float z1,
float x2,
float y2,
float z2);
458 virtual void update (
float duration,
bool paused);
505 virtual void setCameraDistance(
float dist,
bool adjust =
false,
bool override =
true);
539 virtual float getDistToNearestRayHit(
const osg::Vec3f& from,
const osg::Vec3f& dir,
float maxDist,
bool includeWater =
false);
556 virtual void screenshot (osg::Image* image,
int w,
int h);
599 const MWWorld::Ptr& caster,
const std::string& sourceName,
const osg::Vec3f& fallbackDirection);
601 const osg::Vec3f& worldPos,
const osg::Quat& orient,
MWWorld::Ptr bow,
float speed,
float attackStrength);
608 virtual bool isDark()
const;
615 const std::string&
id);
638 virtual void spawnEffect (
const std::string& model,
const std::string& textureOverride,
const osg::Vec3f& worldPos);
641 ESM::RangeType rangeType,
const std::string&
id,
const std::string& sourceName,
642 const bool fromProjectile=
false);
virtual bool toggleVanityMode(bool enable)
Definition: worldimp.cpp:2120
virtual void scaleObject(const Ptr &ptr, float scale)
Definition: worldimp.cpp:1245
std::vector< ESM::ESMReader > mEsm
Definition: worldimp.hpp:80
virtual void adjustPosition(const Ptr &ptr, bool force)
Definition: worldimp.cpp:1292
virtual void teleportToClosestMarker(const MWWorld::Ptr &ptr, const std::string &id)
Definition: worldimp.cpp:2896
Cell container.
Definition: cells.hpp:28
virtual bool isCellQuasiExterior() const
Definition: worldimp.cpp:1759
virtual void getContainersOwnedBy(const MWWorld::ConstPtr &npc, std::vector< MWWorld::Ptr > &out)
get all containers in active cells owned by this Npc
Definition: worldimp.cpp:2386
virtual bool toggleWorld()
Definition: worldimp.cpp:1867
float mDistanceToFacedObject
Definition: worldimp.hpp:160
Wrapper class that constructs and provides access to the most commonly used resource subsystems...
Definition: resourcesystem.hpp:24
virtual int getDay() const
Definition: worldimp.cpp:895
virtual float getTerrainHeightAt(const osg::Vec3f &worldPos) const
Return terrain height at worldPos position.
Definition: worldimp.cpp:3136
virtual void setDay(int day)
Set in-game time day.
Definition: worldimp.cpp:842
virtual int getCurrentWeather() const
Definition: worldimp.cpp:1772
virtual void setGlobalInt(const std::string &name, int value)
Set value independently from real type.
Definition: worldimp.cpp:571
virtual void setGlobalFloat(const std::string &name, float value)
Set value independently from real type.
Definition: worldimp.cpp:583
LocalScripts mLocalScripts
Definition: worldimp.hpp:82
MWWorld::Scene * mWorldScene
Definition: worldimp.hpp:78
virtual int getMonth() const
Definition: worldimp.cpp:900
int mActivationDistanceOverride
Definition: worldimp.hpp:108
virtual char getGlobalVariableType(const std::string &name) const
Return ' ', if there is no global variable with this name.
Definition: worldimp.cpp:605
int mDaysInPrison
Definition: worldimp.hpp:168
virtual bool isSubmerged(const MWWorld::ConstPtr &object) const
Is the head of the creature underwater?
Definition: worldimp.cpp:2049
virtual Ptr searchPtr(const std::string &name, bool activeOnly)
Definition: worldimp.cpp:629
virtual void write(ESM::ESMWriter &writer, Loading::Listener &progress) const
Definition: worldimp.cpp:333
virtual std::string getCellName(const MWWorld::CellStore *cell=0) const
Definition: worldimp.cpp:610
Definition: animation.hpp:77
virtual MWWorld::Ptr findContainer(const MWWorld::ConstPtr &ptr)
Definition: worldimp.cpp:709
virtual MWWorld::Ptr placeObject(const MWWorld::ConstPtr &ptr, MWWorld::CellStore *cell, ESM::Position pos)
Place an object. Makes a copy of the Ptr.
Definition: worldimp.cpp:1340
virtual void spawnEffect(const std::string &model, const std::string &textureOverride, const osg::Vec3f &worldPos)
Definition: worldimp.cpp:3198
Definition: renderingmanager.hpp:63
Interface for the World (implemented in MWWorld)
Definition: world.hpp:77
virtual MWWorld::Ptr dropObjectOnGround(const MWWorld::Ptr &actor, const MWWorld::ConstPtr &object, int amount)
Definition: worldimp.cpp:1980
virtual void resetActors()
Resets all actors in the current active cells to their original location within that cell...
Definition: worldimp.cpp:3306
virtual float getDistToNearestRayHit(const osg::Vec3f &from, const osg::Vec3f &dir, float maxDist, bool includeWater=false)
Definition: worldimp.cpp:2432
Fallback::Map mFallback
Definition: worldimp.hpp:73
Definition: esmreader.hpp:21
virtual void enableTeleporting(bool enable)
Enables or disables use of teleport spell effects (recall, intervention, etc).
Definition: worldimp.cpp:2533
virtual void positionToIndex(float x, float y, int &cellX, int &cellY) const
Convert position to cell numbers.
Definition: worldimp.cpp:1411
virtual bool startSpellCast(const MWWorld::Ptr &actor)
startSpellCast attempt to start casting a spell. Might fail immediately if conditions are not met...
Definition: worldimp.cpp:2603
Definition: loadspel.hpp:14
void rotateObjectImp(const Ptr &ptr, const osg::Vec3f &rot, bool adjust)
Definition: worldimp.cpp:1252
void updateSoundListener()
Definition: worldimp.cpp:1686
virtual float getGlobalFloat(const std::string &name) const
Get value independently from real type.
Definition: worldimp.cpp:600
ESM::Variant * mGameHour
Definition: worldimp.hpp:87
void updateWindowManager()
Definition: worldimp.cpp:1708
MWWorld::WeatherManager * mWeatherManager
Definition: worldimp.hpp:76
void doPhysics(float duration)
Run physics simulation and modify world accordingly.
Definition: worldimp.cpp:1424
Definition: loadarmo.hpp:66
virtual CellStore * getCell(const ESM::CellId &id)
Definition: worldimp.cpp:527
virtual void updateDialogueGlobals()
Definition: worldimp.cpp:3042
MWWorld::Player * mPlayer
Definition: worldimp.hpp:79
NPC object representing the player and additional player data.
Definition: player.hpp:30
contains settings imported from the Morrowind INI file.
Definition: fallback.hpp:12
virtual void togglePreviewMode(bool enable)
Definition: worldimp.cpp:2115
Definition: globals.hpp:28
Cells mCells
Definition: worldimp.hpp:94
std::map< MWWorld::Ptr, int > mDoorStates
only holds doors that are currently moving. 1 = opening, 2 = closing
Definition: worldimp.hpp:112
virtual int getMasserPhase() const
Definition: worldimp.cpp:942
virtual void rotateObject(const Ptr &ptr, float x, float y, float z, bool adjust=false)
Definition: worldimp.cpp:1335
virtual MWRender::Animation * getAnimation(const MWWorld::Ptr &ptr)
Definition: worldimp.cpp:2207
virtual MWWorld::Ptr moveObject(const Ptr &ptr, float x, float y, float z)
Definition: worldimp.cpp:1240
virtual bool isFlying(const MWWorld::Ptr &ptr) const
Definition: worldimp.cpp:2013
int getDaysPerMonth(int month) const
Definition: worldimp.cpp:107
Definition: loadinglistener.hpp:8
MWRender::RenderingManager * mRendering
Definition: worldimp.hpp:74
Definition: physicssystem.hpp:51
virtual void deleteObject(const Ptr &ptr)
Definition: worldimp.cpp:1089
virtual void hurtStandingActors(const MWWorld::ConstPtr &object, float dmgPerSecond)
Definition: worldimp.cpp:2279
virtual CellStore * getInterior(const std::string &name)
Definition: worldimp.cpp:522
virtual void startNewGame(bool bypass)
Definition: worldimp.cpp:205
RangeType
Definition: defs.hpp:27
void fillGlobalVariables()
Definition: worldimp.cpp:193
virtual void activate(const MWWorld::Ptr &object, const MWWorld::Ptr &actor)
Definition: worldimp.cpp:3281
virtual void changeToCell(const ESM::CellId &cellId, const ESM::Position &position, bool adjustPlayerPos, bool changeEvent=true)
Definition: worldimp.cpp:995
virtual void enableActorCollision(const MWWorld::Ptr &actor, bool enable)
Definition: worldimp.cpp:2450
virtual void setMonth(int month)
Set in-game time month.
Definition: worldimp.cpp:874
virtual bool findInteriorPosition(const std::string &name, ESM::Position &pos)
Definition: worldimp.cpp:2457
void addContainerScripts(const Ptr &reference, CellStore *cell)
Definition: worldimp.cpp:735
Definition: refdata.hpp:29
ESM::Variant * mYear
Definition: worldimp.hpp:91
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)
Definition: worldimp.cpp:3203
std::set< std::pair< std::string, std::string > > CategorySettingVector
Definition: settings.hpp:11
virtual void hurtCollidingActors(const MWWorld::ConstPtr &object, float dmgPerSecond)
Definition: worldimp.cpp:2309
ESM::Variant * mTimeScale
Definition: worldimp.hpp:92
virtual ~World()
Definition: worldimp.cpp:478
virtual bool toggleWater()
Definition: worldimp.cpp:1862
Resource::ResourceSystem * mResourceSystem
Definition: worldimp.hpp:71
virtual void fixPosition(const Ptr &actor)
Attempt to fix position so that the Ptr is no longer inside collision geometry.
Definition: worldimp.cpp:1323
void loadContentFiles(const Files::Collections &fileCollections, const std::vector< std::string > &content, ContentLoader &contentLoader)
loadContentFiles - Loads content files (esm,esp,omwgame,omwaddon)
Definition: worldimp.cpp:2581
MWPhysics::PhysicsSystem * mPhysics
Definition: worldimp.hpp:84
virtual bool isFirstPerson() const
Definition: worldimp.cpp:2110
Definition: esmwriter.hpp:17
The game world and its visual representation.
Definition: worldimp.hpp:69
Ptr copyObjectToCell(const ConstPtr &ptr, CellStore *cell, ESM::Position pos, int count, bool adjustPos)
Definition: worldimp.cpp:1927
virtual bool toggleSky()
Definition: worldimp.cpp:935
virtual void disable(const Ptr &ptr)
Definition: worldimp.cpp:789
MWWorld::ESMStore mStore
Definition: worldimp.hpp:81
virtual int countSavedGameCells() const
Definition: worldimp.cpp:328
ESM::Variant * mMonth
Definition: worldimp.hpp:90
ESM::Variant * mDaysPassed
Definition: worldimp.hpp:88
virtual void undeleteObject(const Ptr &ptr)
Definition: worldimp.cpp:1109
Definition: esmstore.hpp:17
virtual void setCameraDistance(float dist, bool adjust=false, bool override=true)
Definition: worldimp.cpp:2145
virtual int getYear() const
Definition: worldimp.cpp:905
virtual void adjustSky()
Definition: worldimp.cpp:128
virtual void activateDoor(const MWWorld::Ptr &door)
open or close a non-teleport door (depending on current state)
Definition: worldimp.cpp:2222
virtual MWWorld::Ptr getPlayerPtr()
Definition: worldimp.cpp:3037
virtual bool getLOS(const MWWorld::ConstPtr &actor, const MWWorld::ConstPtr &targetActor)
get Line of Sight (morrowind stupid implementation)
Definition: worldimp.cpp:2422
virtual bool toggleScripts()
Definition: worldimp.cpp:2570
virtual bool getGodModeState()
Definition: worldimp.cpp:2558
virtual TimeStamp getTimeStamp() const
Return current in-game time stamp.
Definition: worldimp.cpp:930
virtual void queueMovement(const Ptr &ptr, const osg::Vec3f &velocity)
Definition: worldimp.cpp:1419
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)
Definition: worldimp.cpp:2730
virtual void changeToInteriorCell(const std::string &cellName, const ESM::Position &position, bool adjustPlayerPos, bool changeEvent=true)
Definition: worldimp.cpp:962
bool mLevitationEnabled
Definition: worldimp.hpp:166
virtual bool isDark() const
Definition: worldimp.cpp:2752
virtual void goToJail()
Definition: worldimp.cpp:3099
virtual void spawnRandomCreature(const std::string &creatureList)
Spawn a random creature from a levelled list next to the player.
Definition: worldimp.cpp:3149
bool mGodMode
Definition: worldimp.hpp:100
Definition: loadnpc.hpp:23
virtual void useDeathCamera()
Definition: worldimp.cpp:535
float getActivationDistancePlusTelekinesis()
Definition: worldimp.cpp:3025
virtual bool canPlaceObject(float cursorX, float cursorY)
Definition: worldimp.cpp:1909
virtual std::vector< ESM::ESMReader > & getEsmReader()
Definition: worldimp.cpp:556
virtual int getGlobalInt(const std::string &name) const
Get value independently from real type.
Definition: worldimp.cpp:595
virtual void modRegion(const std::string ®ionid, const std::vector< char > &chances)
Definition: worldimp.cpp:1782
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 ...
Definition: worldimp.cpp:1850
virtual float getWindSpeed()
Definition: worldimp.cpp:2339
virtual bool findInteriorPositionInWorldSpace(const MWWorld::CellStore *cell, osg::Vec3f &result)
Definition: worldimp.cpp:2767
virtual bool toggleRenderMode(MWRender::RenderMode mode)
Definition: worldimp.cpp:1523
virtual osg::Vec3f getStormDirection() const
Definition: worldimp.cpp:2355
virtual void setMoonColour(bool red)
Definition: worldimp.cpp:952
virtual void indexToPosition(int cellX, int cellY, float &x, float &y, bool centre=false) const
Convert cell numbers to position.
Definition: worldimp.cpp:1397
virtual void breakInvisibility(const MWWorld::Ptr &actor)
Definition: worldimp.cpp:2741
Mutable state of a cell.
Definition: cellstore.hpp:53
virtual osg::Vec2f getNorthVector(const CellStore *cell)
get north vector for given interior cell
Definition: worldimp.cpp:1787
virtual bool getPlayerCollidingWith(const MWWorld::ConstPtr &object)
Definition: worldimp.cpp:2266
virtual void update(float duration, bool paused)
Definition: worldimp.cpp:1610
void ensureNeededRecords()
Definition: worldimp.cpp:390
virtual bool getActorCollidingWith(const MWWorld::ConstPtr &object)
Definition: worldimp.cpp:2272
virtual void castSpell(const MWWorld::Ptr &actor)
Cast the actual spell, should be called mid-animation.
Definition: worldimp.cpp:2646
virtual void setWaterHeight(const float height)
Definition: worldimp.cpp:1856
Pointer to a const LiveCellRef.
Definition: ptr.hpp:90
virtual bool isSwimming(const MWWorld::ConstPtr &object) const
Definition: worldimp.cpp:2054
virtual bool toggleGodMode()
Definition: worldimp.cpp:2563
virtual void processChangedSettings(const Settings::CategorySettingVector &settings)
Definition: worldimp.cpp:2008
virtual void changeWeather(const std::string ®ion, const unsigned int id)
Definition: worldimp.cpp:1777
Definition: contentloader.hpp:13
virtual bool getActorStandingOn(const MWWorld::ConstPtr &object)
Definition: worldimp.cpp:2259
Definition: loadlevlist.hpp:46
float feetToGameUnits(float feet)
Definition: worldimp.cpp:3018
virtual osg::Matrixf getActorHeadTransform(const MWWorld::ConstPtr &actor) const
Definition: worldimp.cpp:1045
float distance(const ESM::Pathgrid::Point &point, float x, float y, float z)
Definition: pathfinding.cpp:69
virtual void clear()
Definition: worldimp.cpp:284
Definition: loadcell.hpp:64
virtual void preloadCommonAssets()
Definition: worldimp.cpp:3342
std::string mCurrentWorldSpace
Definition: worldimp.hpp:96
virtual float getMaxActivationDistance()
Definition: worldimp.cpp:1011
bool mGoToJail
Definition: worldimp.hpp:167
virtual void removeRefScript(MWWorld::RefData *ref)
Definition: worldimp.cpp:624
In-game time stamp.
Definition: timestamp.hpp:14
virtual std::pair< MWWorld::Ptr, osg::Vec3f > getHitContact(const MWWorld::ConstPtr &ptr, float distance)
Definition: worldimp.cpp:1062
virtual void confiscateStolenItems(const MWWorld::Ptr &ptr)
Moves all stolen items from ptr to the closest evidence chest.
Definition: worldimp.cpp:3069
void updateWeather(float duration, bool paused=false)
Definition: worldimp.cpp:2915
virtual void changeVanityModeScale(float factor)
Definition: worldimp.cpp:2135
virtual bool isCellExterior() const
Definition: worldimp.cpp:1749
virtual void markCellAsUnchanged()
Definition: worldimp.cpp:1006
virtual bool getScriptsEnabled() const
Definition: worldimp.cpp:2576
virtual void togglePOV()
Definition: worldimp.cpp:2105
virtual bool isOnGround(const MWWorld::Ptr &ptr) const
Definition: worldimp.cpp:2100
virtual bool getPlayerStandingOn(const MWWorld::ConstPtr &object)
Definition: worldimp.cpp:2253
Definition: loadclot.hpp:18
virtual const MWWorld::ESMStore & getStore() const
Definition: worldimp.cpp:551
virtual bool isWalkingOnWater(const MWWorld::ConstPtr &actor) const
Definition: worldimp.cpp:3317
void PCDropped(const Ptr &item)
Definition: worldimp.cpp:1872
virtual void togglePlayerLooking(bool enable)
Definition: worldimp.cpp:2130
MWWorld::Globals mGlobalVariables
Definition: worldimp.hpp:83
virtual void screenshot(osg::Image *image, int w, int h)
Definition: worldimp.cpp:2217
virtual void setupPlayer()
Definition: worldimp.cpp:2150
virtual const ESM::Potion * createRecord(const ESM::Potion &record)
Definition: worldimp.cpp:1534
bool isUnderwater(const MWWorld::ConstPtr &object, const float heightRatio) const
helper function for implementing isSwimming(), isSubmerged(), isWading()
Definition: worldimp.cpp:2065
MWWorld::ConstPtr getClosestMarker(const MWWorld::Ptr &ptr, const std::string &id)
Definition: worldimp.cpp:2817
virtual CellStore * getExterior(int x, int y)
Definition: worldimp.cpp:517
bool mScriptsEnabled
Definition: worldimp.hpp:101
virtual int countSavedGameRecords() const
Definition: worldimp.cpp:314
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.
Definition: worldimp.cpp:1449
virtual Ptr searchPtrViaActorId(int actorId)
Search is limited to the active cells.
Definition: worldimp.cpp:681
virtual const Fallback::Map * getFallback() const
Definition: worldimp.cpp:512
List of active local scripts.
Definition: localscripts.hpp:16
Definition: loadclas.hpp:18
bool mSky
Definition: worldimp.hpp:85
virtual Ptr getPtr(const std::string &name, bool activeOnly)
Definition: worldimp.cpp:673
Definition: variant.hpp:25
virtual osg::Vec3f aimToTarget(const MWWorld::ConstPtr &actor, const MWWorld::ConstPtr &target)
Definition: worldimp.cpp:3325
ESM::Variant * mDay
Definition: worldimp.hpp:89
virtual void advanceTime(double hours, bool incremental=false)
Advance in-game time.
Definition: worldimp.cpp:807
virtual void getItemsOwnedBy(const MWWorld::ConstPtr &npc, std::vector< MWWorld::Ptr > &out)
get all items in active cells owned by this Npc
Definition: worldimp.cpp:2408
virtual MWWorld::Ptr safePlaceObject(const MWWorld::ConstPtr &ptr, const MWWorld::ConstPtr &referenceObject, MWWorld::CellStore *referenceCell, int direction, float distance)
Definition: worldimp.cpp:1345
virtual void spawnBloodEffect(const MWWorld::Ptr &ptr, const osg::Vec3f &worldPosition)
Spawn a blood effect for ptr at worldPosition.
Definition: worldimp.cpp:3168
virtual bool isTeleportingEnabled() const
Returns true if teleport spell effects are allowed.
Definition: worldimp.cpp:2538
World()
Definition: world.hpp:94
float mSwimHeightScale
Definition: worldimp.hpp:158
void processDoors(float duration)
Run physics simulation and modify world accordingly.
Definition: worldimp.cpp:1457
Interface for weather settings.
Definition: weather.hpp:205
virtual void renderPlayer()
Definition: worldimp.cpp:2169
virtual LocalScripts & getLocalScripts()
Definition: worldimp.cpp:561
virtual Player & getPlayer()
Definition: worldimp.cpp:546
World & operator=(const World &)
virtual bool isWaterWalkingCastableOnTarget(const MWWorld::ConstPtr &target) const
Definition: worldimp.cpp:2082
boost::shared_ptr< ProjectileManager > mProjectileManager
Definition: worldimp.hpp:98
virtual bool findExteriorPosition(const std::string &name, ESM::Position &pos)
Definition: worldimp.cpp:2516
virtual void reattachPlayerCamera()
Definition: worldimp.cpp:2553
virtual const ESM::CreatureLevList * createOverrideRecord(const ESM::CreatureLevList &record)
Definition: worldimp.cpp:1554
virtual float getTimeScaleFactor() const
Definition: worldimp.cpp:957
virtual bool isInStorm() const
Definition: worldimp.cpp:2347
Definition: loadlevlist.hpp:66
virtual std::string getMonthName(int month=-1) const
Return name of month (-1: current month)
Definition: worldimp.cpp:910
void removeContainerScripts(const Ptr &reference)
Definition: worldimp.cpp:770
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
virtual void launchProjectile(MWWorld::Ptr actor, MWWorld::ConstPtr projectile, const osg::Vec3f &worldPos, const osg::Quat &orient, MWWorld::Ptr bow, float speed, float attackStrength)
Definition: worldimp.cpp:2724
virtual bool isLevitationEnabled() const
Returns true if levitation spell effect is allowed.
Definition: worldimp.cpp:2548
virtual int getSecundaPhase() const
Definition: worldimp.cpp:947
Definition: collections.hpp:10
Definition: loadench.hpp:18
virtual float getDistanceToFacedObject()
Definition: worldimp.cpp:1040
Definition: loadalch.hpp:18
virtual void changeToExteriorCell(const ESM::Position &position, bool adjustPlayerPos, bool changeEvent=true)
Definition: worldimp.cpp:980
Definition: to_utf8.hpp:25
virtual void enableLevitation(bool enable)
Enables or disables use of levitation spell effect.
Definition: worldimp.cpp:2543
Ptr moveObjectImp(const Ptr &ptr, float x, float y, float z, bool movePhysics=true)
Definition: worldimp.cpp:1226
virtual void enable(const Ptr &ptr)
Definition: worldimp.cpp:755
virtual bool isWading(const MWWorld::ConstPtr &object) const
Definition: worldimp.cpp:2059
virtual bool isPlayerInJail() const
Definition: worldimp.cpp:3128
Definition: cellid.hpp:11
bool mTeleportEnabled
Definition: worldimp.hpp:165
DetectionType
Definition: world.hpp:508
virtual bool isSlowFalling(const MWWorld::Ptr &ptr) const
Definition: worldimp.cpp:2037
std::string mStartupScript
Definition: worldimp.hpp:110
virtual bool hasCellChanged() const
Has the set of active cells changed, since the last frame?
Definition: worldimp.cpp:566
virtual int canRest()
Definition: worldimp.cpp:2186
EffectList, ENAM subrecord.
Definition: effectlist.hpp:33
void updatePlayer(bool paused)
Definition: worldimp.cpp:1629
Definition: loadbook.hpp:15
virtual osg::Vec3f getHalfExtents(const MWWorld::ConstPtr &actor, bool rendering=false) const
Return physical or rendering half extents of the given actor.
Definition: worldimp.cpp:3141
virtual float getHitDistance(const MWWorld::ConstPtr &actor, const MWWorld::ConstPtr &target)
Return the distance between actor's weapon and target's collision box.
Definition: worldimp.cpp:3333
virtual void allowVanityMode(bool allow)
Definition: worldimp.cpp:2125
virtual const std::vector< std::string > & getContentFiles() const
Definition: worldimp.cpp:2736
RenderMode
Definition: rendermode.hpp:7
virtual void listDetectedReferences(const MWWorld::Ptr &ptr, std::vector< MWWorld::Ptr > &out, DetectionType type)
Definition: worldimp.cpp:2992
virtual MWWorld::Ptr getFacedObject()
Return pointer to the object the player is looking at, if it is within activation range...
Definition: worldimp.cpp:1020
virtual void setHour(double hour)
Set in-game time hour.
Definition: worldimp.cpp:827
MWWorld::ConstPtr getClosestMarkerFromExteriorPosition(const osg::Vec3f &worldPos, const std::string &id)
Definition: worldimp.cpp:2873
virtual bool vanityRotateCamera(float *rot)
Definition: worldimp.cpp:2140
Definition: loadweap.hpp:16
const char * name
Definition: crashcatcher.cpp:59
virtual bool toggleCollisionMode()
Definition: worldimp.cpp:1518
std::string mStartCell
Definition: worldimp.hpp:115
std::vector< std::string > mContentFiles
Definition: worldimp.hpp:102
virtual void readRecord(ESM::ESMReader &reader, uint32_t type, const std::map< int, int > &contentFileMap)
Definition: worldimp.cpp:363