Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 9, 2008, 4:31:34 PM (16 years ago)
Author:
scheusso
Message:

merged network branch back into trunk

Location:
code/trunk/src/orxonox/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/Model.cc

    r1747 r1751  
    4545    CreateFactory(Model);
    4646
     47    /**
     48     *
     49     */
    4750    Model::Model()
    4851    {
    4952        RegisterObject(Model);
    5053        registerAllVariables();
     54        if(this->isExactlyA(Class(Model)))
     55           setObjectFrequency(1);
    5156    }
    5257
  • code/trunk/src/orxonox/objects/SpaceShip.cc

    r1747 r1751  
    7878          return *it;
    7979      }
    80       return 0;
     80      assert(0);
    8181    }
    8282
     
    165165        if(network::Host::running())
    166166          COUT(3) << "this id: " << this->objectID << " myShipID: " << network::Host::getShipID() << std::endl;
    167         if(network::Host::running() && objectID == network::Host::getShipID())
     167        if(network::Host::running() && objectID == network::Host::getShipID()){
     168          if(!network::Host::isServer())
     169            setObjectMode(0x3);
    168170          myShip_=true;
     171        }
    169172        else
    170173          this->setRadarObjectColour(this->getProjectileColour());
     
    242245
    243246        // START CREATING ADDITIONAL EFFECTS
    244         this->backlight_ = new Backlight(this->maxSpeed_, 0.8);
    245         this->attachObject(this->backlight_);
    246         this->backlight_->setPosition(-2.35, 0, 0.2);
    247         this->backlight_->setColour(this->getProjectileColour());
    248 
    249         this->smoke_ = new ParticleSpawner();
    250         this->smoke_->setParticle("Orxonox/smoke5", LODParticle::normal, 0, 0, 3);
    251         this->attachObject(this->smoke_);
    252 
    253         this->fire_ = new ParticleSpawner();
    254         this->fire_->setParticle("Orxonox/fire3", LODParticle::normal, 0, 0, 1);
    255         this->attachObject(this->fire_);
     247        /*if(!network::Host::running() || network::Host::isServer()){
     248          this->backlight_ = new Backlight(this->maxSpeed_, 0.8);
     249          this->attachObject(this->backlight_);
     250          this->backlight_->setPosition(-2.35, 0, 0.2);
     251          this->backlight_->setColour(this->getProjectileColour());
     252   
     253          this->smoke_ = new ParticleSpawner();
     254          this->smoke_->setParticle("Orxonox/smoke5", LODParticle::normal, 0, 0, 3);
     255          this->attachObject(this->smoke_);
     256   
     257          this->fire_ = new ParticleSpawner();
     258          this->fire_->setParticle("Orxonox/fire3", LODParticle::normal, 0, 0, 1);
     259          this->attachObject(this->fire_);
     260        }*/
    256261        // END CREATING ADDITIONAL EFFECTS
    257262
     
    357362      if(myShip_){
    358363        COUT(3) << "requesting focus for camera" << std::endl;
    359         this->setBacksync(true);
    360364        //CameraHandler::getInstance()->requestFocus(cam_);
    361365        if(this->isExactlyA(Class(SpaceShip))){
     
    463467            }
    464468
    465             projectile->setBacksync(true);
     469            projectile->setObjectMode(0x3);
    466470            this->timeToReload_ = this->reloadTime_;
    467471        }
Note: See TracChangeset for help on using the changeset viewer.