summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/travel.cc
Commit message (Collapse)AuthorAgeFilesLines
* Re-enable Swamp, randomly disable one of the Swamp, Snake Pit, or Shoals ↵Darshan Shaligram2010-01-161-1/+3
| | | | instead of flipping between Swamp and Shoals only (rob, dpeg).
* Don't autokill with berserkitis (Twinge).Jude Brown2010-01-091-0/+4
|
* Ignore obscured items in the UIStefan O'Rear2009-12-301-2/+2
| | | | I probably missed a few spots.
* Make auto-travel killing toadstools saner.Jude Brown2009-12-251-0/+4
| | | | | | | | | Use wielded_weapon_check, though in this instance do not print a prompt. This means that if you have previously been asked about your weapon and say yes, it will kill toadstools while autoexploring. This means no more "Really attack while wielding your bow?" prompts, and it also should obey no-attack/etc inscriptions.
* Make mimics hold the item they're mimicking, instead of fragile hacks with ↵Adam Borowski2009-12-151-10/+2
| | | | saving RNG state.
* Add an option to draw the player cursor manually.Robert Vollmert2009-11-281-1/+0
| | | | | | | | | | | | | Set use_fake_player_cursor = true to use this. This allows defaulting the cursor to off, which means less cursor blinking say when travelling. This patch also moves the cursor control closer to where it's used, so that the cursor is only turned on for actual input prompts. I've definitely missed some prompts here: almost anything that prompts for a single character and reads it using getch() will not have a cursor with use_fake_player_cursor set at the moment.
* Remove unnecessary header-header includes.Robert Vollmert2009-11-271-0/+1
|
* Fix translevel travel to previously unvisited levels.Robert Vollmert2009-11-261-6/+10
| | | | | This involves only updating stair distances if the target position is more than just a level id.
* Don't use is_travelsafe_square for dungeon generation.Robert Vollmert2009-11-251-5/+2
| | | | This hopefully fixes recent disconnected level problems.
* Sort out translevel travel initialization.Robert Vollmert2009-11-251-46/+38
| | | | | | | | | | All translevel travel now goes through start_translevel_travel(pos), which in particular makes sure destination stair distances are determined, fixing travel failure to waypoints. This was not failing earlier because prompt_translevel_target used to call start_translevel_travel(pos) through the now-unused TravelCache::travel_to_waypoint.
* Add formatting fixes.David Lawrence Ramsey2009-11-211-4/+6
| | | | This mostly puts && and || on the proper lines, per the style guide.
* Replace a few more uses of env.grid with env.map_knowledge.Robert Vollmert2009-11-201-9/+10
|
* Use remembered terrain instead of actual terrain in pathfind.Robert Vollmert2009-11-201-3/+2
| | | | This fixes travel colour revealing changed terrain.
* Make emphasise() and is_unknown_stair() refer to map_knowledge.Robert Vollmert2009-11-201-3/+2
| | | | They are no longer passed a "remembered feature" as parameter.
* Remove unused is_player_seen.Robert Vollmert2009-11-201-5/+0
|
* Fix X-map last travel memory for new 3D X-mapStefan O'Rear2009-11-191-7/+9
|
* explore_stop: greedy_pickup_smart, pickup_ignoreMatthew Cline2009-11-191-33/+5
| | | | | | | | | | | | | | | | | | | * Added the explore_stop option "greedy_pickup_smart", which is like greedy_pickup, but only stops for thrown items and items different than any in your inventory (and for fruit if you worship Fedhas). * Added the option explore_stop_pickup_ignore. Any items matching any of the regexes in the list will *not* cause "explore_stop = greedy_pickup" (or greedy_pickup_smart) to stop auto-explore. * "explore_stop = greedy_pickup" no longer stops when picking up gold. * "explore_stop = greedy_pickup" (or greedy_pickup_smart) now stops auto-explore after auto-pickup has happened, rather than right before it happens. * Removed obsolete ES_PICKUP.
* Remove outdated comment.Robert Vollmert2009-11-181-2/+0
|
* Move tutorial state out of Options.Robert Vollmert2009-11-161-2/+2
|
* Make some viewwindow show update requirements explicit, remove others.Robert Vollmert2009-11-161-1/+1
|
* Remove viewwindow call from travel().Robert Vollmert2009-11-161-6/+0
|
* Rename acr.cc to main.cc.Robert Vollmert2009-11-151-1/+1
|
* Rename fixary.h and fixvec.h.Robert Vollmert2009-11-151-1/+1
|
* Travel exclude speedupMatthew Cline2009-11-151-7/+9
| | | | | | | | | | Speed up is_excluded() by making the class exclude_set, which caches the set of excluded points, calculating the set only when exclusions are added or removed (or when an old level is loaded). NOTE: This recomputes the set of excluded points once upon entering level-map mode and once upon exiting it. If this takes to long on slow machines, this can be improved.
* Make find_deepest_explored public.Robert Vollmert2009-11-141-2/+2
|
* Allow auto-travel/explore to kill toadstoolsCharles Otto2009-11-131-2/+9
|
* Rename monspeak/monplace/monstuff to mon-speak/place/stuff.Jude Brown2009-11-121-1/+1
| | | | | I'm pretty sure I've managed to replace every instance of a reference to these files, so I hopefully haven't missed anything.
* Remove a few obsolete includes.Robert Vollmert2009-11-101-3/+0
| | | | Also add a few previously indirect includes.
* Remove inside_level_bounds.Robert Vollmert2009-11-101-1/+1
| | | | | This was a weird mix of in_bounds and map_bounds (exclusive top-left, inclusive top-right). Replaced with in_bounds.
* Split shouting and stealth code from view.cc.Robert Vollmert2009-11-101-0/+1
|
* Remove option draw_it from viewwindow.Robert Vollmert2009-11-091-2/+2
| | | | | | The only use was just removed. Also move the draw check closer to where it's used.
* Rename FeawnCharles Otto2009-11-081-4/+4
| | | | | In most places Feawn is now referred to as "Fedhas," its long name (used in the religion screen) is "Fedhas Madash"
* Split map knowledge and FPROPs.Robert Vollmert2009-11-081-6/+7
| | | | | | | | map_cell no longer has the field "properties", which has been replaced by the unsigned long array env.pgrid. env.map has been renamed to env.map_knowledge. It should really be moved into player.
* Replace global see_cell by observe_cell and disambiguate old uses.Robert Vollmert2009-11-061-1/+1
| | | | | | | Calls to plain see_cell(pos) were replaced with either observe_cell(pos) or you.see_cell(pos). observe_cell where related to drawing the interface and messaging, you.see_cell for game mechanics, and one or the other in less clear cases (targetting, say).
* Let Feawn worshipers travel/run through plants they can pass through.Charles Otto2009-11-051-3/+8
|
* Split up view.cc.Robert Vollmert2009-11-041-0/+1
|
* [ and ] respect dungeon topology (by)Stefan O'Rear2009-11-041-7/+7
|
* Get rid of multiple-meaning "int object" in env.show.Robert Vollmert2009-11-041-5/+5
| | | | | | | | | | | | | env.show is now a class show_def that stores tagged unions of type show_type. For the moment, there's also env.show_los for use in LOS determination, but that should become an array of boolean at some point. This breaks save compatibility. Tiles and console version build and appear to work fine, but this kind of change is likely to have some side-effects.
* Split game_options from externs.h into options.h.Robert Vollmert2009-11-041-0/+1
|
* Use G in the overmap to directly change levelsStefan O'Rear2009-11-021-11/+11
|
* Implement map viewing for other levelsStefan O'Rear2009-11-021-0/+44
| | | | | | | There are three new commands described on the X? screen. Interlevel travel works. Other levels are not currently highlighted by reachability; let me know if you want this. Interface stolen from TAEB :). dpeg's stair view is not yet in.
* Splitting up stuff.cc.Robert Vollmert2009-10-301-0/+2
| | | | New: colour.cc, coord.cc, coordit.cc, random.cc, rng.cc.
* level_pos: add methods current() and is_on()Matthew Cline2009-10-291-0/+5
| | | | | | Added to level_pos the static method current(), similar to level_id::current(), and is_on(level_id lev), which returns true if the level_pos is on the given level_id.
* Move exclusion marshalling code to exclude.cc.Robert Vollmert2009-10-271-30/+2
|
* Move most exclusion code from travel.cc to exclude.cc.Robert Vollmert2009-10-271-299/+5
|
* Fix travel_exclude constructor not initialising monster.Robert Vollmert2009-10-271-1/+1
|
* Convert some ints to monster_type.Robert Vollmert2009-10-271-7/+6
| | | | | | | | | There's a whole lot of places that pass monster_type as int, often with varying meanings for the value -1. This moves some of these to monster_type, introducing MONS_NO_MONSTER and MONS_PLAYER as new invalid special values. Also improve on the autoexclude descriptions.
* Fix compile.Robert Vollmert2009-10-261-4/+5
| | | | | | The previous fix was right in spirit, but incomplete. Fixed to compile for now, though the autoexclusion descriptions are broken until I figure out how to get a monster_type's name.
* Consistenly regard travel_exclud::mon as monster_type.Robert Vollmert2009-10-261-4/+5
| | | | | Should fix the segmentation fault reported by steve in monsters.push_back(get_monster_data(curr_excludes[i].mon)->name);
* Member renaming in travel_exclude.Robert Vollmert2009-10-261-4/+4
|