Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3088 for code/trunk/src


Ignore:
Timestamp:
May 27, 2009, 4:09:13 PM (16 years ago)
Author:
scheusso
Message:

fix in Projectile (there was no createFactory) and some additional debugging
and in hubtimer (only on server now)
and in lightninggun (material is synchronised)

Location:
code/trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/network/synchronisable/Synchronisable.cc

    r3084 r3088  
    144144    if (!id)
    145145    {
    146         for(int i = 0; i<100; i++)
     146        for(int i = 0; i<160; i++)
    147147            COUT(0) << "classid: " << i << " identifier: " << ClassByID(i) << endl;
    148148        COUT(0) << "Assertion failed: id" << std::endl;
     
    251251        this->classID = this->getIdentifier()->getNetworkID();
    252252
     253    assert(ClassByID(this->classID));
    253254    assert(this->classID==this->getIdentifier()->getNetworkID());
    254255    std::vector<SynchronisableVariableBase*>::iterator i;
  • code/trunk/src/orxonox/objects/weaponsystem/projectiles/LightningGunProjectile.cc

    r3053 r3088  
    4848        this->maxTextureIndex_ = 8;
    4949        this->textureTimer_.setTimer(0.01, true, this, createExecutor(createFunctor(&LightningGunProjectile::changeTexture)));
     50       
     51        registerVariables();
     52    }
     53   
     54    void LightningGunProjectile::registerVariables()
     55    {
     56        registerVariable(this->materialBase_);
    5057    }
    5158   
  • code/trunk/src/orxonox/objects/weaponsystem/projectiles/LightningGunProjectile.h

    r3053 r3088  
    5252            Timer<LightningGunProjectile> textureTimer_;
    5353            std::string materialBase_;
     54      private:
     55            void registerVariables();
    5456    };
    5557}
  • code/trunk/src/orxonox/objects/weaponsystem/projectiles/Projectile.cc

    r3073 r3088  
    4545namespace orxonox
    4646{
     47    CreateFactory(Projectile);
     48 
    4749    Projectile::Projectile(BaseObject* creator) : MovableEntity(creator)
    4850    {
  • code/trunk/src/orxonox/overlays/hud/HUDTimer.cc

    r3033 r3088  
    5555
    5656    Gametype* gametype = this->getGametype();
    57 
    58     if (gametype->getTimerIsActive())
     57   
     58    if(gametype)
    5959    {
    60       this->setCaption(convertToString((int)gametype->getTime() + 1));
     60      if (gametype->getTimerIsActive())
     61      {
     62        this->setCaption(convertToString((int)gametype->getTime() + 1));
     63      }
    6164    }
    6265  }
Note: See TracChangeset for help on using the changeset viewer.