Libtcod-cffi

Latest version: v5.0.0

Safety actively analyzes 685670 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 6

2.1.0

------------------
Added
* The root `Console` instance can now be used as a context manager. Closing
the graphical window when the context exits.
* Ported libtcod functions: `sys_clipboard_get` and `sys_clipboard_set`.

2.0.0

------------------
Added
* `Random` instances can be copied and pickled.
* `Map` instances can be copied and pickled.
* The `Map` class now has the `transparent`, `walkable`, and `fov` attribues,
you can assign to these as if they were numpy arrays.
* Pathfinders in `tcod.path` can be given a numpy array as a cost map.
Changed
* Color instances can now be compared with any standard sequence.
Deprecated
* You might see a public `cdata` attribute on some classes, this attribute
will be renamed at anytime.
Removed
* `Console.print_str` is now `Console.print_`
* Some Console methods have been merged together.
* All litcod-cffi classes have been moved to their own submodules.
* Random methods renamed to be more like Python's standard `random` module.
* Noise class had multiple methods replaced by an `implementation` attribute.
* libtcod-cffi classes and subpackages are not included in the `tcod`
namespace by default.
* Many redundant methods were removed from the Random class.
* Map methods `set_properies`, `clear`, `is_in_fov`, `is_walkable`, and
`is_transparent` were remvoed.
* Pathfinding classmethod constructors are gone already. Not it's just one
constructor which accepts multiple kinds of maps.
Fixed
* Python 2 now uses the `latin-1` codec when automatically coverting to
Unicode.

2.0a4

------------------
Added
* Console instances now have the fg,bg,ch attributes.
These attributes are numpy arrays with direct access to libtcod console
memory.
Changed
* Console default variables are now accessed using properties instead of
method calls. Same with width and height.
* Path-finding classes new use special classmethod constructors instead of
tradional class instancing.
Removed
* Color to string conversion reverted to its original repr behaviour.
* Console.get_char* methods removed in favor of the fg,bg,ch attributes.
* Console.fill removed. This code was redundant with the new additions.
* Console.get_default_*/set_default_* methods removed.
* Console.get_width/height removed.
Fixed
* Dijkstra.get_path fixed.

2.0a3

------------------
* The numpy module is now required as a dependency.
* The SDL.h and libtcod_int.h headers are now included in the cffi back-end.
* Added the AStar and Dijkstra classes with simplified behaviour.
* Added the BSP class which better represents bsp data attributes.
* Added the Image class with methods mimicking libtcodpy behaviour.
* Added the Map class with methods mimicking libtcodpy behaviour.
* Added the Noise class.
This class behaves similar to the tdl Noise class.
* Added the Random class.
This class provides a large variety of methods instead of being state based
like in libtcodpy.
* Color objects can new be converted into a 3 byte string used in libtcod
color control operations.
* heightmap functions can now accept carefully formatted numpy arrays.
* Removed the keyboard repeat functions:
console_set_keyboard_repeat and console_disable_keyboard_repeat.

2.0a2

------------------
* FrozenColor class removed.
* Color class now uses a properly set up __repr__ method.
* Functions which take the fmt parameter will now escape the '%' symbol before
sending the string to a C printf call.
* Now using Google-Style docstrings.
* Console class has most of its relevant methods.
* Added the Console.fill function which needs only 3 numpy arrays instead of
the usual 7 to cover all Console data.

2.0a1

------------------
* The userData parameter was added back.
Functions which use it are marked depreciated.
* Python exceptions will now propagate out of libtcod callbacks.
* Some libtcod object oriented functions now have Python class methods
associated with them (only BSP for now, more will be added later.)
* Regression tests were added.
Focusing on backwards compatibilty with libtcodpy.
Several neglected functions were fixed during this.
* All libtcod allocations are handled by the Python garbage collector.
You'll no longer have to call the delete functions on each object.
* Now generates documentation for Read the Docs.
You can find the latest documentation for libtcod-cffi
`here <https://libtcod-cffi.readthedocs.io/en/latest/>`_.

Page 3 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.