def go(self, room, tell_new=None, tell_old=None):
        """Go to a specific room."""
        if self.position[0] == 'standing':
            if room:
                if self.location:
                    prev = '%s_%s' % (self.location.id, self.location.area.name)
                    if tell_old:
                        self.location.tell_room(tell_old, [self.name])
                    self.location.remove_char(self)
                else:
                    prev = 'void'
                if self.location and self.location == room:
                    self.update_output('You\'re already there.\n')
                else:
                    self.location = room
                    self.update_output(self.look_at_room())
                    self.location.add_char(self, prev)
                    if tell_new:
                        self.location.tell_room(tell_new, [self.name])
            else:
                self.world.log.debug('We gave %s a nonexistant room.' % self.name)
        else:
            self.update_output('You better stand up first.')
dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/models/character.py/Character.go/original