diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-04-11 14:38:02 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-04-16 00:18:31 +0200 |
commit | b57af96f94c19bc6064ac158a6996f0a01c86d68 (patch) | |
tree | af4bff8033c54de67b645db1b8d213cd624af655 /src/being.h | |
parent | 0b1ea91fcc77961913af35b89751171327656fb1 (diff) | |
download | mana-b57af96f94c19bc6064ac158a6996f0a01c86d68.tar.gz mana-b57af96f94c19bc6064ac158a6996f0a01c86d68.tar.bz2 mana-b57af96f94c19bc6064ac158a6996f0a01c86d68.tar.xz mana-b57af96f94c19bc6064ac158a6996f0a01c86d68.zip |
Introduced the Being::lookAt() function.
We're now using it when picking up items.
Also, de-overnested the Game::handleInput() function when
handling pickups.
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/being.h b/src/being.h index f19e3df4..6831d5ad 100644 --- a/src/being.h +++ b/src/being.h @@ -450,6 +450,11 @@ class Being : public ActorSprite, public Mana::Listener void setMap(Map *map); + /** + * Make the being look at a given pixel position. + */ + void lookAt(const Vector &destPos); + protected: /** * Sets the new path for this being. |