#include "AppHdr.h"#include "dlua.h"#include "cluautil.h"#include "l_libs.h"#include "cio.h"#include "command.h"#include "delay.h"#include "directn.h"#include "format.h"#include "hiscores.h"#include "initfile.h"#include "itemname.h"#include "libutil.h"#include "macro.h"#include "message.h"#include "notes.h"#include "options.h"#include "output.h"#include "player.h"#include "random.h"#include "religion.h"#include "stuff.h"#include "view.h"#include <sys/time.h>#include <time.h>

Defines | |
| #define | REGEX_METATABLE "crawl.regex" |
| #define | MESSF_METATABLE "crawl.messf" |
Functions | |
| LUAFN (crawl_stderr) | |
| LUAWRAP (crawl_delay, delay(luaL_checkint(ls, 1))) LUAWRAP(crawl_more | |
| more ()) LUAWRAP(crawl_flush_prev_message | |
| flush_prev_message ()) LUAWRAP(crawl_mesclr | |
| mesclr (lua_isboolean(ls, 1)?lua_toboolean(ls, 1):false)) LUAWRAP(crawl_redraw_screen | |
| redraw_screen ()) static int crawl_set_more_autoclear(lua_State *ls) | |
| LUARET1 (crawl_getch, number, getchm()) LUARET1(crawl_kbhit | |
| kbhit ()) LUAWRAP(crawl_flush_input | |
| flush_input_buffer (FLUSH_LUA)) static char _lua_char(lua_State *ls | |
| LUARET1 (crawl_random2, number, random2(luaL_checkint(ls, 1))) LUARET1(crawl_one_chance_in | |
| one_chance_in (luaL_checkint(ls, 1))) LUARET1(crawl_random2avg | |
| random2avg (luaL_checkint(ls, 1), luaL_checkint(ls, 2))) LUARET1(crawl_random_range | |
| random_range (luaL_checkint(ls, 1), luaL_checkint(ls, 2), lua_isnumber(ls, 3)?luaL_checkint(ls, 3):1)) LUARET1(crawl_coinflip | |
| coinflip ()) LUARET1(crawl_roll_dice | |
| lua_gettop (ls) | |
| void | cluaopen_crawl (lua_State *ls) |
| LUAFN (_crawl_args) | |
| LUAFN (_crawl_milestone) | |
| LUAFN (_crawl_redraw_view) | |
| LUAFN (_crawl_redraw_stats) | |
| LUAFN (_crawl_millis) | |
| LUARET1 (crawl_make_name, string, _crawl_make_name(ls).c_str()) static int _crawl_god_speaks(lua_State *ls) | |
| void | dluaopen_crawl (lua_State *ls) |
Variables | |
| number | |
| int | ndx |
| int char | defval |
| boolean | |
| #define MESSF_METATABLE "crawl.messf" |
| #define REGEX_METATABLE "crawl.regex" |
| void cluaopen_crawl | ( | lua_State * | ls | ) |

| coinflip | ( | void | ) |
| void dluaopen_crawl | ( | lua_State * | ls | ) |
| flush_input_buffer | ( | FLUSH_LUA | ) |
| flush_prev_message | ( | ) |
| kbhit | ( | void | ) |
| lua_gettop | ( | ls | ) |
| LUAFN | ( | _crawl_millis | ) |

| LUAFN | ( | _crawl_redraw_stats | ) |

| LUAFN | ( | _crawl_redraw_view | ) |

| LUAFN | ( | _crawl_milestone | ) |

| LUAFN | ( | _crawl_args | ) |

| LUAFN | ( | crawl_stderr | ) |
| LUARET1 | ( | crawl_make_name | , | |
| string | , | |||
| _crawl_make_name(ls).c_str() | ||||
| ) |

| LUARET1 | ( | crawl_random2 | , | |
| number | , | |||
| random2(luaL_checkint(ls, 1)) | ||||
| ) |
| LUARET1 | ( | crawl_getch | , | |
| number | , | |||
| getchm() | ||||
| ) |
| LUAWRAP | ( | crawl_delay | , | |
| delay(luaL_checkint(ls, 1)) | ||||
| ) |
| mesclr | ( | lua_isboolean(ls, 1)?lua_toboolean(ls, 1):false | ) |
| more | ( | ) |
| one_chance_in | ( | luaL_checkint(ls, 1) | ) |
| random2avg | ( | luaL_checkint(ls, 1) | , | |
| luaL_checkint(ls, 2) | ||||
| ) |
| random_range | ( | luaL_checkint(ls, 1) | , | |
| luaL_checkint(ls, 2) | , | |||
| lua_isnumber(ls, 3)?luaL_checkint(ls, 3):1 | ||||
| ) |
| redraw_screen | ( | void | ) |
| int char defval |
| int ndx |
1.5.6