diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-19 22:02:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-20 00:26:53 +0300 |
commit | e3009cfe9cc0a824450d3e71a0ce8d6b5cd9ff91 (patch) | |
tree | 2959d64c52fb2d9df7ca30fb5a400e17570c4861 /src/listeners/gamemodifierlistener.cpp | |
parent | ac9d9925b52789abc07795d5ed52dd0de620c757 (diff) | |
download | manaverse-e3009cfe9cc0a824450d3e71a0ce8d6b5cd9ff91.tar.gz manaverse-e3009cfe9cc0a824450d3e71a0ce8d6b5cd9ff91.tar.bz2 manaverse-e3009cfe9cc0a824450d3e71a0ce8d6b5cd9ff91.tar.xz manaverse-e3009cfe9cc0a824450d3e71a0ce8d6b5cd9ff91.zip |
Add quick settings page for yellow bar options.
Diffstat (limited to 'src/listeners/gamemodifierlistener.cpp')
-rw-r--r-- | src/listeners/gamemodifierlistener.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/listeners/gamemodifierlistener.cpp b/src/listeners/gamemodifierlistener.cpp new file mode 100644 index 000000000..a8f28a2f6 --- /dev/null +++ b/src/listeners/gamemodifierlistener.cpp @@ -0,0 +1,36 @@ +/* + * The ManaPlus Client + * Copyright (C) 2014-2015 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "listeners/gamemodifierlistener.h" + +#include "debug.h" + +defineListener(GameModifierListener) + +void GameModifierListener::distributeEvent() +{ + FOR_EACH (std::vector<GameModifierListener*>::iterator, + it, mListeners) + { + GameModifierListener *const listener = *it; + if (listener) + listener->gameModifiersChanged(); + } +} |