Final-Project-Group6/src/LandBasedTracked/landbasedtracked.cpp
/**
 * @brief Go Left Method
 * @param x coordinate
 * @param y coordinate
 */
@brief Go Left Method
@param x coordinate
@param y coordinate
@brief Go Left Method @param x coordinate @param y coordinate
void fp::LandBasedTracked::TurnLeft()
{
	fp::API::turnLeft();
    if(fp::LandBasedTracked::GetDirection() == 'N')
        direction_ = 'W';
    else { 
        if(fp::LandBasedTracked::GetDirection() == 'E')
            direction_ = 'N';
        else {
            if(fp::LandBasedTracked::GetDirection() == 'W')
                direction_ = 'S';
            else {
                if(fp::LandBasedTracked::GetDirection() == 'S')
                    direction_ = 'E';
            }
        }
    }
}
void fp :: LandBasedTracked :: TurnLeft ( ) { fp :: API :: turnLeft ( ) ; if ( fp :: LandBasedTracked :: GetDirection ( ) == ' ' ) direction_ = ' ' ; else { if ( fp :: LandBasedTracked :: GetDirection ( ) == ' ' ) direction_ = ' ' ; else { if ( fp :: LandBasedTracked :: GetDirection ( ) == ' ' ) direction_ = ' ' ; else { if ( fp :: LandBasedTracked :: GetDirection ( ) == ' ' ) direction_ = ' ' ; } } } }
@brief Go Left Method
 @param x coordinate
 @param y coordinate
@brief Go Left Method @param x coordinate @param y coordinate