summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/actor.cc
Commit message (Collapse)AuthorAgeFilesLines
* Forms never lower weight capStefan O'Rear2009-12-271-2/+2
| | | | I'm just building the bikeshed - somebody else needs to paint this stupid thing.
* Replace long debug message calls with dprf(), except for cases where a dumb ↵Adam Borowski2009-12-201-4/+1
| | | | | | compiler could call unnecessary functions. For paranoia, I left even any uses of std::string.
* Add formatting fixes.David Lawrence Ramsey2009-11-211-2/+2
| | | | This mostly puts && and || on the proper lines, per the style guide.
* Shaft trap behavior modified. They now are one-time use and pre-knowledge of ↵Alex MacDonald2009-11-181-2/+2
| | | | | | shaft traps (i.e. using them intentionally) will improve the chances of the player landing fewer levels away. Shaft traps also now randomly determine their destination. Monsters cannot follow the player through shaft traps. Signed-off-by: David Ploog <dploog@users.sourceforge.net>
* Split itemprop enums out into itemprop-enum.h.Robert Vollmert2009-11-171-0/+1
| | | | Other headers now don't need to include all of itemprop.h.
* Fix a few whitespace errors.Adam Borowski2009-11-151-1/+1
|
* Put duplicated body weight calculations into actor::.Adam Borowski2009-11-131-0/+28
|
* Let unrandart shields have a melee_effect func, called on successful block.Adam Borowski2009-11-131-1/+17
|
* Move duplicated can_hibernate code into actor.Jude Brown2009-11-131-0/+30
|
* Constify a variable in acotr::check_res_magic().David Lawrence Ramsey2009-11-081-3/+3
|
* Move see_cell_no_trans into player.Robert Vollmert2009-11-081-18/+4
| | | | Also collect actor/player LOS code in actor-los.cc.
* Give actors their own LOS.Robert Vollmert2009-11-071-0/+11
|
* Remove trailing whitespace.David Lawrence Ramsey2009-11-061-1/+1
|
* Implement actor::can_see.Robert Vollmert2009-11-061-0/+5
| | | | | This just relies on actor::visible_to and actor::see_cell. An arena special case was removed.
* Add actor::set_position.Robert Vollmert2009-11-061-0/+5
| | | | | | | | | | | | This should be used instead of setting position directly. actor::position could be made "protected" except for the arena's unwind_var(you.position), which is too difficult for me to fix. The reason behind this change is that actors should get their own LOS, whose origin should be synchronized with the actor's position. This change also removes the non-const "coord_def& actor::pos()" (yuk).
* Merge monsters,player::check_res_magic() (Zaba)Adam Borowski2009-11-051-0/+36
|
* Put lots of actor:: methods where they belong (Zaba)Adam Borowski2009-11-051-0/+64
|
* Also remove monster::visible.Robert Vollmert2009-10-221-1/+1
|
* Rename actor::visible to actor::observable.Robert Vollmert2009-10-221-0/+11
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).