summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove extra hunger from rings of regeration when you're at full hp.Adam Borowski2009-11-071-3/+4
| | | | Increase the hunger when the rings work to compensate.
* Replace mons_neutral with monsters::neutral.Vsevolod Kozlov2009-11-071-1/+1
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Replace player_weapon with player::weapon.Vsevolod Kozlov2009-11-071-6/+0
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Replace player_shield with player::shield.Vsevolod Kozlov2009-11-071-6/+1
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Remove unused player_slot_item.Vsevolod Kozlov2009-11-071-7/+2
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Make player use actor LOS instead of env.show_los.Robert Vollmert2009-11-071-6/+0
|
* Consolidate player/monster sleep checks.David Lawrence Ramsey2009-11-061-8/+25
|
* Replace global see_cell by observe_cell and disambiguate old uses.Robert Vollmert2009-11-061-2/+3
| | | | | | | 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).
* Move checks for the berserk state into actor::berserk().David Lawrence Ramsey2009-11-061-10/+15
|
* Move mons_is_friendly to monsters::friendly.Vsevolod Kozlov2009-11-061-1/+1
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Implement actor::can_see.Robert Vollmert2009-11-061-8/+0
| | | | | 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-4/+4
| | | | | | | | | | | | 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).
* Rename is_valid_item to item_def::is_valid.Vsevolod Kozlov2009-11-061-1/+1
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Convert calls you.duration to relevant player:: check.Vsevolod Kozlov2009-11-061-3/+3
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Add actor::petrified, which replaces mons_is_petrified.Vsevolod Kozlov2009-11-061-1/+6
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Simplify player::res_holy_energy() a bit.David Lawrence Ramsey2009-11-051-2/+2
|
* Reorder a few functions.David Lawrence Ramsey2009-11-051-7/+7
|
* In is_chaotic(), mark player followers/monster priests of chaotic gods.David Lawrence Ramsey2009-11-051-0/+3
|
* In is_evil(), mark player followers and monster priests of evil gods.David Lawrence Ramsey2009-11-051-1/+7
|
* Unify mesmerisation code.Robert Vollmert2009-11-051-123/+2
| | | | | | | | There were several places that had copies of the same code, checking whether mesmerisation blocked movement to a given target. The various mesmerisation functions have become methods of player and were moved into behold.cc.
* Create an is_evil() function in the actor interface.David Lawrence Ramsey2009-11-051-0/+5
| | | | Currently, only unholy monsters are marked as evil this way.
* Use this instead of you in player::rot.Vsevolod Kozlov2009-11-051-4/+4
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Make many checks for monster (non)existence on squares use monster_at().David Lawrence Ramsey2009-11-051-4/+4
| | | | | | | Not all are changed yet, as there are several index checks still needed for debugging purposes. Also, make many checks for player/monster (non)existence use actor_at().
* Replace uses of player_in_water with you.in_water.Vsevolod Kozlov2009-11-051-10/+5
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Replace uses of player_is_swimming with you.swimming.Vsevolod Kozlov2009-11-051-9/+4
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Replace uses of player_is_airborne with you.airborne.Vsevolod Kozlov2009-11-051-11/+6
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Move rot_player() to player::rot() (Zaba)Adam Borowski2009-11-051-30/+20
|
* Merge monsters,player::check_res_magic() (Zaba)Adam Borowski2009-11-051-22/+0
|
* Put lots of actor:: methods where they belong (Zaba)Adam Borowski2009-11-051-70/+0
|
* Another couple of yous busted (Zaba)Adam Borowski2009-11-051-2/+2
|
* Convert all instances of "you" to "this" in player member functions.Vsevolod Kozlov2009-11-051-54/+54
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Move player_res_asphyx/rotting to player::res_asphyx/rotting.Vsevolod Kozlov2009-11-051-40/+25
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Combine player_knows_spell, player_has_spell into player::has_spell.Vsevolod Kozlov2009-11-051-14/+0
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Move *_res(ist)_magic to relevant classes, provide actor interface.Vsevolod Kozlov2009-11-051-86/+86
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Split up view.cc.Robert Vollmert2009-11-041-0/+2
|
* Disintegration can be very messy.Stefan O'Rear2009-11-041-0/+6
|
* Split game_options from externs.h into options.h.Robert Vollmert2009-11-041-0/+1
|
* Support for X map multi-level viewing on tiles.Enne Walker2009-11-031-0/+2
| | | | | Fixes seeing in-LOS squares on incorrect levels. Fixes the minimap not updating. Fixes the player dot appearing on the minimap on wrong levels.
* Fix inverted logic wrt curare and res_aphyx.Adam Borowski2009-11-031-1/+1
|
* Bracers of archery: 5,3 slaying for ranged combat, -1,-1 for melee.Adam Borowski2009-11-031-1/+5
|
* Remove +Tele as a randart propertyStefan O'Rear2009-11-031-2/+0
|
* Until the issue of transformations' being chaotic or not is worked out,David Lawrence Ramsey2009-11-021-1/+1
| | | | | | | don't mark any players as chaotic. (Recommit of the one part of d50bd43ba9936c27f4f90ecd324d14cb52c9f381 that isn't in the branch.)
* Revert "Merge a few bits of Eino's chaotic_experiment branch that make sense"David Lawrence Ramsey2009-11-021-1/+1
| | | | This reverts commit d50bd43ba9936c27f4f90ecd324d14cb52c9f381.
* Merge a few bits of Eino's chaotic_experiment branch that make senseDavid Lawrence Ramsey2009-11-021-1/+1
| | | | | | | | | | | | with the current code: 1. Death oozes eating silver and holy wrath items take damage instead of gaining hp. 2. Mark monsters with Summon Ugly Thing chaotic. Also, until the issue of transformations' being chaotic or not is worked out, don't mark any players as chaotic.
* Ziggurats can now be added to the shopping list.Matthew Cline2009-11-021-1/+2
|
* Implement 'Icemail' mutation for new DSStefan O'Rear2009-11-021-0/+5
|
* Move checks for a player or monster's being chaotic into anotherDavid Lawrence Ramsey2009-11-011-1/+6
| | | | convenience function in the actor interface.
* Merge mons_holiness() into monster::holiness(), and add an is_unholy()David Lawrence Ramsey2009-10-311-5/+5
| | | | convenience function.
* Combine mons_is_submerged(monsters *m) into monsters::submerged()abrahamwl2009-10-311-3/+3
| | | | | | ...and replace all references to mons_is_submerged() with submerged(). It's a dirty job, but someone's got to do it. (Thank God for regex!)
* Splitting up stuff.cc.Robert Vollmert2009-10-301-0/+3
| | | | New: colour.cc, coord.cc, coordit.cc, random.cc, rng.cc.