Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 793 for code


Ignore:
Timestamp:
Feb 9, 2008, 10:55:17 PM (17 years ago)
Author:
landauf
Message:

reduced the build-script of the core branch to the minimum (utils, core, orxonox + test objects)

Location:
code/branches/core
Files:
1 added
11 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core/bin/levels/sample.oxw

    r790 r793  
    1111
    1212
    13 
     13<!--
    1414 <audio>
    1515                <ambient>
     
    2121                </ambient>
    2222  </audio>
    23 
     23-->
    2424  <!-- Keep a minimum distance of >100 to the object, otherwise the camara thinks it's in the object -->
    2525  <!-- the value has to negative, as we want the camara behind the object -->
  • code/branches/core/src/CMakeLists.txt

    r790 r793  
    44ADD_SUBDIRECTORY(util)
    55ADD_SUBDIRECTORY(orxonox/core)
    6 ADD_SUBDIRECTORY(audio)
    7 ADD_SUBDIRECTORY(network)
    8 ADD_SUBDIRECTORY(loader)
     6#ADD_SUBDIRECTORY(audio)
     7#ADD_SUBDIRECTORY(network)
     8#ADD_SUBDIRECTORY(loader)
    99ADD_SUBDIRECTORY(orxonox)
  • code/branches/core/src/loader/CMakeLists.txt

    r790 r793  
    1313TARGET_LINK_LIBRARIES( loader
    1414  util
     15  core
    1516)
  • code/branches/core/src/loader/LevelLoader.cc

    r790 r793  
    3535#include "core/CoreIncludes.h"
    3636
    37 #include "audio/AudioManager.h"
     37//#include "audio/AudioManager.h"
    3838#include "core/BaseObject.h"
    3939#include "orxonox/Orxonox.h"
     
    9999    {
    100100      TiXmlElement* loadElem;
    101       TiXmlElement* audioElem;
     101//      TiXmlElement* audioElem;
    102102      TiXmlElement* worldElem;
    103103      TiXmlElement* tElem;
     
    139139
    140140      }
    141 
     141/*
    142142      // Load audio
    143143      audio::AudioManager* auMan = orxonox::Orxonox::getSingleton()->getAudioManagerPointer();
     
    169169        }
    170170      }
    171 
     171*/
    172172      // Load world
    173173      worldElem = rootElement_->FirstChildElement("world");
  • code/branches/core/src/orxonox/CMakeLists.txt

    r790 r793  
    33  Main.cc
    44  Orxonox.cc
    5   SpaceshipSteering.cc
    6   hud/HUD.cc
    7   particle/ParticleInterface.cc
    8   tools/BillboardSet.cc
    9   tools/Light.cc
     5#  SpaceshipSteering.cc
     6#  hud/HUD.cc
     7#  particle/ParticleInterface.cc
     8#  tools/BillboardSet.cc
     9#  tools/Light.cc
    1010  tools/Mesh.cc
    11   objects/Ambient.cc
    12   objects/Camera.cc
    13   objects/Explosion.cc
    14   objects/Fighter.cc
     11#  objects/Ambient.cc
     12#  objects/Camera.cc
     13#  objects/Explosion.cc
     14#  objects/Fighter.cc
    1515  objects/Model.cc
    16   objects/NPC.cc
    17   objects/Projectile.cc
    18   objects/Skybox.cc
    19   objects/SpaceShip.cc
    20 # objects/SpaceshipSteeringObject.cc
    21 # objects/test1.cc
    22 # objects/test2.cc
    23 # objects/test3.cc
     16#  objects/NPC.cc
     17#  objects/Projectile.cc
     18#  objects/Skybox.cc
     19#  objects/SpaceShip.cc
     20#  objects/SpaceshipSteeringObject.cc
     21  objects/test1.cc
     22  objects/test2.cc
     23  objects/test3.cc
    2424  objects/WorldEntity.cc
    25   objects/weapon/AmmunitionDump.cc
    26   objects/weapon/BarrelGun.cc
    27   objects/weapon/BaseWeapon.cc
    28   objects/weapon/Bullet.cc
    29   objects/weapon/BulletManager.cc
    30   objects/weapon/WeaponStation.cc
     25#  objects/weapon/AmmunitionDump.cc
     26#  objects/weapon/BarrelGun.cc
     27#  objects/weapon/BaseWeapon.cc
     28#  objects/weapon/Bullet.cc
     29#  objects/weapon/BulletManager.cc
     30#  objects/weapon/WeaponStation.cc
    3131)
    3232
     
    4040  util
    4141  core
    42   audio
    43   network
    44   loader
     42#  audio
     43#  network
     44#  loader
    4545)
    4646
  • code/branches/core/src/orxonox/Orxonox.cc

    r790 r793  
    5757
    5858// loader and audio
    59 #include "loader/LevelLoader.h"
    60 #include "audio/AudioManager.h"
     59//#include "loader/LevelLoader.h"
     60//#include "audio/AudioManager.h"
    6161
    6262// network
    63 #include "network/Server.h"
    64 #include "network/Client.h"
    65 #include "network/NetworkFrameListener.h"
     63//#include "network/Server.h"
     64//#include "network/Client.h"
     65//#include "network/NetworkFrameListener.h"
    6666
    6767// objects
    6868#include "objects/Tickable.h"
    6969#include "tools/Timer.h"
    70 #include "objects/NPC.h"
     70//#include "objects/NPC.h"
    7171#include "core/ArgReader.h"
    7272#include "core/Factory.h"
    7373#include "core/Debug.h"
    74 #include "hud/HUD.h"
    75 #include "objects/weapon/BulletManager.h"
     74//#include "hud/HUD.h"
     75//#include "objects/weapon/BulletManager.h"
    7676#include "GraphicsEngine.h"
    7777
     
    8484  {
    8585    public:
    86       OrxListener(OIS::Keyboard *keyboard, audio::AudioManager*  auMan, gameMode mode)
     86      OrxListener(OIS::Keyboard *keyboard/*, audio::AudioManager*  auMan*/, gameMode mode)
    8787      {
    8888        mKeyboard = keyboard;
    8989        mode_=mode;
    90         auMan_ = auMan;
     90//        auMan_ = auMan;
    9191      }
    9292
    9393      bool frameStarted(const Ogre::FrameEvent& evt)
    9494      {
    95         auMan_->update();
     95//        auMan_->update();
    9696        updateAI();
    9797
    98         if(mode_ == PRESENTATION)
     98/*        if(mode_ == PRESENTATION)
    9999          server_g->tick(evt.timeSinceLastFrame);
    100100        else if(mode_ == CLIENT)
    101101          client_g->tick(evt.timeSinceLastFrame);
    102 
     102*/
    103103        usleep(10);
    104104
     
    108108
    109109      void updateAI()
    110       {
     110      {/*
    111111        for(Iterator<NPC> it = ObjectList<NPC>::start(); it; ++it)
    112112        {
    113113          it->update();
    114         }
     114        }*/
    115115      }
    116116
     
    118118      gameMode mode_;
    119119      OIS::Keyboard *mKeyboard;
    120       audio::AudioManager*  auMan_;
     120//      audio::AudioManager*  auMan_;
    121121  };
    122122
     
    131131    this->ogre_ = new GraphicsEngine();
    132132    this->dataPath_ = "";
    133     this->loader_ = 0;
    134     this->auMan_ = 0;
     133//    this->loader_ = 0;
     134//    this->auMan_ = 0;
    135135    this->singletonRef_ = 0;
    136136    this->keyboard_ = 0;
     
    213213      //ogre_->getRoot()->addFrameListener(new network::ServerFrameListener());
    214214      //std::cout << "could not add framelistener" << std::endl;
    215       server_g->open();
     215//      server_g->open();
    216216      break;
    217217    case CLIENT:
    218       client_g->establishConnection();
     218//      client_g->establishConnection();
    219219      break;
    220220    case SERVER:
     
    279279    createFrameListener();
    280280    try{
    281       server_g = new network::Server(); //!< add port and bindadress
    282       server_g->open(); //!< open server and create listener thread
    283       if(ogre_ && ogre_->getRoot())
    284         ogre_->getRoot()->addFrameListener(new network::ServerFrameListener()); // adds a framelistener for the server
     281//      server_g = new network::Server(); //!< add port and bindadress
     282//      server_g->open(); //!< open server and create listener thread
     283//      if(ogre_ && ogre_->getRoot())
     284//        ogre_->getRoot()->addFrameListener(new network::ServerFrameListener()); // adds a framelistener for the server
    285285      COUT(3) << "Info: network framelistener added" << std::endl;
    286286    }
     
    303303    ogre_->setConfigPath(path);
    304304    ogre_->setup();
    305     server_g = new network::Server(); // FIXME add some settings if wanted
     305//    server_g = new network::Server(); // FIXME add some settings if wanted
    306306    if(!ogre_->load()) die(/* unable to load */);
    307307    // FIXME add network framelistener
     
    313313    ogre_->setConfigPath(path);
    314314    ogre_->setup();
    315     if(serverIp_.compare("")==0)
     315/*    if(serverIp_.compare("")==0)
    316316      client_g = new network::Client();
    317317    else
    318       client_g = new network::Client(serverIp_, 55556);
     318      client_g = new network::Client(serverIp_, 55556);*/
    319319    if(!ogre_->load()) die(/* unable to load */);
    320     ogre_->getRoot()->addFrameListener(new network::ClientFrameListener());
     320//    ogre_->getRoot()->addFrameListener(new network::ClientFrameListener());
    321321  }
    322322
     
    374374  {
    375375        // Init audio
    376     auMan_ = new audio::AudioManager();
    377 
    378     bulletMgr_ = new BulletManager();
     376//    auMan_ = new audio::AudioManager();
     377
     378//    bulletMgr_ = new BulletManager();
    379379
    380380    // load this file from config
    381     loader_ = new loader::LevelLoader("sample.oxw");
    382     loader_->loadLevel();
    383 
    384     Ogre::Overlay* hudOverlay = Ogre::OverlayManager::getSingleton().getByName("Orxonox/HUD1.2");
    385     HUD* orxonoxHud;
    386     orxonoxHud = new HUD();
    387     orxonoxHud->setEnergyValue(20);
    388     orxonoxHud->setEnergyDistr(20,20,60);
    389     hudOverlay->show();
     381//    loader_ = new loader::LevelLoader("sample.oxw");
     382//    loader_->loadLevel();
     383
     384//    Ogre::Overlay* hudOverlay = Ogre::OverlayManager::getSingleton().getByName("Orxonox/HUD1.2");
     385//    HUD* orxonoxHud;
     386//    orxonoxHud = new HUD();
     387//    orxonoxHud->setEnergyValue(20);
     388//    orxonoxHud->setEnergyDistr(20,20,60);
     389//    hudOverlay->show();
    390390
    391391        /*
     
    458458
    459459    //if(mode_!=CLIENT) // FIXME just a hack ------- remove this in future
    460       frameListener_ = new OrxListener(keyboard_, auMan_, mode_);
     460      frameListener_ = new OrxListener(keyboard_/*, auMan_*/, mode_);
    461461    ogre_->getRoot()->addFrameListener(frameListener_);
    462462  }
  • code/branches/core/src/orxonox/Orxonox.h

    r790 r793  
    4141      inline Ogre::SceneManager* getSceneManager()         { return ogre_->getSceneManager(); };
    4242      inline GraphicsEngine* getOgrePointer()              { return ogre_; };
    43       inline audio::AudioManager* getAudioManagerPointer() { return auMan_; };
     43//      inline audio::AudioManager* getAudioManagerPointer() { return auMan_; };
    4444      inline OIS::Keyboard* getKeyboard()                  { return this->keyboard_; }
    4545      inline OIS::Mouse* getMouse()                        { return this->mouse_; }
    46       inline BulletManager* getBulletMgr()                 { return this->bulletMgr_; }
     46//      inline BulletManager* getBulletMgr()                 { return this->bulletMgr_; }
    4747
    4848    private:
     
    6969      GraphicsEngine*       ogre_;          //!< our dearest graphics engine <3
    7070      std::string           dataPath_;      //!< path to data
    71       loader::LevelLoader*  loader_;        //!< level loader builds the scene
    72       audio::AudioManager*  auMan_;         //!< audio manager
    73       BulletManager*        bulletMgr_;     //!< Keeps track of the thrown bullets
     71//      loader::LevelLoader*  loader_;        //!< level loader builds the scene
     72//      audio::AudioManager*  auMan_;         //!< audio manager
     73//      BulletManager*        bulletMgr_;     //!< Keeps track of the thrown bullets
    7474      static Orxonox*       singletonRef_;
    7575      OIS::Keyboard*        keyboard_;
  • code/branches/core/src/orxonox/objects/Model.cc

    r790 r793  
    7171
    7272    void Model::registerAllVariables(){
    73       registerVar(&meshSrc_, meshSrc_.length() + 1, network::STRING);
     73//      registerVar(&meshSrc_, meshSrc_.length() + 1, network::STRING);
    7474    }
    7575}
  • code/branches/core/src/orxonox/objects/WorldEntity.cc

    r790 r793  
    163163    void WorldEntity::registerAllVariables()
    164164    {
    165       // register coordinates
     165/*      // register coordinates
    166166      registerVar( (void*) &(this->getPosition().x), sizeof(this->getPosition().x), network::DATA);
    167167      registerVar( (void*) &(this->getPosition().y), sizeof(this->getPosition().y), network::DATA);
     
    171171      registerVar( (void*) &(this->getOrientation().x), sizeof(this->getOrientation().x), network::DATA);
    172172      registerVar( (void*) &(this->getOrientation().y), sizeof(this->getOrientation().y), network::DATA);
    173       registerVar( (void*) &(this->getOrientation().z), sizeof(this->getOrientation().z), network::DATA);
     173      registerVar( (void*) &(this->getOrientation().z), sizeof(this->getOrientation().z), network::DATA);*/
    174174      // not needed at the moment, because we don't have prediction yet
    175175      /*// register velocity_
  • code/branches/core/src/orxonox/objects/WorldEntity.h

    r790 r793  
    1717namespace orxonox
    1818{
    19   class _OrxonoxExport WorldEntity : public BaseObject, public Tickable, public network::Synchronisable
     19  class _OrxonoxExport WorldEntity : public BaseObject, public Tickable//, public network::Synchronisable
    2020  {
    2121    public:
  • code/branches/core/src/orxonox/objects/test3.cc

    r790 r793  
    5151        SetConfigValue(value_bool_, 1);
    5252        SetConfigValue(value_string_, "This is a test");
    53         SetConfigValue(value_constchar_, "This is another test");
     53//        SetConfigValue(value_constchar_, "This is another test");
    5454        SetConfigValue(value_vector2_, Vector2(101, 202));
    5555        SetConfigValue(value_vector3_, Vector3(13, 26, 39));
Note: See TracChangeset for help on using the changeset viewer.