mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-03 12:56:40 +00:00
Remove redundant update virtual functions
This commit is contained in:
parent
79676aee15
commit
2dc6e755b2
11 changed files with 8 additions and 25 deletions
|
|
@ -66,12 +66,6 @@ namespace MWBase
|
||||||
virtual void drop (const MWWorld::CellStore *cellStore) = 0;
|
virtual void drop (const MWWorld::CellStore *cellStore) = 0;
|
||||||
///< Deregister all objects in the given cell.
|
///< Deregister all objects in the given cell.
|
||||||
|
|
||||||
virtual void update (float duration, bool paused) = 0;
|
|
||||||
///< Update objects
|
|
||||||
///
|
|
||||||
/// \param paused In game type does not currently advance (this usually means some GUI
|
|
||||||
/// component is up).
|
|
||||||
|
|
||||||
virtual void setPlayerName (const std::string& name) = 0;
|
virtual void setPlayerName (const std::string& name) = 0;
|
||||||
///< Set player name.
|
///< Set player name.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -176,8 +176,6 @@ namespace MWBase
|
||||||
virtual void pausePlayback() = 0;
|
virtual void pausePlayback() = 0;
|
||||||
virtual void resumePlayback() = 0;
|
virtual void resumePlayback() = 0;
|
||||||
|
|
||||||
virtual void update(float duration) = 0;
|
|
||||||
|
|
||||||
virtual void setListenerPosDir(const osg::Vec3f &pos, const osg::Vec3f &dir, const osg::Vec3f &up, bool underwater) = 0;
|
virtual void setListenerPosDir(const osg::Vec3f &pos, const osg::Vec3f &dir, const osg::Vec3f &up, bool underwater) = 0;
|
||||||
|
|
||||||
virtual void updatePtr(const MWWorld::ConstPtr& old, const MWWorld::ConstPtr& updated) = 0;
|
virtual void updatePtr(const MWWorld::ConstPtr& old, const MWWorld::ConstPtr& updated) = 0;
|
||||||
|
|
|
||||||
|
|
@ -88,8 +88,6 @@ namespace MWBase
|
||||||
/// iterator.
|
/// iterator.
|
||||||
|
|
||||||
virtual CharacterIterator characterEnd() = 0;
|
virtual CharacterIterator characterEnd() = 0;
|
||||||
|
|
||||||
virtual void update (float duration) = 0;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -247,8 +247,6 @@ namespace MWBase
|
||||||
/// returns the index of the pressed button or -1 if no button was pressed (->MessageBoxmanager->InteractiveMessageBox)
|
/// returns the index of the pressed button or -1 if no button was pressed (->MessageBoxmanager->InteractiveMessageBox)
|
||||||
virtual int readPressedButton() = 0;
|
virtual int readPressedButton() = 0;
|
||||||
|
|
||||||
virtual void update (float duration) = 0;
|
|
||||||
|
|
||||||
virtual void updateConsoleObjectPtr(const MWWorld::Ptr& currentPtr, const MWWorld::Ptr& newPtr) = 0;
|
virtual void updateConsoleObjectPtr(const MWWorld::Ptr& currentPtr, const MWWorld::Ptr& newPtr) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -408,11 +408,6 @@ namespace MWBase
|
||||||
///< Write this record to the ESM store, allowing it to override a pre-existing record with the same ID.
|
///< Write this record to the ESM store, allowing it to override a pre-existing record with the same ID.
|
||||||
/// \return pointer to created record
|
/// \return pointer to created record
|
||||||
|
|
||||||
virtual void update (float duration, bool paused) = 0;
|
|
||||||
virtual void updatePhysics (float duration, bool paused, osg::Timer_t frameStart, unsigned int frameNumber, osg::Stats& stats) = 0;
|
|
||||||
|
|
||||||
virtual void updateWindowManager () = 0;
|
|
||||||
|
|
||||||
virtual MWWorld::Ptr placeObject (const MWWorld::ConstPtr& object, float cursorX, float cursorY, int amount) = 0;
|
virtual MWWorld::Ptr placeObject (const MWWorld::ConstPtr& object, float cursorX, float cursorY, int amount) = 0;
|
||||||
///< copy and place an object into the gameworld at the specified cursor position
|
///< copy and place an object into the gameworld at the specified cursor position
|
||||||
/// @param object
|
/// @param object
|
||||||
|
|
|
||||||
|
|
@ -277,7 +277,7 @@ namespace MWGui
|
||||||
|
|
||||||
int readPressedButton () override; ///< returns the index of the pressed button or -1 if no button was pressed (->MessageBoxmanager->InteractiveMessageBox)
|
int readPressedButton () override; ///< returns the index of the pressed button or -1 if no button was pressed (->MessageBoxmanager->InteractiveMessageBox)
|
||||||
|
|
||||||
void update (float duration) override;
|
void update (float duration);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fetches a GMST string from the store, if there is no setting with the given
|
* Fetches a GMST string from the store, if there is no setting with the given
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ namespace MWInput
|
||||||
/// Clear all savegame-specific data
|
/// Clear all savegame-specific data
|
||||||
void clear() override;
|
void clear() override;
|
||||||
|
|
||||||
void update(float dt, bool disableControls=false, bool disableEvents=false) override;
|
void update(float dt, bool disableControls, bool disableEvents=false) override;
|
||||||
|
|
||||||
void changeInputMode(bool guiMode) override;
|
void changeInputMode(bool guiMode) override;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ namespace MWMechanics
|
||||||
void drop(const MWWorld::CellStore *cellStore) override;
|
void drop(const MWWorld::CellStore *cellStore) override;
|
||||||
///< Deregister all objects in the given cell.
|
///< Deregister all objects in the given cell.
|
||||||
|
|
||||||
void update (float duration, bool paused) override;
|
void update(float duration, bool paused);
|
||||||
///< Update objects
|
///< Update objects
|
||||||
///
|
///
|
||||||
/// \param paused In game type does not currently advance (this usually means some GUI
|
/// \param paused In game type does not currently advance (this usually means some GUI
|
||||||
|
|
|
||||||
|
|
@ -244,7 +244,7 @@ namespace MWSound
|
||||||
void pausePlayback() override;
|
void pausePlayback() override;
|
||||||
void resumePlayback() override;
|
void resumePlayback() override;
|
||||||
|
|
||||||
void update(float duration) override;
|
void update(float duration);
|
||||||
|
|
||||||
void setListenerPosDir(const osg::Vec3f &pos, const osg::Vec3f &dir, const osg::Vec3f &up, bool underwater) override;
|
void setListenerPosDir(const osg::Vec3f &pos, const osg::Vec3f &dir, const osg::Vec3f &up, bool underwater) override;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@ namespace MWState
|
||||||
|
|
||||||
CharacterIterator characterEnd() override;
|
CharacterIterator characterEnd() override;
|
||||||
|
|
||||||
void update (float duration) override;
|
void update(float duration);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -495,10 +495,10 @@ namespace MWWorld
|
||||||
///< Write this record to the ESM store, allowing it to override a pre-existing record with the same ID.
|
///< Write this record to the ESM store, allowing it to override a pre-existing record with the same ID.
|
||||||
/// \return pointer to created record
|
/// \return pointer to created record
|
||||||
|
|
||||||
void update (float duration, bool paused) override;
|
void update(float duration, bool paused);
|
||||||
void updatePhysics (float duration, bool paused, osg::Timer_t frameStart, unsigned int frameNumber, osg::Stats& stats) override;
|
void updatePhysics(float duration, bool paused, osg::Timer_t frameStart, unsigned int frameNumber, osg::Stats& stats);
|
||||||
|
|
||||||
void updateWindowManager () override;
|
void updateWindowManager();
|
||||||
|
|
||||||
MWWorld::Ptr placeObject (const MWWorld::ConstPtr& object, float cursorX, float cursorY, int amount) override;
|
MWWorld::Ptr placeObject (const MWWorld::ConstPtr& object, float cursorX, float cursorY, int amount) override;
|
||||||
///< copy and place an object into the gameworld at the specified cursor position
|
///< copy and place an object into the gameworld at the specified cursor position
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue