#include "AppHdr.h"
#include <sstream>
#include "cluautil.h"
#include "l_libs.h"
#include "artefact.h"
#include "colour.h"
#include "command.h"
#include "env.h"
#include "enum.h"
#include "invent.h"
#include "item_use.h"
#include "itemprop.h"
#include "items.h"
#include "output.h"
#include "player.h"
#include "skills2.h"
#include "spl-summoning.h"
#include "stuff.h"
Classes | |
struct | item_wrapper |
struct | ItemAccessor |
Defines | |
#define | IDEF(name) |
#define | IDEFN(name, closure) |
#define | ITEM(name, ndx) item_def *name = clua_get_item(ls, ndx) |
#define | UDATA_ITEM(name) ITEM(name, lua_upvalueindex(1)) |
Functions | |
void | clua_push_item (lua_State *ls, item_def *item) |
item_def * | clua_get_item (lua_State *ls, int ndx) |
void | lua_push_floor_items (lua_State *ls, int link) |
void | lua_push_inv_items (lua_State *ls=NULL) |
IDEF (equipped) | |
IDEF (subtype) | |
IDEF (cursed) | |
IDEF (worn) | |
IDEF (quantity) | |
IDEF (slot) | |
IDEF (ininventory) | |
IDEF (equip_type) | |
IDEF (weap_skill) | |
IDEF (dropped) | |
IDEF (can_cut_meat) | |
IDEF (artefact) | |
IDEF (branded) | |
IDEF (snakable) | |
unsigned long | str_to_item_status_flags (std::string flag) |
IDEF (base_type) | |
IDEF (sub_type) | |
IDEF (ego_type) | |
IDEF (artefact_name) | |
IDEF (is_cursed) | |
void | cluaopen_item (lua_State *ls) |
#define IDEF | ( | name | ) |
#define IDEFN | ( | name, | |||
closure | ) |
Value:
static int l_item_##name(lua_State *ls, item_def *item, const char *attrs) \ { \ clua_push_item(ls, item); \ lua_pushcclosure(ls, l_item_##closure, 1); \ return (1); \ }
#define UDATA_ITEM | ( | name | ) | ITEM(name, lua_upvalueindex(1)) |
item_def* clua_get_item | ( | lua_State * | ls, | |
int | ndx | |||
) |
void clua_push_item | ( | lua_State * | ls, | |
item_def * | item | |||
) |
void cluaopen_item | ( | lua_State * | ls | ) |
IDEF | ( | is_cursed | ) |
IDEF | ( | artefact_name | ) |
IDEF | ( | ego_type | ) |
IDEF | ( | sub_type | ) |
IDEF | ( | base_type | ) |
IDEF | ( | snakable | ) |
IDEF | ( | branded | ) |
IDEF | ( | artefact | ) |
IDEF | ( | can_cut_meat | ) |
IDEF | ( | dropped | ) |
IDEF | ( | weap_skill | ) |
IDEF | ( | equip_type | ) |
IDEF | ( | ininventory | ) |
IDEF | ( | slot | ) |
IDEF | ( | quantity | ) |
IDEF | ( | worn | ) |
IDEF | ( | cursed | ) |
IDEF | ( | subtype | ) |
IDEF | ( | equipped | ) |
void lua_push_floor_items | ( | lua_State * | ls, | |
int | link | |||
) |
void lua_push_inv_items | ( | lua_State * | ls = NULL |
) |
unsigned long str_to_item_status_flags | ( | std::string | flag | ) |