Write now, the game treats user input as a single command.
Input should be processed and broken into all available tags, and provide access to any words or numbers that were not recognized commands.
Function can return the leftover string, which means all commands processed from that string should be erased from it.
If the game needs to check if the remainder of the string holds a number, that should be handled with another call:
const bool UserInput::player_input_is_number( int &player_number, std::string &player_input )
Should return true if player_input is a number, false if not.
Write now, the game treats user input as a single command. Input should be processed and broken into all available tags, and provide access to any words or numbers that were not recognized commands.
New UserInput function idea:
Function can return the leftover string, which means all commands processed from that string should be erased from it. If the game needs to check if the remainder of the string holds a number, that should be handled with another call:
Should return true if player_input is a number, false if not.