def is_at_home(sim_info: SimInfo) -> bool:
     """ Determine if a Sim is currently at home. """
     active_lot = CommonLocationUtils.get_current_lot()
     return CommonLocationUtils.get_current_zone_id(
     ) == CommonHouseholdUtils.get_household_lot_id(
         sim_info) and active_lot.is_position_on_lot(
             CommonSimLocationUtils.get_position(sim_info))
Exemplo n.º 2
0
    def travel_to_home_lot_of(sim_info: SimInfo):
        """travel_to_home_lot_of(sim_info)

        Travel to the home lot of a Sim.

        :param sim_info: The owner of the home lot to travel to.
        :type sim_info: SimInfo
        """
        lot_id = CommonHouseholdUtils.get_household_lot_id(sim_info)
        CommonTravelUtils.travel_to_lot(sim_info, lot_id)
    def is_at_home(sim_info: SimInfo) -> bool:
        """is_at_home(sim_info)

        Determine if a Sim is currently at home.

        :param sim_info: The Sim to check.
        :type sim_info: SimInfo
        :return: True, if the Sim is at their home lot. False, if not.
        :rtype: bool
        """
        active_lot = CommonLocationUtils.get_current_lot()
        return CommonLocationUtils.get_current_zone_id(
        ) == CommonHouseholdUtils.get_household_lot_id(
            sim_info) and active_lot.is_position_on_lot(
                CommonSimLocationUtils.get_position(sim_info))
Exemplo n.º 4
0
 def travel_to_home_lot_of(sim_info: SimInfo):
     """
         Send the specified Sim to their Home Lot.
     """
     lot_id = CommonHouseholdUtils.get_household_lot_id(sim_info)
     CommonTravelUtils.travel_to_lot(sim_info, lot_id)