Changeset 1610 for code/branches/core3/src/orxonox/objects
- Timestamp:
- Jun 19, 2008, 4:10:27 AM (16 years ago)
- Location:
- code/branches/core3/src/orxonox/objects
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core3/src/orxonox/objects/ParticleProjectile.cc
r1597 r1610 64 64 void ParticleProjectile::setConfigValues() 65 65 { 66 SetConfigValue(speed_, 5000.0).description("The speed of a projectile in units per second").callback( &ParticleProjectile::speedChanged);66 SetConfigValue(speed_, 5000.0).description("The speed of a projectile in units per second").callback((Projectile*)this, &ParticleProjectile::speedChanged); 67 67 } 68 68 -
code/branches/core3/src/orxonox/objects/Projectile.cc
r1596 r1610 74 74 SetConfigValue(damage_, 15.0).description("The damage caused by the projectile"); 75 75 SetConfigValue(lifetime_, 4.0).description("The time in seconds a projectile stays alive"); 76 SetConfigValue(speed_, 5000.0).description("The speed of a projectile in units per second").callback( &Projectile::speedChanged);76 SetConfigValue(speed_, 5000.0).description("The speed of a projectile in units per second").callback(this, &Projectile::speedChanged); 77 77 } 78 78 -
code/branches/core3/src/orxonox/objects/RotatingProjectile.cc
r1596 r1610 65 65 void RotatingProjectile::setConfigValues() 66 66 { 67 SetConfigValue(colour_, ColourValue(1.0, 0.0, 0.0)).callback( &RotatingProjectile::colourChanged);67 SetConfigValue(colour_, ColourValue(1.0, 0.0, 0.0)).callback(this, &RotatingProjectile::colourChanged); 68 68 } 69 69 -
code/branches/core3/src/orxonox/objects/WorldEntity.cc
r1592 r1610 112 112 BaseObject::XMLPort(xmlelement, mode); 113 113 114 XMLPortParamExternTemplate(Ogre::Node, this->node_, "position", setPosition, getPosition, xmlelement, mode, Ogre::Node, const Vector3&); 114 std::cout << "111111111111111\n"; 115 XMLPortParamExternTemplate(WorldEntity, Ogre::Node, this->node_, "position", setPosition, getPosition, xmlelement, mode, Ogre::Node, const Vector3&); 116 std::cout << "222222222222222\n"; 115 117 XMLPortParamLoadOnly(WorldEntity, "direction", setDirectionSimple, xmlelement, mode); 116 118 XMLPortParamLoadOnly(WorldEntity, "yawpitchroll", setYawPitchRoll, xmlelement, mode);
Note: See TracChangeset
for help on using the changeset viewer.