Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 3, 2008, 12:20:36 AM (16 years ago)
Author:
rgrieder
Message:
  • moved Tickable to objects again
  • network, audio and core now have their own tick routine
  • Sequence is defined in Orxonox.cc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/input/src/orxonox/Orxonox.cc

    r1519 r1524  
    5757#include "core/Debug.h"
    5858#include "core/Loader.h"
    59 #include "core/Tickable.h"
    6059#include "core/input/InputManager.h"
    6160#include "core/TclBind.h"
     61#include "core/Core.h"
    6262
    6363// audio
     
    7070// objects and tools
    7171#include "hud/HUD.h"
    72 #include <Ogre.h>
     72#include "objects/Tickable.h"
    7373
    7474#include "GraphicsEngine.h"
     
    7676// FIXME: is this really file scope?
    7777// globals for the server or client
    78 network::Client *client_g;
    79 network::Server *server_g;
     78network::Client *client_g = 0;
     79network::Server *server_g = 0;
    8080
    8181namespace orxonox
     
    430430      }
    431431
     432      // tick the core
     433      Core::tick((float)evt.timeSinceLastFrame);
    432434      // Call those objects that need the real time
    433435      for (Iterator<TickableReal> it = ObjectList<TickableReal>::start(); it; ++it)
     
    436438      for (Iterator<Tickable> it = ObjectList<Tickable>::start(); it; ++it)
    437439        it->tick((float)evt.timeSinceLastFrame * this->timefactor_);
     440      //AudioManager::tick();
     441      if (client_g)
     442        client_g->tick((float)evt.timeSinceLastFrame);
     443      if (server_g)
     444        server_g->tick((float)evt.timeSinceLastFrame);
    438445
    439446      // don't forget to call _fireFrameStarted in ogre to make sure
Note: See TracChangeset for help on using the changeset viewer.