summaryrefslogtreecommitdiff
path: root/src/lua_bind.hpp
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-03-07 16:55:41 +0100
committerBardur Arantsson <bardur@scientician.net>2015-03-07 16:55:41 +0100
commit05f1835fd9ec10fa3dd3c9962605e889ec0fc698 (patch)
tree29be9e6ea0daf4c4e3c88ed19e82cc570cd0cb96 /src/lua_bind.hpp
parente574b1a3941295190b6809efd18b33b80f8bd7a1 (diff)
Move lua_bind.cc declarations to separate header file
Diffstat (limited to 'src/lua_bind.hpp')
-rw-r--r--src/lua_bind.hpp25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/lua_bind.hpp b/src/lua_bind.hpp
index c65795fc..5117fcbe 100644
--- a/src/lua_bind.hpp
+++ b/src/lua_bind.hpp
@@ -1,10 +1,33 @@
#pragma once
#include "h-basic.h"
-#include "spell_type_fwd.hpp"
+#include "types_fwd.h"
/** Calculate spell failure rate for a device, i.e. a wand or staff. */
extern s32b spell_chance_device(spell_type *spell_ptr);
/** Calculate spell failure rate for a spell book. */
extern s32b spell_chance_book(s32b s);
+
+
+extern s32b lua_get_level(struct spell_type *spell, s32b lvl, s32b max, s32b min, s32b bonus);
+extern int get_mana(s32b s);
+extern s32b get_power(s32b s);
+extern s32b get_level(s32b s, s32b max, s32b min);
+extern void get_level_school(struct spell_type *spell, s32b max, s32b min, s32b *level, bool_ *na);
+
+extern s32b get_level_max_stick;
+extern s32b get_level_use_stick;
+
+extern void get_map_size(const char *name, int *ysize, int *xsize);
+extern void load_map(const char *name, int *y, int *x);
+
+extern char *lua_input_box(cptr title, int max);
+extern char lua_msg_box(cptr title);
+
+extern void increase_mana(int delta);
+
+extern timer_type *TIMER_AGGRAVATE_EVIL;
+
+void timer_aggravate_evil_enable();
+void timer_aggravate_evil_callback();