Final-Project-Group6/src/LandBasedTracked/landbasedtracked.cpp
/**
 * @brief Go forward
 * @param x coordinate
 * @param y coordinate
 */
@brief Go forward
@param x coordinate
@param y coordinate
@brief Go forward @param x coordinate @param y coordinate
void fp::LandBasedTracked::MoveForward()
{
	fp::API::moveForward();
    if(fp::LandBasedTracked::GetDirection() == 'N') {
        x_ = x_;
        y_ = y_ + 1;
    }
    else { 
        if(fp::LandBasedTracked::GetDirection() == 'E') {
            x_ = x_ + 1;
            y_ = y_;
        }
        else {
            if(fp::LandBasedTracked::GetDirection() == 'W') {
                x_ = x_ - 1;
                y_ = y_;
            }
            else {
                if(fp::LandBasedTracked::GetDirection() == 'S') {
                    x_ = x_;
                    y_ = y_ - 1;
                }
            }
        }
    }
}
void fp :: LandBasedTracked :: MoveForward ( ) { fp :: API :: moveForward ( ) ; if ( fp :: LandBasedTracked :: GetDirection ( ) == ' ' ) { x_ = x_ ; y_ = y_ + 1 ; } else { if ( fp :: LandBasedTracked :: GetDirection ( ) == ' ' ) { x_ = x_ + 1 ; y_ = y_ ; } else { if ( fp :: LandBasedTracked :: GetDirection ( ) == ' ' ) { x_ = x_ - 1 ; y_ = y_ ; } else { if ( fp :: LandBasedTracked :: GetDirection ( ) == ' ' ) { x_ = x_ ; y_ = y_ - 1 ; } } } } }
@brief Go forward
 @param x coordinate
 @param y coordinate
@brief Go forward @param x coordinate @param y coordinate