|
Atrinik Client 2.5
|
#include <global.h>Go to the source code of this file.
Defines | |
| #define | ICONDEFLEN 32 |
Functions | |
| static int | inventory_matches_filter (object *op) |
| void | inventory_filter_set (uint64 filter) |
| void | inventory_filter_toggle (uint64 filter) |
| int | get_inventory_data (object *op, int *ctag, int *slot, int *start, int *count, int wxlen, int wylen) |
| static void | show_inventory_item_stats (object *tmp, widgetdata *widget) |
| void | widget_inventory_event (widgetdata *widget, int x, int y, SDL_Event event) |
| void | widget_show_inventory_window (widgetdata *widget) |
| void | widget_below_window_event (widgetdata *widget, int x, int y, int MEvent) |
| void | widget_show_below_window (widgetdata *widget) |
| int | blt_inv_item_centered (object *tmp, int x, int y) |
| void | blt_inv_item (object *tmp, int x, int y) |
Variables | |
| char * | skill_level_name [] |
| uint64 | inventory_filter = INVENTORY_FILTER_ALL |
Handles inventory related functions.
Definition in file inventory.c.
| void blt_inv_item | ( | object * | tmp, |
| int | x, | ||
| int | y | ||
| ) |
Blit an inventory item to the screen surface.
Uses blt_inv_item_centered() to draw the item's face and center it. Draws any additional flags (like magical, cursed, damned) as icons and draws nrof (if higher than 1) of items near the bottom.
| tmp | Pointer to the inventory item |
| x | X position of the item |
| y | Y position of the item |
Definition at line 856 of file inventory.c.
| void inventory_filter_set | ( | uint64 | filter | ) |
Set an inventory filter to the passed value.
| filter | The value to set. |
Definition at line 110 of file inventory.c.
| void inventory_filter_toggle | ( | uint64 | filter | ) |
Toggle one inventory filter.
| filter | Filter to toggle. |
Definition at line 122 of file inventory.c.
| static int inventory_matches_filter | ( | object * | op | ) | [static] |
Check if an object matches one of the active inventory filters.
| op | Object to check. |
Definition at line 50 of file inventory.c.
| uint64 inventory_filter = INVENTORY_FILTER_ALL |
Active inventory filter, one of Inventory filters.
Definition at line 44 of file inventory.c.
| char* skill_level_name[] |
{
"",
"Ag",
"Pe",
"Me",
"Ph",
"Ma",
"Wi"
}
Definition at line 32 of file inventory.c.
1.7.4