Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

weapon updated

Location:
code/branches/weapons/src/orxonox/objects/worldentities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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.