Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 29, 2009, 12:46:24 AM (16 years ago)
Author:
erwin
Message:

first attempt to implement sounds for pong, only score sound is working here

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/worldentities/PongBall.h

    r3084 r3108  
    4444
    4545            virtual void tick(float dt);
    46            
     46
    4747            void registerVariables();
    4848
     
    6565            void setBats(PongBat** bats)
    6666            { this->bat_ = bats; this->batID_[0] = this->bat_[0]->getObjectID(); this->batID_[1] = this->bat_[1]->getObjectID(); }
    67            
     67
    6868            void applyBats()
    6969            { if(!this->bat_) this->bat_ = new PongBat*[2]; if(this->batID_[0] != OBJECTID_UNKNOWN) this->bat_[0] = dynamic_cast<PongBat*>(Synchronisable::getSynchronisable(this->batID_[0])); if(this->batID_[1] != OBJECTID_UNKNOWN) this->bat_[1] = dynamic_cast<PongBat*>(Synchronisable::getSynchronisable(this->batID_[1])); }
     
    7979            unsigned int* batID_;
    8080            float relMercyOffset_;
     81
     82            SoundBase* sidesound_;
     83            SoundBase* batsound_;
     84            SoundBase* scoresound_;
    8185    };
    8286}
Note: See TracChangeset for help on using the changeset viewer.