From 335425bb1232573e7a70d8ae6272cce0f0f98457 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Tue, 27 Jul 2010 14:46:05 +0200 Subject: [PATCH] added MechanicsManager::update function (doesn't update anything yet) --- apps/openmw/engine.cpp | 3 +++ apps/openmw/mwmechanics/mechanicsmanager.cpp | 5 +++++ apps/openmw/mwmechanics/mechanicsmanager.hpp | 3 +++ 3 files changed, 11 insertions(+) diff --git a/apps/openmw/engine.cpp b/apps/openmw/engine.cpp index d515fcac17..93dd4c8b62 100644 --- a/apps/openmw/engine.cpp +++ b/apps/openmw/engine.cpp @@ -64,6 +64,9 @@ bool OMW::Engine::frameStarted(const Ogre::FrameEvent& evt) if (changed) // keep change flag for another frame, if cell changed happend in local script mEnvironment.mWorld->markCellAsUnchanged(); + + // update actors + mEnvironment.mMechanicsManager->update(); return true; } diff --git a/apps/openmw/mwmechanics/mechanicsmanager.cpp b/apps/openmw/mwmechanics/mechanicsmanager.cpp index ad40d2e0c8..96f82c2876 100644 --- a/apps/openmw/mwmechanics/mechanicsmanager.cpp +++ b/apps/openmw/mwmechanics/mechanicsmanager.cpp @@ -62,5 +62,10 @@ namespace MWMechanics else ++iter; } + + void MechanicsManager::update() + { + + } } diff --git a/apps/openmw/mwmechanics/mechanicsmanager.hpp b/apps/openmw/mwmechanics/mechanicsmanager.hpp index e0c44b93ef..af01a2e2e7 100644 --- a/apps/openmw/mwmechanics/mechanicsmanager.hpp +++ b/apps/openmw/mwmechanics/mechanicsmanager.hpp @@ -37,6 +37,9 @@ namespace MWMechanics void dropActors (const MWWorld::Ptr::CellStore *cellStore); ///< Deregister all actors in the given cell. + + void update(); + ///< Update actor stats }; }