BeatTheStreet/src/player.cpp
//int function that returns the number of lives after taking one away.
int function that returns the number of lives after taking one away.
int function that returns the number of lives after taking one away .
int Player::lostLife(bool bMute)
{
	if (!bMute)
	{
		if (water()) sSplashSound.play();
		else sCollideSound.play();
	}
	 iPlayerLives -- ;
	 return iPlayerLives;
}
int Player :: lostLife ( bool bMute ) { if ( ! bMute ) { if ( water ( ) ) sSplashSound . play ( ) ; else sCollideSound . play ( ) ; } iPlayerLives -- ; return iPlayerLives ; }
int function that returns the number of lives after taking one away.
int function that returns the number of lives after taking one away .
//Only play death sounds if not muted. //play splash sound if player looses life in water region //play colisionsound if player is on traintracks or road //Remove a life. //Return the number of lives the player now has.