summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_dgnevt.cc
Commit message (Collapse)AuthorAgeFilesLines
* Make ctrl-attacking a wall not waste a turn.elliptic2013-04-141-1/+1
| | | | | This removes wall_hit trigger capabilities and the single vault that used it. There are plenty of other ways of triggering events.
* Use std namespace.Raphael Langella2012-08-261-1/+1
| | | | | | | | | | | | | 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.
* Drop a bunch of parentheses from return statements.Adam Borowski2012-08-081-1/+1
| | | | | This is incomplete, partially because of me getting bored, partially because of doubts about the point of leaving simple addition/etc in parentheses.
* Some more return deparenthesization.Adam Borowski2012-07-051-3/+3
|
* Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-7/+7
|
* Make pressure plates call Lua markers when stepped on.Adam Borowski2010-10-201-1/+2
|
* Update event names.Jude Brown2010-04-231-1/+1
| | | | Oops, forgot to add this to the last commit.
* New events: door opened, closed. Lua marker for door restriction.Jude Brown2010-01-181-1/+1
| | | | | | | | | | | The events are triggered whenever a door is opened or closed by the player, or opened by a monster (monsters can never close doors). These events can be used by Triggerables. The RestrictDoor Lua marker restricts monsters from opening doors unless the player has already opened them. In combination with teleport restriction, this allows wandering monsters to not interfere with loot chambers. Obviously, the uses of this should be limited.
* Observerable/observer-ish pattern for Lua markersMatthew Cline2009-10-221-1/+25
| | | | | | | | | | A new framework for Lua markers, similar to the observable/observer design pattern, which decouples the thing being activated from the thing watching for the activating condition. This makes it easier to create new types of Lua markers which are triggered by dungeon events, and easier to add new triggering conditions to already existing marker types. Currently only ChangeFlags (clua/lm_flags.lua) and MonsterOnTrigger (clua/lm_monst.lua) use it.
* Move more macros and functions to cluautil.cc.Robert Vollmert2009-10-211-1/+1
|
* Move clua crawl_lib from clua to l_crawl.cc.Robert Vollmert2009-10-201-3/+3
| | | | To avoid name clashes, rename dlua libs from *_lib to *_dlib.
* Move part of dgn_lib out to l_dgnevt.cc.Robert Vollmert2009-10-201-1/+66
|
* Split out builder functions from dlua.cc.Robert Vollmert2009-10-201-0/+4
| | | | Also minor cleanup.
* Split out dgnevent_lib from dlua.cc.Robert Vollmert2009-10-191-0/+58