summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_libs.h
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-05-25 01:29:27 +0200
committerRobert Vollmert <rvollmert@gmx.net>2010-07-28 19:21:46 +0200
commit0d0c82d5f7445506631bf78a800d22ea554c7fe7 (patch)
treea8048845a1b7af82ed219e8d1313987255fd1efe /crawl-ref/source/l_libs.h
parent8f49829c07527cc5d5b9eabbad7e6d6c71d46753 (diff)
downloadcrawl-ref-0d0c82d5f7445506631bf78a800d22ea554c7fe7.tar.gz
crawl-ref-0d0c82d5f7445506631bf78a800d22ea554c7fe7.zip
Make monster_info store all the player's knowledge on a monster (v3)
Changes in v3 (rob): - update for master (bleeding, deflect missiles, ...) - fix misled not ending - fix all monsters getting extreme fire resistance Changes in v2: - add operator = monster_info is changed from the monster list's structure to a general purpose structure storing player-known information about a monster. The plan is to make all the user interface code read data from moster_info, so that: 1. There is no risk of accidental leaks, since all the sensitive code is in one place 2. Complicated things like misled and fake monsters are correctly handled, and the code exists once 3. The structure can be serialized for client/server play, and the deserialized structure can be passed to the UI code (this is still theoretical) This will be done in a successive patch. Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
Diffstat (limited to 'crawl-ref/source/l_libs.h')
-rw-r--r--crawl-ref/source/l_libs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/l_libs.h b/crawl-ref/source/l_libs.h
index 5c48420f0e..6ed2ca6c40 100644
--- a/crawl-ref/source/l_libs.h
+++ b/crawl-ref/source/l_libs.h
@@ -81,7 +81,7 @@ int dgn_map_add_transform(lua_State *ls,
void clua_push_item(lua_State *ls, item_def *item);
-class monster_info;
+struct monster_info;
void lua_push_moninf(lua_State *ls, monster_info *mi);
#endif