summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/newgame.h
Commit message (Collapse)AuthorAgeFilesLines
* Be more consistent with doxygen comment style.Neil Moore2014-05-291-5/+5
| | | | | | | | Use /** for block comments, /// for short comments, and /**< and ///< for post-member comments. The //<! that appeared in a few places wasn't even correct: it should have been //!< (but is now ///<).
* Drop double newlines where they seem to serve no purpose.Adam Borowski2013-12-211-1/+0
| | | | | Sometimes, they're there to emphasize a break between two sections of code, which is good. In a majority of cases, though, they're just inconsistent.
* Remove unnecessary includes from header files.Jay3.14152012-10-231-2/+3
| | | | | | | | | | For most header files, this only saves on having to recompile a small number of source files, but there are also a few headers where small changes would now take significantly less time. This is most obvious for the Tiles build for which the dependencies have been greatly reduced, so that the only additional includes when compared to console are strictly library or tile related.
* Make a bunch of functions static, delete some unused junk.Adam Borowski2011-11-111-2/+0
|
* Artificer changes.elliptic2011-09-091-1/+0
| | | | | | They don't get to choose their wands, their skills are a little lower, and their starting weapon is a weak staff... but they start with three wands instead of two: flame, enslavement, and random effects.
* Remove the Conjurer book choice.elliptic2011-06-201-1/+0
| | | | | | | | | | | This is another move towards simplifying the startup procedure; now you never need to choose a book (and the book menu code has been gutted). The Fire/Earth book was the one removed, because it had become far too similar to the Book of Flames; the Ice/Air book gives much more unique gameplay. One possibility for addressing the slight imbalance this creates between Ice/Air and Fire/Earth would be to bring back Reaver with a Fire/Earth-themed book.
* 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.
* New background choice layout.Raphael Langella2011-03-111-0/+17
| | | | | Grouped by category, as suggested on the tavern: https://crawl.develz.org/tavern/viewtopic.php?p=9905#p9905
* After a tutorial or sprint map, go back to map screen instead of main screen.Raphael Langella2011-02-081-0/+1
|
* Fold claws_level() into species_has_claws().David Lawrence Ramsey2010-10-121-1/+0
| | | | | | They do much the same thing, except that claws_level() only deals with the claws mutation, so allow controlling that with a parameter in species_has_claws().
* Unify startup menu with rest of character choice.Robert Vollmert2010-04-271-2/+2
| | | | | | | | | Game type is now also stored in newgame_def, and crawl remembers the last choice. We could now easily add a Tab key to the startup menu that functions like the species choice Tab but that includes filling out the same name.
* A start at cleaning up handling of new game choices.Robert Vollmert2010-04-231-40/+2
| | | | | | | | | | | | | | | | No more storing species and background indices. Instead, there's now a few instances of newgame_def: Options.game: command line and option game settings (used to be Options.cls, Options.race, ...) Options.prev_game: the previous game's choices (used to be Options.prev_cls, ...; should not be in Options) ngchoice: current choices, internal to newgame.cc The species and background choice now separate interrogating the user from applying settings from Options.game. This is not the case yet for the secondary choices. Secondary choice memory may be slightly broken at the moment.
* Split up new_game.Robert Vollmert2010-04-231-7/+5
| | | | | | choose_game() is now only concerned with choosing a character, and doesn't touch "you". setup_game() (ng-setup.cc) then fills out "you" and other stuff.
* Move artificer wand choice before character initialization.Robert Vollmert2010-04-231-2/+1
|
* Move chaos knight god choice before character initialization.Robert Vollmert2010-04-231-0/+1
|
* Remove Death Knight of Yredelemnul (dpeg, doy).Robert Vollmert2010-04-231-8/+0
| | | | | | | | | | | | | | | | | | This is highly redundant with Priest of Yredelemnul. Necromancy death knights are also up for removal, but: 1. I'm not as convinced of that. 2. The current change is what's required for new_game clean-up. 3. That would mean changing the job_type enum. Death Knight species choice restrictions are now the species that used to be unrestricted both for DK and for the necromancy choice, apart from Kenku. That probably needs updating, but let's wait to see if DK isn't removed completely first.
* Move weapon choice before character initialization.Robert Vollmert2010-04-231-0/+3
|
* Move book selection before character initialization.Robert Vollmert2010-04-221-0/+2
|
* Startup menus.Janne Lahdenpera2010-04-211-1/+1
| | | | | | | | | | | | | | | | | This patch provides the startup menu. Things that (seem) to work properly: Normal game, Sprint, Arena, savegame loading. Things that need improvement: Tutorial does not activate, left it for future project when the new fixed tutorial map is included. Arena needs an options screen before it starts running. MenuScroller does not have a visible scrollbar or more texts. Texts are not properly wrapped inside TextItems. Should also provide an TextItem that uses formatted_string. Signed-off-by: Janne Lahdenpera <felirx@gmail.com> Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Rename several functions involving player "class" to "job".Johanna Ploog2010-01-191-2/+0
| | | | We still need another synonym, right? *sighs*
* Split itemprop enums out into itemprop-enum.h.Robert Vollmert2009-11-171-1/+1
| | | | Other headers now don't need to include all of itemprop.h.
* Remove "called from:" comments.Vsevolod Kozlov2009-11-031-6/+0
| | | | | | These were of questionable use and freshness. Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Move a little more code out of newgame.cc.Robert Vollmert2009-10-281-1/+0
|
* Move opening_screen and name reading routines to ng-input.cc.Robert Vollmert2009-10-241-2/+4
|
* Convert player::your_name to std::string.Robert Vollmert2009-10-241-1/+1
| | | | Doesn't seem to break anything...
* Extract newgame character restrictions from newgame.cc.Robert Vollmert2009-10-241-0/+11
| | | | | | | | | | | | | | | | | 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.
* files.cc: use proper data type for get_class_by_nameSteven Noonan2009-10-231-5/+0
| | | | | | Whoops, apparently it was declared, but not with the correct prototype. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* newgame.h: add declaration of get_class_by_name to fix tiles buildsSteven Noonan2009-10-231-0/+5
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Moving data out of newgame.cc.Robert Vollmert2009-10-231-20/+3
| | | | Also move species<->string translation from player.cc to species.cc.
* Move new-game enums to newgame.h.Robert Vollmert2009-10-231-8/+36
|
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* Stricter sanity checking of player ghosts.0.6.0-a0zelgadis2009-05-301-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9855 c06c8d41-db1a-0410-9941-cceddc491573
* Miscellaneous arena improvements: items, lua preludes, tiles fixes.ennewalker2009-01-021-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8123 c06c8d41-db1a-0410-9941-cceddc491573
* Remove pre-Stone Soup change history from source files, and push it allj-p-e-g2008-09-141-4/+0
| | | | | | | | | | into a file crawlhistory.txt in docs/obsolete. I used a perl script to do this under the assumption that all these change logs used the same system following the keyword "Change History". git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6930 c06c8d41-db1a-0410-9941-cceddc491573
* Recalculate permanent mutations when changing species, but leave non-permanentzelgadis2008-06-121-0/+5
| | | | | | | mutations in place. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5753 c06c8d41-db1a-0410-9941-cceddc491573
* Add various undead-related fixes.dolorous2008-04-281-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4754 c06c8d41-db1a-0410-9941-cceddc491573
* [Bug 1907221] Add "Modified for Crawl Reference" statement and author to aj-p-e-g2008-03-081-1/+3
| | | | | | | | huge number of files. Also correct file name comments. No coding changes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3539 c06c8d41-db1a-0410-9941-cceddc491573
* Reintroduce parts of the old get_species_by_index to code to fixj-p-e-g2008-03-031-0/+8
| | | | | | | | misbehaviuor with wizmode-defined ghosts (doesn't really work anyway) and (hopefully) the highscores. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3507 c06c8d41-db1a-0410-9941-cceddc491573
* Make Options.race and Options.class translate correctly, no matter whether j-p-e-g2008-03-021-1/+12
| | | | | | | | | | | | the old or new species/classes order is used. Entails some more unborking of newgame.cc. Also: make Esc leave the species selection screen (synonym for 'X', quit the game), and use it to jump back to species selection from all other selection possibilities (class, book, weapon, god) as a synonym for Bksp. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3505 c06c8d41-db1a-0410-9941-cceddc491573
* Tutorial (JPEG) and some formatting cleanup.dshaligram2007-02-061-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@924 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up a mistake in the SVN import.nlanza2006-08-131-0/+24
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10 c06c8d41-db1a-0410-9941-cceddc491573