diff options
author | Chuck Miller <shadowmil@gmail.com> | 2009-05-05 18:37:34 -0400 |
---|---|---|
committer | Chuck Miller <shadowmil@gmail.com> | 2009-05-05 18:37:34 -0400 |
commit | bff134a0803f68a7bf69cf2f1121824137d4b2fb (patch) | |
tree | 45e069c4cb90fdf8c8c9f6ac297941d69d09e108 /src/player.h | |
parent | 5a9759680427154f379499cb3268f307bb860c22 (diff) | |
download | mana-bff134a0803f68a7bf69cf2f1121824137d4b2fb.tar.gz mana-bff134a0803f68a7bf69cf2f1121824137d4b2fb.tar.bz2 mana-bff134a0803f68a7bf69cf2f1121824137d4b2fb.tar.xz mana-bff134a0803f68a7bf69cf2f1121824137d4b2fb.zip |
Moved code for hiding / showing player names from Player::logic() to a the configure listener system
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/player.h b/src/player.h index dfcca310..07701528 100644 --- a/src/player.h +++ b/src/player.h @@ -135,6 +135,12 @@ class Player : public Being virtual unsigned char getWalkMask() const { return 0x82; } // blocked by walls and monsters (bin 1000 0010) + /** + * Called when a option (set with config.addListener()) is changed + */ + + void optionChanged(const std::string &value); + protected: /** * Gets the way the monster blocks pathfinding for other objects. |