Exemplo n.º 1
0
 def is_under_water(self):
     liquid_information = MapManager.get_liquid_information(
         self.map_, self.location.x, self.location.y, self.location.z)
     return liquid_information and self.location.z + (
         self.current_scale * 2) < liquid_information.height
Exemplo n.º 2
0
 def is_in_deep_water(self):
     liquid_information = MapManager.get_liquid_information(
         self.map_, self.location.x, self.location.y, self.location.z)
     return liquid_information and liquid_information.liquid_type == LiquidTypes.DEEP
Exemplo n.º 3
0
 def is_on_water(self):
     liquid_information = MapManager.get_liquid_information(
         self.map_, self.location.x, self.location.y, self.location.z)
     map_z = MapManager.calculate_z_for_object(self)[0]
     return liquid_information and map_z < liquid_information.height