From bff134a0803f68a7bf69cf2f1121824137d4b2fb Mon Sep 17 00:00:00 2001 From: Chuck Miller Date: Tue, 5 May 2009 18:37:34 -0400 Subject: Moved code for hiding / showing player names from Player::logic() to a the configure listener system --- src/player.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/player.h') 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. -- cgit v1.2.3-70-g09d2