intficpy/travel.py
def travelDirection(game, direction):
    """
    Travel in the specified direction, from the player's current location

    :param game: the current game
    :type game: IFPGame
    :param direction: the direction input
    :type direction: str
    """
    short = directionDict[direction]["short"]
    full = directionDict[direction]["full"]

    loc = game.me.getOutermostLocation()
    if game.me.position != "standing":
        StandUpVerb().verbFunc(game)
    if not loc.resolveDarkness(game) and (short not in loc.dark_visible_exits):
        game.addTextToEvent("turn", loc.dark_msg)

    connector = getattr(loc, full)

    if not connector:
        game.addTextToEvent("turn", getattr(loc, f"{short}_false_msg"))
        return

    if isinstance(connector, TravelConnector):
        connector.travel(game)
    else:
        preRemovePlayer(game)
        if game.me.location:
            game.me.location.removeThing(game.me)
        game.me.location = connector
        game.me.location.addThing(game.me)
        game.addTextToEvent("turn", getattr(loc, f"{short}_msg"))

        game.me.location.describe(game)

    Travel in the specified direction, from the player's current location

    :param game: the current game
    :type game: IFPGame
    :param direction: the direction input
    :type direction: str
    
Travel in the specified direction, from the player's current location
Travel in the specified direction from the player ' s current location
def travelDirection(game, direction):
    short = directionDict[direction]["short"]
    full = directionDict[direction]["full"]
    loc = game.me.getOutermostLocation()
    if game.me.position != "standing":
        StandUpVerb().verbFunc(game)
    if not loc.resolveDarkness(game) and (short not in loc.dark_visible_exits):
        game.addTextToEvent("turn", loc.dark_msg)
    connector = getattr(loc, full)
    if not connector:
        game.addTextToEvent("turn", getattr(loc, f"{short}_false_msg"))
        return
    if isinstance(connector, TravelConnector):
        connector.travel(game)
    else:
        preRemovePlayer(game)
        if game.me.location:
            game.me.location.removeThing(game.me)
        game.me.location = connector
        game.me.location.addThing(game.me)
        game.addTextToEvent("turn", getattr(loc, f"{short}_msg"))
        game.me.location.describe(game)
def travelDirection ( game , direction ) : short = directionDict [ direction ] [ "short" ] full = directionDict [ direction ] [ "full" ] loc = game . me . getOutermostLocation ( ) if game . me . position != "standing" : StandUpVerb ( ) . verbFunc ( game ) if not loc . resolveDarkness ( game ) and ( short not in loc . dark_visible_exits ) : game . addTextToEvent ( "turn" , loc . dark_msg ) connector = getattr ( loc , full ) if not connector : game . addTextToEvent ( "turn" , getattr ( loc , f"{short}_false_msg" ) ) return if isinstance ( connector , TravelConnector ) : connector . travel ( game ) else : preRemovePlayer ( game ) if game . me . location : game . me . location . removeThing ( game . me ) game . me . location = connector game . me . location . addThing ( game . me ) game . addTextToEvent ( "turn" , getattr ( loc , f"{short}_msg" ) ) game . me . location . describe ( game )
Travel in the specified direction, from the player's current location
Travel in the specified direction from the player ' s current location
"""
    Travel in the specified direction, from the player's current location

    :param game: the current game
    :type game: IFPGame
    :param direction: the direction input
    :type direction: str
    """
game
the current game
the current game
direction
the direction input
the direction input