View lcov test coverage results on http://www.gnu.org/software/liquidwar6/coverage/src/lib/tsk/index.html.
loader: loader object
map_path: map-path config entry
relative_path: relative map path
default_param: default parameters to use for load
forced_param: parameters to be forced and their values
display_w: display width
display_h: display height
magic_number: used to calibrate speed
Pushes a load request to the loader. Will stop the current load and push a new one.
Return value: none.
level: loaded level (out param)
game_struct: loaded struct (out param)
game_state: loaded state (out param)
loader: loader object
Pops data from the loader, will allocate everything dynamically. Function can either return just level or level and game struct and game state (3 of them together). It's safe to use the received level, display it right away, then wait for the rest. If things are loaded fast enough, you just receive everything at once.
Return value: 1 if some data, 0 if none.
sleep: how many seconds to wait between every poll
user_dir: user directory
progress: progress indicator to use
Creates a new loader. This object is used to do some reputed slow calculus in the background, in a separated thread. Typical example is map loading. This is a high-level objects which encapsulates threads and other wizardry.
Return value: a pointer to the loader, NULL if failed.
loader: the loader to free.
Deletes a loader. Will automatically stop the child thread, free data, and so on.
Return value: none.
loader: the loader to represent.
Creates a string which briefly describes the loader.
Return value: a dynamically allocated pointer, must be freed.