Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 3, 2008, 12:20:36 AM (17 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
Location:
code/branches/input/src/orxonox
Files:
8 edited
2 moved

Legend:

Unmodified
Added
Removed
  • code/branches/input/src/orxonox/CMakeLists.txt

    r1505 r1524  
    2929  objects/SpaceShip.cc
    3030  objects/SpaceShipAI.cc
     31  objects/Tickable.cc
    3132  objects/WorldEntity.cc
    3233
  • 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
  • code/branches/input/src/orxonox/OrxonoxStableHeaders.h

    r1505 r1524  
    104104#include "core/Debug.h"
    105105//#include "core/Executor.h"
    106 #include "core/Tickable.h"
    107106//#include "core/XMLPort.h"
    108107
     
    111110#include "OrxonoxPrereqs.h"
    112111#include "tools/Timer.h"
     112#include "objects/Tickable.h"
    113113#include "objects/Model.h"
    114114#include "objects/WorldEntity.h"
  • code/branches/input/src/orxonox/console/InGameConsole.h

    r1505 r1524  
    3636#include <OgreTextAreaOverlayElement.h>
    3737
    38 #include "core/Tickable.h"
    3938#include "core/Shell.h"
     39#include "objects/Tickable.h"
    4040
    4141
  • code/branches/input/src/orxonox/hud/HUD.h

    r1505 r1524  
    3636#include <OgreTextAreaOverlayElement.h>
    3737#include <OgreSceneNode.h>
    38 #include "core/Tickable.h"
     38#include "objects/Tickable.h"
    3939#include "util/Math.h"
    4040
    4141namespace orxonox
    4242{
    43     class _OrxonoxExport HUD : public Tickable
     43    class _OrxonoxExport HUD : public TickableReal
    4444    {
    4545      private:
  • code/branches/input/src/orxonox/hud/RadarOverlayElement.cc

    r1505 r1524  
    3535
    3636#include "GraphicsEngine.h"
    37 #include "core/Tickable.h"
    3837#include "core/ConsoleCommand.h"
     38#include "objects/Tickable.h"
    3939#include "objects/SpaceShip.h"
    4040#include "RadarObject.h"
  • code/branches/input/src/orxonox/objects/Tickable.cc

    r1510 r1524  
    2727 */
    2828
     29#include "OrxonoxStableHeaders.h"
    2930#include "Tickable.h"
    30 #include "CoreIncludes.h"
    31 #include "ConsoleCommand.h"
     31#include "core/CoreIncludes.h"
     32#include "core/ConsoleCommand.h"
    3233
    3334namespace orxonox
  • code/branches/input/src/orxonox/objects/Tickable.h

    r1510 r1524  
    4242#define _Tickable_H__
    4343
    44 #include "CorePrereqs.h"
     44#include "OrxonoxPrereqs.h"
    4545
    46 #include "OrxonoxClass.h"
     46#include "core/OrxonoxClass.h"
    4747
    4848namespace orxonox
    4949{
    5050    //! The Tickable interface provides a tick(dt) function, that gets called every frame.
    51     class _CoreExport Tickable : virtual public OrxonoxClass
     51    class _OrxonoxExport Tickable : virtual public OrxonoxClass
    5252    {
    5353        public:
     
    6363
    6464    //! The Tickable interface provides a tick(dt) function, that gets called every frame.
    65     class _CoreExport TickableReal : virtual public OrxonoxClass
     65    class _OrxonoxExport TickableReal : virtual public OrxonoxClass
    6666    {
    6767        public:
  • code/branches/input/src/orxonox/objects/WorldEntity.h

    r1505 r1524  
    3939#include "network/Synchronisable.h"
    4040#include "core/BaseObject.h"
    41 #include "core/Tickable.h"
     41#include "Tickable.h"
    4242#include "../tools/Mesh.h"
    4343
  • code/branches/input/src/orxonox/tools/Timer.h

    r1505 r1524  
    6262
    6363#include "OrxonoxPrereqs.h"
    64 #include "core/CorePrereqs.h"
    65 #include "core/Tickable.h"
     64#include "objects/Tickable.h"
    6665
    6766namespace orxonox
Note: See TracChangeset for help on using the changeset viewer.