5454)
5555
5656# Functions are too deprecated to make changes.
57- # ruff: noqa: ANN401 PLR0913
57+ # ruff: noqa: ANN401 PLR0913 D102 D103 D105 D107
5858
5959Bsp = tcod .bsp .BSP
6060
@@ -1477,6 +1477,9 @@ def console_print_ex(
14771477 con (Console): Any Console instance.
14781478 x (int): Character x position from the left.
14791479 y (int): Character y position from the top.
1480+ flag: Blending mode to use.
1481+ alignment: The libtcod alignment constant.
1482+ fmt: A unicode or bytes string, optionally using color codes.
14801483
14811484 .. deprecated:: 8.5
14821485 Use :any:`Console.print_` instead.
@@ -1726,8 +1729,7 @@ def console_wait_for_keypress(flush: bool) -> Key:
17261729 """Block until the user presses a key, then returns a new Key.
17271730
17281731 Args:
1729- flush bool: If True then the event queue is cleared before waiting
1730- for the next event.
1732+ flush: If True then the event queue is cleared before waiting for the next event.
17311733
17321734 Returns:
17331735 Key: A new Key instance.
@@ -2136,8 +2138,8 @@ def path_new_using_function(
21362138 Args:
21372139 w (int): Clipping width.
21382140 h (int): Clipping height.
2139- func (Callable[[int, int, int, int, Any], float]):
2140- userData (Any):
2141+ func: Callback function with the format: `f(origin_x, origin_y, dest_x, dest_y, userData) -> float`
2142+ userData (Any): An object passed to the callback.
21412143 dcost (float): A multiplier for the cost of diagonal movement.
21422144 Can be set to 0 to disable diagonal movement.
21432145
@@ -2485,6 +2487,7 @@ def heightmap_copy(hm1: NDArray[np.float32], hm2: NDArray[np.float32]) -> None:
24852487 """Copy the heightmap ``hm1`` to ``hm2``.
24862488
24872489 Args:
2490+ hm: A numpy.ndarray formatted for heightmap functions.
24882491 hm1 (numpy.ndarray): The source heightmap.
24892492 hm2 (numpy.ndarray): The destination heightmap.
24902493
@@ -2499,6 +2502,7 @@ def heightmap_normalize(hm: NDArray[np.float32], mi: float = 0.0, ma: float = 1.
24992502 """Normalize heightmap values between ``mi`` and ``ma``.
25002503
25012504 Args:
2505+ hm: A numpy.ndarray formatted for heightmap functions.
25022506 mi (float): The lowest value after normalization.
25032507 ma (float): The highest value after normalization.
25042508 """
@@ -2944,7 +2948,7 @@ def heightmap_has_land_on_border(hm: NDArray[np.float32], waterlevel: float) ->
29442948
29452949 Args:
29462950 hm (numpy.ndarray): A numpy.ndarray formatted for heightmap functions.
2947- waterLevel (float): The water level to use.
2951+ waterlevel (float): The water level to use.
29482952
29492953 Returns:
29502954 bool: True if the map edges are below ``waterlevel``, otherwise False.
@@ -3493,6 +3497,7 @@ def noise_set_type(n: tcod.noise.Noise, typ: int) -> None:
34933497 """Set a Noise objects default noise algorithm.
34943498
34953499 Args:
3500+ n: Noise object.
34963501 typ (int): Any NOISE_* constant.
34973502 """
34983503 n .algorithm = typ
@@ -3531,7 +3536,7 @@ def noise_get_fbm(
35313536 n (Noise): A Noise instance.
35323537 f (Sequence[float]): The point to sample the noise from.
35333538 typ (int): The noise algorithm to use.
3534- octaves (float): The level of level. Should be more than 1.
3539+ oc (float): The level of level. Should be more than 1.
35353540
35363541 Returns:
35373542 float: The sampled noise value.
@@ -3552,7 +3557,7 @@ def noise_get_turbulence(
35523557 n (Noise): A Noise instance.
35533558 f (Sequence[float]): The point to sample the noise from.
35543559 typ (int): The noise algorithm to use.
3555- octaves (float): The level of level. Should be more than 1.
3560+ oc (float): The level of level. Should be more than 1.
35563561
35573562 Returns:
35583563 float: The sampled noise value.
@@ -3781,8 +3786,8 @@ def random_get_int(rnd: tcod.random.Random | None, mi: int, ma: int) -> int:
37813786
37823787 Args:
37833788 rnd (Optional[Random]): A Random instance, or None to use the default.
3784- low (int): The lower bound of the random range, inclusive.
3785- high (int): The upper bound of the random range, inclusive.
3789+ mi (int): The lower bound of the random range, inclusive.
3790+ ma (int): The upper bound of the random range, inclusive.
37863791
37873792 Returns:
37883793 int: A random integer in the range ``mi`` <= n <= ``ma``.
@@ -3798,8 +3803,8 @@ def random_get_float(rnd: tcod.random.Random | None, mi: float, ma: float) -> fl
37983803
37993804 Args:
38003805 rnd (Optional[Random]): A Random instance, or None to use the default.
3801- low (float): The lower bound of the random range, inclusive.
3802- high (float): The upper bound of the random range, inclusive.
3806+ mi (float): The lower bound of the random range, inclusive.
3807+ ma (float): The upper bound of the random range, inclusive.
38033808
38043809 Returns:
38053810 float: A random double precision float
@@ -3827,8 +3832,8 @@ def random_get_int_mean(rnd: tcod.random.Random | None, mi: int, ma: int, mean:
38273832
38283833 Args:
38293834 rnd (Optional[Random]): A Random instance, or None to use the default.
3830- low (int): The lower bound of the random range, inclusive.
3831- high (int): The upper bound of the random range, inclusive.
3835+ mi (int): The lower bound of the random range, inclusive.
3836+ ma (int): The upper bound of the random range, inclusive.
38323837 mean (int): The mean return value.
38333838
38343839 Returns:
@@ -3845,8 +3850,8 @@ def random_get_float_mean(rnd: tcod.random.Random | None, mi: float, ma: float,
38453850
38463851 Args:
38473852 rnd (Optional[Random]): A Random instance, or None to use the default.
3848- low (float): The lower bound of the random range, inclusive.
3849- high (float): The upper bound of the random range, inclusive.
3853+ mi (float): The lower bound of the random range, inclusive.
3854+ ma (float): The upper bound of the random range, inclusive.
38503855 mean (float): The mean return value.
38513856
38523857 Returns:
@@ -4071,7 +4076,7 @@ def sys_save_screenshot(name: str | PathLike[str] | None = None) -> None:
40714076 screenshot000.png, screenshot001.png, etc. Whichever is available first.
40724077
40734078 Args:
4074- file Optional[AnyStr] : File path to save screenshot.
4079+ name : File path to save screenshot.
40754080
40764081 .. deprecated:: 11.13
40774082 This function is not supported by contexts.
@@ -4179,8 +4184,7 @@ def sys_register_SDL_renderer(callback: Callable[[Any], None]) -> None:
41794184 The callback is called on every call to :any:`libtcodpy.console_flush`.
41804185
41814186 Args:
4182- callback Callable[[CData], None]:
4183- A function which takes a single argument.
4187+ callback: A function which takes a single argument.
41844188
41854189 .. deprecated:: 11.13
41864190 This function is not supported by contexts.
0 commit comments