summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makefile.obj
Commit message (Collapse)AuthorAgeFilesLines
...
* Move opening_screen and name reading routines to ng-input.cc.Robert Vollmert2009-10-241-0/+1
|
* Extract newgame character restrictions from newgame.cc.Robert Vollmert2009-10-241-0/+1
| | | | | | | | | | | | | | | | | The functions in the new ng-restr.cc are "pure": They don't access global state; data is passed in via the new and incomplete newgame_def. Eventually, new_game should be split into something like newgame_def choose_game(); that doesn't access "you", and void setup_game(newgame_def); that sets up the player. Also get rid of player_size in favour of player::body_size. Rename player_size_type to size_part_type since it's not really player-specific (used in actor::body_size). Move parts of player_genus, player::has_claws, body_size out into species.cc.
* Moving data out of newgame.cc.Robert Vollmert2009-10-231-0/+2
| | | | Also move species<->string translation from player.cc to species.cc.
* Rename actor::visible to actor::observable.Robert Vollmert2009-10-221-0/+1
| | | | | | This should reduce potential for confusion -- compare mon->visible() and mon->invisible(). The uses of actor::visible for messaging are replaced by actor::observable, others by you.can_see(...) or actor::visible_to(&you).
* Yank some god invocations from religion.cc into godabil.ccAdam Borowski2009-10-221-0/+1
|
* Slightly reduce religion.cc by yanking item-handling stuff to goditem.ccAdam Borowski2009-10-211-0/+1
|
* Sort makefile.obj.Robert Vollmert2009-10-211-15/+15
|
* Move utility functions from clua.cc to cluautil.cc.Robert Vollmert2009-10-211-1/+2
| | | | | | | | cluautil.cc should eventually contain all of the functions for passing objects from and to lua, at least the shared ones. Also cut down on clua.cc include list.
* Move remaining libraries from clua.cc.Robert Vollmert2009-10-201-0/+2
| | | | That's l_file.cc, l_food.cc, l_global.cc.
* Move library "item" from clua.cc to l_item.cc.Robert Vollmert2009-10-201-0/+1
|
* Move library "options" from clua.cc to l_option.cc.Robert Vollmert2009-10-201-0/+1
|
* Move monster libraries from clua.cc to l_mons.cc.Robert Vollmert2009-10-201-0/+1
|
* 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.
* Split debug lua bindings out to new library "debug".Robert Vollmert2009-10-201-0/+1
|
* 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.
* makefile: force regeneration of compflag.h and build.h on revision changeSteven Noonan2009-10-191-1/+0
| | | | | | | | The build.h and compflag.h files stayed around regardless of whether or not they were dependencies of the .INTERMEDIATE pseudo-target. This led to stale headers. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Split some parts of lua library "dgn" out.Robert Vollmert2009-10-201-1/+3
| | | | | Specifically, item and monster-related functions to l_dgnit.cc and l_dgnmon.cc.
* Split out builder functions from dlua.cc.Robert Vollmert2009-10-201-0/+1
| | | | Also minor cleanup.
* Split out lib_mapmark from dlua.cc.Robert Vollmert2009-10-191-0/+1
|
* Split out dgnevent_lib from dlua.cc.Robert Vollmert2009-10-191-0/+1
|
* Split you_lib out from dlua.cc.Robert Vollmert2009-10-191-0/+1
|
* Split file_lib out.Robert Vollmert2009-10-191-0/+1
| | | | | Move lua library headers to separate l_libs.h, fixing another compilation error...
* Split out crawl_lib from dlua.cc.Robert Vollmert2009-10-191-0/+1
| | | | Also fix error in previous commit.
* Split dgn_lib out of luadgn.cc; rename luadgn to dlua.Robert Vollmert2009-10-191-1/+2
|
* Replace monster_los by calls to losight.Robert Vollmert2009-10-171-1/+0
| | | | | | | | | los_param got a new opacity_monmove to help. The change compiles and the game runs, but I'm unsure how to test monster pathfinding. Please tell me if anything went wrong! Removes mon-los.{cc,h}, so I'm afraid I may have broken the non-Unix builds again.
* Lua bindings for find_ray test.Robert Vollmert2009-10-141-0/+1
| | | | Extra file to keep luadgn.cc from growing even larger.
* Implement bit array class.Robert Vollmert2009-10-101-0/+1
|
* A rewrite of losight() to allow future generalization.Robert Vollmert2009-10-081-0/+1
| | | | | | | | | | | | | Parameters relevant to the LOS calculation are now passed as an object los_param that takes care of coordinate translation, bounds checking, opacity of cells and what is written to the output array. A check for in_bounds was changed to map_bounds for simlicity; this should not have any effect. Special casing for arena was removed from losight; instead calc_show_los now calls the new losight_permissive.
* Split LOS code from view.cc.Robert Vollmert2009-10-081-0/+3
| | | | | | | | | los.cc: basic raycasting algorithm; losight(), see_grid() etc. ray.cc: ray_def implementation. mon-los.cc: monster_los This includes adding a bunch of #includes; there's probably some obsolete includes of view.h now.
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* Harden the PRNG for public servers.Mikko Juola2009-10-011-0/+1
| | | | | | Detailed discussion is here: http://www.genodeen.net/index.clua?cwrng Signed-off-by: Darshan Shaligram <dshaligram@users.sourceforge.net>
* Fix makefile.obj reference to 'Kills.o'Steven Noonan2009-09-291-1/+1
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Set up a basic testing framework for LOS. ./crawl -test with a full debug ↵Darshan Shaligram2009-09-241-0/+1
| | | | build will run the test.
* First part of the merger of fixed artefacts into unrandom artefactszelgadis2009-06-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (further changes will be much smaller). Breaks savefile compatibility, and bumps the major savefile version up to 6. Some changes made to some tiles files, but it hasn't been tested with a tiles build. Overview of changes: * Unrand artefacts are now defined in art-data.txt and is turned into C code via util/art-data.pl. This has the dual advantage of being more readable by humans, and that if the unrand data structure changes then you can just change util/art-data.pl and regenerate the C code rather than having to change some 70 different C structs by hand. * util/art-data.pl automatically updates NO_UNRANDARTS, and also automatically generates an enumeration of all the unrands which are equal to their item.special field. * randart.cc and randart.h have been renamed to artefact.cc and artefact.h, since the files covers all types of artefacts, and the differences between randarts, unrandarts and (former) fixed arts have been minimized since the terms were introduced. Also renamed unrand.h to art-data.h * The brands and resistances of former fixed arts are now handled via artefact properties, but the rest of their special behaviours are still hardcoded. * Unrandarts are now distinguished between normal and "special", with the special ones currently just being identical to the list of the formed fixed arts. Special unrandarts are randomly generated less often than normal unrandarts, can be generated in the Abyss if they've been lost, can't be picked up by monsters, and can't be affected by Tukima's Dance. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10035 c06c8d41-db1a-0410-9941-cceddc491573
* Split miscast code off from spl-cast.cc into spl-mis.cczelgadis2009-01-221-0/+1
| | | | | | | | Get rid of members mon_target and mon_source from MiscastEffect class, replace with methods target_as_monster() and source_as_monster(). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8674 c06c8d41-db1a-0410-9941-cceddc491573
* Addition of REVISION() macro for tracking SVN revision.ennewalker2009-01-041-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8213 c06c8d41-db1a-0410-9941-cceddc491573
* Add arena mode, activated on the command-line by 'crawl -arena "monster v ↵dshaligram2008-12-311-0/+1
| | | | | | 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
* Fixes to compile with Visual C++. Moved direct.cc and direct.h to directn.* ↵dshaligram2008-04-191-1/+1
| | | | | | to avoid conflict with VC++ direct.h header. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4390 c06c8d41-db1a-0410-9941-cceddc491573
* Freshly-rewritten quiver code. This is just a checkpoint, and it'spauldubois2008-04-091-0/+1
| | | | | | | | | used from anywhere yet. It should compile. Let me know if it doesn't, or if I've modified the makefiles incorrectly. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4161 c06c8d41-db1a-0410-9941-cceddc491573
* Remove a now-obsolete reference to insult.o in makefile.obj, to fix the dolorous2008-02-261-1/+0
| | | | | | | build. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3466 c06c8d41-db1a-0410-9941-cceddc491573
* Monsters can gain experience and level-up. Breaks saves.dshaligram2007-10-261-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2584 c06c8d41-db1a-0410-9941-cceddc491573
* Added an actual vector version of CrawlHashTable, and removed the codezelgadis2007-10-091-2/+2
| | | | | | | | | | | | for making a hash table imitate a vector. Since there's now more than just one type of savable/restorable container, hash.cc and hash.h have been renamed to store.cc and store.h ("store" for storage). Destroying/unlinking/deleting an item now clears out the item's props field. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2389 c06c8d41-db1a-0410-9941-cceddc491573
* Added class CrawlHashTable, a savable/loadable string-keyedzelgadis2007-10-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | associative array with heterogeneous values, capable of holding booleans, bytes, shorts, longs, floats, string, coordinates (coord_def), items (item_def) and nested hash tables. A table can be made to be homogeneous by giving it a value type, which causes dynamic type checking to be performed. The same type checking can be performed for individual member values of a heterogeneous table by setting a flag on that value. A flag can also be set on an individual member value to prevent its value from being changed. CrawlHashTable is currently only used for the props field of the item_def struct (though it could easily be added elsewhere), and is only being used by decks. The deck structure has been changed so that deck.plus is the original number of cards in the deck, deck.plus2 is either the number of cards used or the number of cards left, and deck.special hold the deck's rarity. The cards themselves are selected at deck creation time and stored in the nested hash table deck.props["cards"]. The Nemelex "Peek Deck" ability has been changed to identify the deck, draw three cards from it, show them to the user, and shuffle them back into the deck (with special cases for decks containing only one or two cards). A fourth Nemelex ability, "Mark Deck", has been added, which picks four cards from the deck, marks them, and then shuffles them back into the deck, creating a deck with a mixture of marked and unmarked cards. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2370 c06c8d41-db1a-0410-9941-cceddc491573
* Added new commands "re-do previous command" (bound to `) and "repeatzelgadis2007-09-191-0/+1
| | | | | | | | | | next command" (bound to 0). Though this is just an interface change, it changes code in the core input processing function (input() in acr.cc), and also messes around with the input buffer, so it could probably do with more testing before merging it into the 0.3 branch. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2137 c06c8d41-db1a-0410-9941-cceddc491573
* Split off portions of externs.h and enum.h into other files. Thezelgadis2007-09-151-0/+3
| | | | | | | | | | | | | crawl_environment, player and monsters classes have been left in externs.h, which necessitates that all of the enums references by those classes stay in enums.h, since you can't forward declare an enum. However, it's a start. Also, portions of misc.{cc,h} have been split off into traps.{cc,h}, place.{cc,h} and terrain.{cc,h} git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2095 c06c8d41-db1a-0410-9941-cceddc491573
* Updated level-design.txt.dshaligram2007-07-211-0/+2
| | | | | | | | | | | Moved map markers to mapmark.cc. Added support for timer markers that remove a feature after a certain timeout. Need to hook up messaging to Lua. Added bazaars (need more bazaar layouts). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1899 c06c8d41-db1a-0410-9941-cceddc491573
* Step 1 of .des file Lua-isation. The dungeon compiler converts .des files todshaligram2007-06-231-0/+1
| | | | | | | | | | Lua (Lua code can be embedded with {{ <lua code here> }} constructs) that is run to produce the final map. Some maps may be broken, this is untested, lots more work needs to be done. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1629 c06c8d41-db1a-0410-9941-cceddc491573