Changeset View
Changeset View
Standalone View
Standalone View
objects.cpp
Context not available. | |||||
158 | if (m_runs > 10 && game && game->isInPlay()) | 158 | if (m_runs > 10 && game && game->isInPlay()) | ||
---|---|---|---|---|---|
159 | return true; | 159 | return true; | ||
160 | 160 | | |||
161 | playSound("blackholeputin"); | 161 | game->playSound(Sound::BlackHolePutIn); | ||
162 | 162 | | |||
163 | const double diff = m_maxSpeed - m_minSpeed; | 163 | const double diff = m_maxSpeed - m_minSpeed; | ||
164 | const double newSpeed = m_minSpeed + speed / 3.75 * diff; | 164 | const double newSpeed = m_minSpeed + speed / 3.75 * diff; | ||
Context not available. | |||||
174 | connect(timer, SIGNAL(eject(Ball*,double)), this, SLOT(eject(Ball*,double))); | 174 | connect(timer, SIGNAL(eject(Ball*,double)), this, SLOT(eject(Ball*,double))); | ||
175 | connect(timer, SIGNAL(halfway()), this, SLOT(halfway())); | 175 | connect(timer, SIGNAL(halfway()), this, SLOT(halfway())); | ||
176 | 176 | | |||
177 | playSound("blackhole"); | 177 | game->playSound(Sound::BlackHole); | ||
178 | return false; | 178 | return false; | ||
179 | } | 179 | } | ||
180 | 180 | | |||
Context not available. | |||||
204 | 204 | | |||
205 | m_runs++; | 205 | m_runs++; | ||
206 | 206 | | |||
207 | playSound("blackholeeject"); | 207 | game->playSound(Sound::BlackHoleEject); | ||
208 | } | 208 | } | ||
209 | 209 | | |||
210 | void Kolf::BlackHole::halfway() | 210 | void Kolf::BlackHole::halfway() | ||
211 | { | 211 | { | ||
212 | playSound("blackhole"); | 212 | game->playSound(Sound::BlackHole); | ||
213 | } | 213 | } | ||
214 | 214 | | |||
215 | void Kolf::BlackHole::load(KConfigGroup* cfgGroup) | 215 | void Kolf::BlackHole::load(KConfigGroup* cfgGroup) | ||
Context not available. | |||||
348 | return true; | 348 | return true; | ||
349 | //place ball in hole | 349 | //place ball in hole | ||
350 | ball->setState(Holed); | 350 | ball->setState(Holed); | ||
351 | playSound("holed"); | 351 | game->playSound(Sound::Holed); | ||
352 | ball->setPos(pos()); | 352 | ball->setPos(pos()); | ||
353 | ball->setVelocity(Vector()); | 353 | ball->setVelocity(Vector()); | ||
354 | return false; | 354 | return false; | ||
Context not available. |