summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dlua.cc
Commit message (Collapse)AuthorAgeFilesLines
* Remove stuffNicholas Feinberg2014-07-291-1/+1
| | | | | | | .cc, moving its contents into the new stepdown.cc and strings.cc. (The latter also got many donations from libutil.h.) Down with stuff! Up the new flesh!
* Formatting fixes (add braces).Neil Moore2014-05-121-0/+2
| | | | This fixes all the instances caught by unbrace.
* Use std namespace.Raphael Langella2012-08-261-30/+29
| | | | | | | | | | | | | I had to rename distance() (in coord.h) to distance2() because it conflicts with the STL function to compare 2 iterators. Not a bad change given how it returns the square of the distance anyway. I also had to rename the message global variable (in message.cc) to buffer. I tried to fix and improve the coding style has much as I could, but I probably missed a few given how huge and tedious it is. I also didn't touch crawl-gdb.py, and the stuff in prebuilt, rltiles/tool and util/levcomp.*, because I have no clue about those.
* Massive style fix (braces, indentation, etc.)Neil Moore2012-08-011-0/+2
|
* Remove parentheses around return (simple_function_call).Adam Borowski2012-07-051-1/+1
| | | | For way too paranoid and underinclusive values of "simple".
* Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-14/+14
|
* Rename dat/clua to dat/dlua to avoid the clua/dlua confusion.Adam Borowski2011-06-181-3/+3
| | | | | There might be places where dlua is referred to as clua internally, and in many places "clua" means "lua in general".
* Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-5/+4
| | | | | | | "File:" is shown in your editor's status bar. "Written by:" was used only for the first person who changed a file. We got git for that now, and pre-DCSS history is so woefully inaccurate it doesn't really matter.
* Allow maps to specify different CHANCE and WEIGHT for different depth ranges ↵Darshan Shaligram2010-12-241-1/+8
| | | | (Zaba).
* Fix map transforms accessing areas outside the map grid (kilobyte).Darshan Shaligram2010-12-061-2/+2
|
* Massive spacing fixes: "( spaces after parentheses )".Adam Borowski2010-10-151-4/+4
| | | | | | I did review it manually to find places where they made sense (like some tables), but for a massive sed job like this there might be places that I missed.
* allow defining colour patterns in luaJesse Luehrs2010-09-101-0/+1
|
* Allow corpses to be placed in .des files.Darshan Shaligram2010-06-221-0/+8
| | | | | | | | | | | Add item property CORPSE_NO_DECAY to disallow decay on corpses/skeletons/chunks. Wizmode &% now creates an item using the .des file item name parser; &o remains the old wizmode item-gen command. Corpse decay for corpses placed by maps can be controlled using dgn.delayed_decay.
* Placate clang's warnings about shadowing class variables in class functions.Adam Borowski2010-06-201-2/+2
|
* s/marshallLong/marshallInt/, since this confusion tends to cause bugs.Adam Borowski2010-06-201-2/+2
| | | | | | | Actually, it should be named marshallInt32_t as that's what it does, but that's hard to read, no architecture with smaller ints can conceivably run Crawl and the only architecture with bigger ints is long dead. And in even in such a case, everything will be fine except for name confusion...
* Make dungeon builder reject vaults that have no DEPTH, PLACE or TAGS that ↵Darshan Shaligram2010-06-201-0/+1
| | | | | | can be used to place the vault, add default-depths to .des file to pass these checks. The preferred way to disable vaults is to give them a zero weight.
* Nuke a whole lot of old-style casts, and remove some casts completelyHaran Pilpel2010-01-291-1/+1
| | | | | (you don't need to cast an X* to a void* and you don't need to cast arguments to math.h functions such as sqrt.)
* Remove libutil.h from AppHdr.h and include explicitly.Robert Vollmert2010-01-201-1/+1
| | | | | | | Also extract unwind_var template to unwind.h. The latter is now included from AppHdr.h, though it needn't really be. This means it's now possible to use coord_def in libutil.h.
* Fix Shoal:$ generation bugs: stairs could be surrounded by deep water, hut ↵Darshan Shaligram2010-01-051-9/+1
| | | | | | entrances could be blocked by rock. shoal-hut.lua test generates 1k Shoal:$ levels and verifies that the levels pass sanity tests.
* A start at a dLua spells library.Jude Brown2009-12-251-0/+1
| | | | | | | | | | | Provides wrappers for non-player Toxic Radiance and Ozocubu's Refrigeration. These are basically just an adjustment of kill categories and messages to allow them to be used as background effects in WizLabs (Ozocubu's and Olgreb's). Hopefully a wrapper for monster (and possibly player)-cast bolt structures can also be included, which could then be accessed with the (planned) Lua traps functionality.
* Subvaults.Enne Walker2009-11-281-0/+1
| | | | | | | | Vaults can now include other vaults as a part of their definition. These subvaults are currently included by tag only and replace glyphs in their parent vault. See documentation for more details. Vault:8 has been modified to use subvaults.
* New Lua library: feat.Jude Brown2009-11-271-0/+1
| | | | | | | | | | | | | | | | | | | Provides wrappers for all of the feat_is_XXX functions from terrain.cc, as well as a few other functions. Also provides a macro which can wrap a function to take: * a set of co-ordinates (parsed with grd(coord_def(x, y))) * a string (parsed with dungeon_feature_by_name) * an integer (cast into dungeon_feature_type, can be fetched from dgn.grid(x, y)) All of the feat library functions can be used in this manner. For example: * feat.is_wall(x, y) * feat.is_wall(dgn.grid(x, y)) * feat.is_wall(7) * feat.is_wall("rock_wall")
* Lua builder funcs act on map_lines, not grd.Enne Walker2009-11-021-2/+0
| | | | | | | This lets regular vaults use the same Lua functions that layout vaults do. Convert functions in l_dgnbld that acted on grd. Update layout vaults to use these new functions. Also, remove l_dgn_bf, as all of its functionality is now in l_dgnbld.
* Move Lua monster bindings into the dungeon lua.Robert Vollmert2009-10-271-0/+1
| | | | | | They appear to be used only for ziggurat monster placement, and I'm finding it hard to see a safe use of these for the user. Correct me if I'm wrong.
* Move print_?lua_stack into CLua.Robert Vollmert2009-10-211-26/+0
|
* Move more utility code from dlua to cluautil.Robert Vollmert2009-10-211-22/+0
|
* Move more macros and functions to cluautil.cc.Robert Vollmert2009-10-211-16/+0
|
* Move remaining libraries from clua.cc.Robert Vollmert2009-10-201-2/+1
| | | | That's l_file.cc, l_food.cc, l_global.cc.
* Move grd_lib out of clua.cc into l_mapgrd.cc.Robert Vollmert2009-10-201-0/+1
| | | | | | | | | | | | | | Rest of commit comment only as accurate as my understanding... Renaming from grd to mapgrd to avoid confusion with grd == env.grid: This grd is the maplines-section of a vault definition. Also move mapgrd_lib from clua to dlua since it's only used for dungeon building. clua and dlua need more descriptive names.
* Change you_dlib load style.Robert Vollmert2009-10-201-1/+1
|
* Move clua crawl_lib from clua to l_crawl.cc.Robert Vollmert2009-10-201-14/+15
| | | | To avoid name clashes, rename dlua libs from *_lib to *_dlib.
* Split debug lua bindings out to new library "debug".Robert Vollmert2009-10-201-1/+2
|
* Split out grid and feature-related bindings.Robert Vollmert2009-10-201-0/+1
|
* Split builder functions out from l_dgn.cc.Robert Vollmert2009-10-201-0/+1
| | | | Now sub-2k lines of code.
* Split level and branch functions out of l_dgn.cc.Robert Vollmert2009-10-201-0/+1
|
* Split out tiles specific functions from l_dgn.cc.Robert Vollmert2009-10-201-0/+1
| | | | Also a little cleanup.
* Split some parts of lua library "dgn" out.Robert Vollmert2009-10-201-1/+4
| | | | | Specifically, item and monster-related functions to l_dgnit.cc and l_dgnmon.cc.
* Move part of dgn_lib out to l_dgnevt.cc.Robert Vollmert2009-10-201-0/+1
|
* Split out builder functions from dlua.cc.Robert Vollmert2009-10-201-221/+1
| | | | Also minor cleanup.
* Reduce #includes in dlua.cc.Robert Vollmert2009-10-191-34/+0
|
* Split out lib_mapmark from dlua.cc.Robert Vollmert2009-10-191-29/+0
|
* Split out dgnevent_lib from dlua.cc.Robert Vollmert2009-10-191-51/+0
|
* Split you_lib out from dlua.cc.Robert Vollmert2009-10-191-49/+0
|
* Split file_lib out.Robert Vollmert2009-10-191-133/+3
| | | | | Move lua library headers to separate l_libs.h, fixing another compilation error...
* Split out crawl_lib from dlua.cc.Robert Vollmert2009-10-191-48/+1
| | | | Also fix error in previous commit.
* Split dgn_lib out of luadgn.cc; rename luadgn to dlua.Robert Vollmert2009-10-191-0/+916