Ejemplo n.º 1
0
 def __init__(self, start: int, target: int) -> None:
     """
     initialize a new passenger
     """
     PersonSprite.__init__(self)
     self.start = start
     self.target = target
Ejemplo n.º 2
0
    def __init__(self, start: int, target: int) -> None:


        self.start = start
        self.target = target
        self.wait_time = 0
        PersonSprite.__init__(self)
Ejemplo n.º 3
0
    def __init__(self, start: int, target: int) -> None:
        """Creates new instance of Person"""

        self.start = start
        self.target = target
        self.wait_time = 0
        PersonSprite.__init__(self)
Ejemplo n.º 4
0
 def __init__(self, start: int, target: int) -> None:
     """
     Initialize a person who takes elevator.
     """
     self.start = start
     self.target = target
     self.wait_time = 0
     PersonSprite.__init__(self)
Ejemplo n.º 5
0
 def __init__(self, start: int, target: int) -> None:
     """
     Initialize a new person.
     """
     self.start = start
     self.target = target
     self.wait_time = 0
     PersonSprite.__init__(self)
Ejemplo n.º 6
0
    def __init__(self, current_floor: int, destination: int) -> None:
        """Initialize a Person

        Preconditions:
            start >= 1
            target >= 1
            wait_time >= 0
            total_time >= 0
        """
        self.wait_time = 0
        self.start = current_floor
        self.target = destination
        self.total_time = 0
        PersonSprite.__init__(self)
Ejemplo n.º 7
0
    def __init__(self, start_floor: int, target_floor: int) -> None:
        """Initialize person with corresponding start_floor, target_floor, and
        wait_time = 0. The start_floor and target_floor should be between 1
        and the maximum floor of the building, inclusive.

        Precondition:
        start_floor != target_floor
        start_floor >= 1
        target_floor >= 1
        """
        self.start = start_floor
        self.target = target_floor
        self.wait_time = 0
        PersonSprite.__init__(self)
Ejemplo n.º 8
0
 def __init__(self, start, target) -> None:
     self.wait_time = 0
     self.start = start
     self.target = target
     self.anger_level = 0
     PersonSprite.__init__(self, )