Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7460 in orxonox.OLD for trunk/src/world_entities/projectiles


Ignore:
Timestamp:
May 1, 2006, 12:30:34 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Namespaces for sound

Location:
trunk/src/world_entities/projectiles
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/projectiles/projectile.cc

    r7221 r7460  
    6868  else if (!explosionSound.empty())
    6969  {
    70     this->explosionBuffer = (SoundBuffer*)ResourceManager::getInstance()->load(explosionSound, WAV);
     70    this->explosionBuffer = (OrxSound::SoundBuffer*)ResourceManager::getInstance()->load(explosionSound, WAV);
    7171    if (this->explosionBuffer != NULL)
    7272    {
     
    9090  else if (!engineSound.empty())
    9191  {
    92     this->engineBuffer = (SoundBuffer*)ResourceManager::getInstance()->load(engineSound, WAV);
     92    this->engineBuffer = (OrxSound::SoundBuffer*)ResourceManager::getInstance()->load(engineSound, WAV);
    9393    if (this->engineBuffer != NULL)
    9494    {
  • trunk/src/world_entities/projectiles/projectile.h

    r7221 r7460  
    5252  protected:
    5353    // energy
    54     float                 energyMin;                 //!< The minimal Energy a Projectile needs to be emitted.
    55     bool                  bChargeable;               //!< if the Projectile is Charegeable
     54    float                  energyMin;                 //!< The minimal Energy a Projectile needs to be emitted.
     55    bool                   bChargeable;               //!< if the Projectile is Charegeable
    5656
    57     float                 lifeCycle;                 //!< The percentage of the Lifetime done [0-1]
    58     float                 lifeSpan;                  //!< The entire lifespan of the Shoot. in seconds
     57    float                  lifeCycle;                 //!< The percentage of the Lifetime done [0-1]
     58    float                  lifeSpan;                  //!< The entire lifespan of the Shoot. in seconds
    5959
    60     Vector                flightDirection;           //!< DOF direction in which the shoot flighs
     60    Vector                 flightDirection;           //!< DOF direction in which the shoot flighs
    6161
    62     Vector                velocity;                  //!< velocity of the projectile.
     62    Vector                 velocity;                  //!< velocity of the projectile.
    6363
    64     PNode*                target;                    //!< A target for guided Weapons.
     64    PNode*                 target;                    //!< A target for guided Weapons.
    6565
    66     SoundSource          soundSource;
     66    OrxSound::SoundSource  soundSource;
    6767  private:
    68     SoundBuffer*          explosionBuffer;
    69     SoundBuffer*          engineBuffer;
     68    OrxSound::SoundBuffer* explosionBuffer;
     69    OrxSound::SoundBuffer* engineBuffer;
    7070};
    7171
Note: See TracChangeset for help on using the changeset viewer.