summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/arena.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into mon-pickAdam Borowski2012-11-041-1/+1
|\ | | | | | | | | Merge commits instead of rerere suck, but not being able to comfortably use the test rig sucks even more.
| * 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.
* | Get rid of a crapload of uselessly passed level_number.Adam Borowski2012-11-041-2/+1
|/ | | | | | | | | | Also, get rid of one of three copies of '8'/'9' logic. Also, fix the depth of place: not being heeded for some purposes. Technically, there is one actual change: shallow items in Ziggurats had a fixed level of 27, they now use 27 + depth in Zig. Not noticeable as most nearby items use level 351 anyway.
* Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-4/+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.
* s/noreturn/NORETURN/ to unbreak Windows builds.Adam Borowski2011-01-071-1/+1
| | | | | It did resolve in __declspec(noreturn) which is used by the system headers as well...
* Follow the advice of gcc-4.6 -Wsuggest-attribute=noreturnAdam Borowski2011-01-071-1/+1
|
* Rename class "monsters" to "monster".Robert Vollmert2010-09-051-4/+4
|
* Rename variables named "monster" to "mons" or similar.Robert Vollmert2010-09-051-2/+2
|
* Allow starting the arena from the startup menu.Robert Vollmert2010-04-301-1/+1
| | | | | This adds a primitive arena team choice screen, and integrates arena team settings with newgame_def.
* headers: fix inconsistent struct/class forward declarationsSteven Noonan2009-12-291-1/+1
| | | | | | | Some classes were erroneously referred to as 'struct' in forward declarations, and vice versa. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* arena: respawning slime creaturesMatthew Cline2009-11-021-0/+3
| | | | Deal with two respawning slime creatures merging and then splitting.
* headers: remove 'AppHdr.h' include from .h filesSteven Noonan2009-10-101-1/+0
| | | | | | | | This breaks the GCC if you're using precompiled headers, and we don't need this included in these headers anyway. All the .cc files have AppHdr.h included first anyway. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-3/+0
|
* Fix [2498711]: In arena mode, mark monsters duplicated by chaos as dolorous2009-01-161-2/+1
| | | | | | | having entered the arena. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8475 c06c8d41-db1a-0410-9941-cceddc491573
* Apply Eino's patches 2494428, 2494591 and 2494703. Thanks!j-p-e-g2009-01-091-0/+8
| | | | | | | | | I had to comment out the line set_random_mon_list in icecave.des because that gave an error "Too many arguments" and I couldn't find any example where it was already used. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8356 c06c8d41-db1a-0410-9941-cceddc491573
* Change arena item culling to cull oldest items first instead of most boringzelgadis2009-01-091-1/+1
| | | | | | | | | | | | | | | | | | | items first. Removed arena tag "move_spawners", replaced it with "move_summons", which moves summons to a random location as soon as they're placed. Added tag "summon_throttle:", which if set prevents summons from being placed if the summoner has N or more allies. Make arena monsters ignore test spawners, since spawners are only pseudo-monsters placed in order to summons real monsters (plus attacking them is a waste of time since they're unkillable). Tell the arena when a corpse is placed. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8349 c06c8d41-db1a-0410-9941-cceddc491573
* Yet another fix to the arena win/loss/tie logic.zelgadis2009-01-071-0/+6
| | | | | | | | | | | | | | | | | | | | | | | During arena mode don't reserve any of mitm[] when creating new items, and when mitm[] fills up call arena_cull_items() instead of _cull_items(), since in arena mode we can cull via how boring/interesting the items are rather than having to consider game balance and fairness to the player. Allow the arena to veto monster placement, rather than culling them immediately after they're placed. New arena tags: * "no_bands" prevents band members from being placed. * "move_spawners" teleports test spawners every turn to spread their summons randomly over the arena. * "ban_glyphs:" lists a set of text glyphs of types of monsters which shouldn't be allowed in the arena. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8300 c06c8d41-db1a-0410-9941-cceddc491573
* The arena now prevents undesired random monsters from being placed by tellingzelgadis2009-01-031-0/+15
| | | | | | | | | | | | | | | | | | | | | pick_random_monster() to try something else, rather than by culling them after they're placed. By default the arena prevents zero xp monsters from being randomly placed. To allow them to be placed use the spec tag "allow_zero_xp". Removed the arena spec tag "alert", since it's no longer needed. Added the arena spec tag "cycle_random", which if set causes pick_random_monster() to cycle through all the monsters valid for the level_id chosen as the arena's place. Produces a greater variety of monsters when using test spawners. If arena mode is dumping message to the output file then prefix error messages with "ERROR: " and diagnostic messages with "DIAG: " git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8165 c06c8d41-db1a-0410-9941-cceddc491573
* Add arena mode, activated on the command-line by 'crawl -arena "monster v ↵dshaligram2008-12-311-0/+8
monster"' (eg: crawl -arena "Sigmund v Jessica") to let monsters fight each other undisturbed by the player. Good to examine monster AI and monster behaviour when the player is AWOL. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8059 c06c8d41-db1a-0410-9941-cceddc491573