EventManager.cpp 655 B

1234567891011121314151617181920212223
  1. #include <boost/foreach.hpp>
  2. #include "EventManager.h"
  3. namespace Event {
  4. //======================================================================================================================
  5. // updateAllEvents =
  6. //======================================================================================================================
  7. void Manager::updateAllEvents(uint prevUpdateTime, uint crntTime)
  8. {
  9. BOOST_FOREACH(Event& event, events)
  10. {
  11. if(!event.isDead(crntTime))
  12. {
  13. event.update(prevUpdateTime, crntTime);
  14. }
  15. }
  16. }
  17. } // end namespace