Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2969 for code/branches


Ignore:
Timestamp:
May 11, 2009, 3:58:38 PM (16 years ago)
Author:
jsmely
Message:

weapon updated

Location:
code/branches/weapons/src/orxonox/objects
Files:
4 added
6 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weapons/src/orxonox/objects/weaponsystem/projectiles/BillboardProjectile.cc

    r2896 r2969  
    6464        this->billboard_.setColour(colour);
    6565    }
     66   
     67    void BillboardProjectile::setMaterial(const std::string& material)
     68    {
     69        this->billboard_.setMaterial(material);
     70    }
    6671
    6772    void BillboardProjectile::changedVisibility()
  • code/branches/weapons/src/orxonox/objects/weaponsystem/projectiles/BillboardProjectile.h

    r2662 r2969  
    4545
    4646            virtual void setColour(const ColourValue& colour);
     47            virtual void setMaterial(const std::string& material);
    4748            virtual void changedVisibility();
    4849
  • code/branches/weapons/src/orxonox/objects/weaponsystem/projectiles/CMakeLists.txt

    r2710 r2969  
    33  ParticleProjectile.cc
    44  Projectile.cc
     5  LightningGunProjectile.cc
    56)
  • code/branches/weapons/src/orxonox/objects/weaponsystem/weaponmodes/CMakeLists.txt

    r2921 r2969  
    22  FusionFire.cc
    33  LaserFire.cc
     4  LightningGun.cc
    45)
  • code/branches/weapons/src/orxonox/objects/worldentities/Billboard.cc

    r2896 r2969  
    4747        this->material_ = "";
    4848        this->colour_ = ColourValue::White;
     49//        this->rotation_ = 0;
    4950
    5051        this->registerVariables();
     
    6667        XMLPortParam(Billboard, "material", setMaterial, getMaterial, xmlelement, mode);
    6768        XMLPortParam(Billboard, "colour",   setColour,   getColour,   xmlelement, mode).defaultValues(ColourValue::White);
     69//        XMLPortParam(Billboard, "rotation", setRotation, getRotation, xmlelement, mode).defaultValues(0);
    6870    }
    6971
     
    7274        registerVariable(this->material_, variableDirection::toclient, new NetworkCallback<Billboard>(this, &Billboard::changedMaterial));
    7375        registerVariable(this->colour_,   variableDirection::toclient, new NetworkCallback<Billboard>(this, &Billboard::changedColour));
     76//        registerVariable(this->rotation_, variableDirection::toclient, new NetworkCallback<Billboard>(this, &Billboard::changedRotation));
    7477    }
    7578
     
    8790                     this->attachOgreObject(this->billboard_.getBillboardSet());
    8891                this->billboard_.setVisible(this->isVisible());
     92//                this->changedRotation();
    8993            }
    9094        }
     
    110114            this->billboard_.setColour(this->colour_);
    111115    }
     116   
     117/*
     118    void Billboard::changedRotation()
     119    {
     120        if (this->billboard_.getBillboardSet())
     121            this->billboard_.getBillboardSet()->setRotation(this->rotation_);
     122    }
     123*/
    112124
    113125    void Billboard::changedVisibility()
  • code/branches/weapons/src/orxonox/objects/worldentities/Billboard.h

    r2826 r2969  
    6161            inline const ColourValue& getColour() const
    6262                { return this->colour_; }
    63 
     63/*
     64            inline void setRotation(const Radian& rotation)
     65                { this->rotation_ = rotation; this->changedRotation(); }
     66            inline const Radian& getRotation() const
     67                { return this->rotation_; }
     68*/
    6469            virtual void setTeamColour(const ColourValue& colour)
    6570                { this->setColour(colour); }
     
    7378        private:
    7479            void changedMaterial();
     80//            void changedRotation();
    7581
    7682            BillboardSet billboard_;
    7783            std::string material_;
    7884            ColourValue colour_;
     85//            Radian rotation_;
    7986    };
    8087}
Note: See TracChangeset for help on using the changeset viewer.