summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/teleport.cc
Commit message (Collapse)AuthorAgeFilesLines
* Tidy up bracket placement according to our coding conventions.Johanna Ploog2009-12-101-2/+2
|
* random_space_weighted() memory bug fixedMatthew Cline2009-11-151-9/+3
| | | | Bug was fixed in random-weight.h, reverting work-around.
* teleport.cc: quite non-debug unused warningMatthew Cline2009-11-151-0/+12
| | | | Get rid of "unused variable" warnings for non-debug builds.
* teleport.cc: hack to deal with memory bugMatthew Cline2009-11-151-4/+14
| | | | | | random_space_weighted() sometimes gets this weird memory bug which causes the return value to be random (and usually out-of-bounds). "Fixed" by testing the result against in_bounds()
* Implement spell "blink close".Robert Vollmert2009-11-141-0/+13
| | | | This allows a monster to blink close to its target.
* Add sanctuary option to random_space_weighted.Robert Vollmert2009-11-141-2/+4
|
* Rename 'blink * closer' to 'blink * close'.Robert Vollmert2009-11-141-1/+1
|
* Implement blink_range and blink_away.Robert Vollmert2009-11-141-28/+61
| | | | | | | This is done by generalizing random_close_space to random_space weighted. Also tweak the weights a little. These might still need work.
* Generalise blink_closer to arbitrary victims.Robert Vollmert2009-11-141-8/+5
|
* Add actor::blink_to for handling blink movement and messaging.Robert Vollmert2009-11-141-0/+44
|
* Fix compilation.David Lawrence Ramsey2009-11-131-1/+1
|
* Make blink_closer fail on player in sanctuary.Robert Vollmert2009-11-141-0/+3
| | | | | Not sure this is the right thing to do, but also not sure if it matters.
* Fix "blink closer" not to try blinking into occupied cells.Robert Vollmert2009-11-141-2/+5
|
* Implement function to blink an actor closer to another actor.Robert Vollmert2009-11-141-0/+41
|
* Move trans_wall_blocking into player.Robert Vollmert2009-11-131-1/+1
|
* Remove a few obsolete includes.Robert Vollmert2009-11-101-2/+0
| | | | Also add a few previously indirect includes.
* Remove some obsolete view.h-includes.Robert Vollmert2009-11-101-1/+0
|
* Split shouting and stealth code from view.cc.Robert Vollmert2009-11-101-0/+1
|
* Move see_cell_no_trans into player.Robert Vollmert2009-11-081-1/+1
| | | | Also collect actor/player LOS code in actor-los.cc.
* Split map knowledge and FPROPs.Robert Vollmert2009-11-081-1/+2
| | | | | | | | 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.
* Remove an unnecessary header env.h include.Robert Vollmert2009-11-081-0/+1
|
* Replace global see_cell by observe_cell and disambiguate old uses.Robert Vollmert2009-11-061-2/+2
| | | | | | | 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).
* Split up view.cc.Robert Vollmert2009-11-041-0/+1
|
* Move random_near_space into new teleport.cc.Robert Vollmert2009-11-021-0/+130