BeatTheStreet/src/player.cpp
//boolean function that returns true in the player is within the water segment of the map.
boolean function that returns true in the player is within the water segment of the map.
boolean function that returns true in the player is within the water segment of the map .
bool Player::water()
{
	if (sPlayer.getPosition().y < 330 && sPlayer.getPosition().y >80 )
	{
		return true;
	}
	else return false;
}
bool Player :: water ( ) { if ( sPlayer . getPosition ( ) . y < 330 && sPlayer . getPosition ( ) . y > 80 ) { return true ; } else return false ; }
boolean function that returns true in the player is within the water segment of the map.
boolean function that returns true in the player is within the water segment of the map .