l_crawl.cc File Reference

#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>

Include dependency graph for l_crawl.cc:


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 Documentation

#define MESSF_METATABLE   "crawl.messf"

#define REGEX_METATABLE   "crawl.regex"


Function Documentation

void cluaopen_crawl ( lua_State *  ls  ) 

Here is the call graph for this function:

coinflip ( void   ) 

Type Constraints

void dluaopen_crawl ( lua_State *  ls  ) 

flush_input_buffer ( FLUSH_LUA   ) 

flush_prev_message (  ) 

kbhit ( void   ) 

Type Constraints

lua_gettop ( ls   ) 

Type Constraints

LUAFN ( _crawl_millis   ) 

Here is the call graph for this function:

LUAFN ( _crawl_redraw_stats   ) 

Here is the call graph for this function:

LUAFN ( _crawl_redraw_view   ) 

Here is the call graph for this function:

LUAFN ( _crawl_milestone   ) 

Here is the call graph for this function:

LUAFN ( _crawl_args   ) 

Here is the call graph for this function:

LUAFN ( crawl_stderr   ) 

LUARET1 ( crawl_make_name  ,
string  ,
_crawl_make_name(ls).c_str()   
)

Here is the call graph for this function:

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)   ) 

Type Constraints

random2avg ( luaL_checkint(ls, 1)  ,
luaL_checkint(ls, 2)   
)

Type Constraints

random_range ( luaL_checkint(ls, 1)  ,
luaL_checkint(ls, 2)  ,
lua_isnumber(ls, 3)?luaL_checkint(ls, 3):1   
)

Type Constraints

redraw_screen ( void   ) 


Variable Documentation

int char defval

int ndx


Generated on Thu Jan 13 13:07:51 2011 by  doxygen 1.5.6