diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-06 19:12:55 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-06 19:16:20 +0100 |
commit | f626e442c7a77191a145825507610d3b1ef40ab3 (patch) | |
tree | ebdcf660d3c1dd058c19419cb5983568733d4b04 /crawl-ref/source/player.h | |
parent | 4412160c9f7d6410f7974e6daf1027716547cceb (diff) | |
download | crawl-ref-f626e442c7a77191a145825507610d3b1ef40ab3.tar.gz crawl-ref-f626e442c7a77191a145825507610d3b1ef40ab3.zip |
Add actor::set_position.
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).
Diffstat (limited to 'crawl-ref/source/player.h')
-rw-r--r-- | crawl-ref/source/player.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/player.h b/crawl-ref/source/player.h index 29f4102bb1..7e8fa551b8 100644 --- a/crawl-ref/source/player.h +++ b/crawl-ref/source/player.h @@ -300,6 +300,8 @@ public: void init(); + // Set player position without updating view geometry. + void set_position(const coord_def &c); // Low-level move the player. Use this instead of changing pos directly. void moveto(const coord_def &c); // Move the player during an abyss shift. @@ -505,8 +507,6 @@ public: void set_gold(int amount); protected: - void base_moveto(const coord_def &c); - void _removed_beholder(); bool _possible_beholder(const monsters *mon) const; }; |