Changeset 2969 for code/branches
- Timestamp:
- May 11, 2009, 3:58:38 PM (16 years ago)
- 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 64 64 this->billboard_.setColour(colour); 65 65 } 66 67 void BillboardProjectile::setMaterial(const std::string& material) 68 { 69 this->billboard_.setMaterial(material); 70 } 66 71 67 72 void BillboardProjectile::changedVisibility() -
code/branches/weapons/src/orxonox/objects/weaponsystem/projectiles/BillboardProjectile.h
r2662 r2969 45 45 46 46 virtual void setColour(const ColourValue& colour); 47 virtual void setMaterial(const std::string& material); 47 48 virtual void changedVisibility(); 48 49 -
code/branches/weapons/src/orxonox/objects/weaponsystem/projectiles/CMakeLists.txt
r2710 r2969 3 3 ParticleProjectile.cc 4 4 Projectile.cc 5 LightningGunProjectile.cc 5 6 ) -
code/branches/weapons/src/orxonox/objects/weaponsystem/weaponmodes/CMakeLists.txt
r2921 r2969 2 2 FusionFire.cc 3 3 LaserFire.cc 4 LightningGun.cc 4 5 ) -
code/branches/weapons/src/orxonox/objects/worldentities/Billboard.cc
r2896 r2969 47 47 this->material_ = ""; 48 48 this->colour_ = ColourValue::White; 49 // this->rotation_ = 0; 49 50 50 51 this->registerVariables(); … … 66 67 XMLPortParam(Billboard, "material", setMaterial, getMaterial, xmlelement, mode); 67 68 XMLPortParam(Billboard, "colour", setColour, getColour, xmlelement, mode).defaultValues(ColourValue::White); 69 // XMLPortParam(Billboard, "rotation", setRotation, getRotation, xmlelement, mode).defaultValues(0); 68 70 } 69 71 … … 72 74 registerVariable(this->material_, variableDirection::toclient, new NetworkCallback<Billboard>(this, &Billboard::changedMaterial)); 73 75 registerVariable(this->colour_, variableDirection::toclient, new NetworkCallback<Billboard>(this, &Billboard::changedColour)); 76 // registerVariable(this->rotation_, variableDirection::toclient, new NetworkCallback<Billboard>(this, &Billboard::changedRotation)); 74 77 } 75 78 … … 87 90 this->attachOgreObject(this->billboard_.getBillboardSet()); 88 91 this->billboard_.setVisible(this->isVisible()); 92 // this->changedRotation(); 89 93 } 90 94 } … … 110 114 this->billboard_.setColour(this->colour_); 111 115 } 116 117 /* 118 void Billboard::changedRotation() 119 { 120 if (this->billboard_.getBillboardSet()) 121 this->billboard_.getBillboardSet()->setRotation(this->rotation_); 122 } 123 */ 112 124 113 125 void Billboard::changedVisibility() -
code/branches/weapons/src/orxonox/objects/worldentities/Billboard.h
r2826 r2969 61 61 inline const ColourValue& getColour() const 62 62 { 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 */ 64 69 virtual void setTeamColour(const ColourValue& colour) 65 70 { this->setColour(colour); } … … 73 78 private: 74 79 void changedMaterial(); 80 // void changedRotation(); 75 81 76 82 BillboardSet billboard_; 77 83 std::string material_; 78 84 ColourValue colour_; 85 // Radian rotation_; 79 86 }; 80 87 }
Note: See TracChangeset
for help on using the changeset viewer.