Start of movement tests
Adds the following lua functions:
- nh.pushkey("x")
Pushes a key into the command queue. Support is spotty,
currently only the keys handled in rhack.
- nh.doturn()
Runs one turn of main loop, or if optional boolean param
is true, until g.multi == 0
- nh.monster_generation(false)
Disable monster generation, and kill off all monsters.
Adds a testmove.lua script to test hero movement. Currently
covers only hjklyubn and HJKLYUBN.
This commit is contained in:
@@ -18,6 +18,7 @@ extern char *fmt_ptr(const void *);
|
||||
|
||||
/* ### allmain.c ### */
|
||||
|
||||
extern void moveloop_core(void);
|
||||
extern void moveloop(boolean);
|
||||
extern void stop_occupation(void);
|
||||
extern void display_gamewindows(void);
|
||||
|
||||
@@ -204,6 +204,7 @@ struct instance_flags {
|
||||
boolean window_inited; /* true if init_nhwindows() completed */
|
||||
boolean vision_inited; /* true if vision is ready */
|
||||
boolean sanity_check; /* run sanity checks */
|
||||
boolean debug_mongen; /* debug: prevent monster generation */
|
||||
boolean mon_polycontrol; /* debug: control monster polymorphs */
|
||||
boolean in_dumplog; /* doing the dumplog right now? */
|
||||
boolean in_parse; /* is a command being parsed? */
|
||||
|
||||
Reference in New Issue
Block a user