diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-18 19:29:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-18 19:29:26 +0300 |
commit | ac9d9925b52789abc07795d5ed52dd0de620c757 (patch) | |
tree | d4ab04c3285edb0e2748d39b35d9966235dcaac5 /src/gamemodifiers.cpp | |
parent | 129f749d057e3b96161630934da7b2d89dec3c71 (diff) | |
download | manaplus-ac9d9925b52789abc07795d5ed52dd0de620c757.tar.gz manaplus-ac9d9925b52789abc07795d5ed52dd0de620c757.tar.bz2 manaplus-ac9d9925b52789abc07795d5ed52dd0de620c757.tar.xz manaplus-ac9d9925b52789abc07795d5ed52dd0de620c757.zip |
Improve gamemodifiers class for using from other places.
Diffstat (limited to 'src/gamemodifiers.cpp')
-rw-r--r-- | src/gamemodifiers.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gamemodifiers.cpp b/src/gamemodifiers.cpp index b5d5d91bb..a77861370 100644 --- a/src/gamemodifiers.cpp +++ b/src/gamemodifiers.cpp @@ -47,8 +47,8 @@ #include "debug.h" #define addModifier(name1, name2, sz, ...) \ - static const unsigned m##name1##Size = sz; \ - static const char *const m##name1##Strings[] = \ + const unsigned GameModifiers::m##name1##Size = sz; \ + const char *const GameModifiers::m##name1##Strings[] = \ __VA_ARGS__; \ std::string GameModifiers::get##name1##String() \ { \ @@ -57,8 +57,8 @@ } #define addModifier2(name1, name2, str, sz, ...) \ - static const unsigned m##name1##Size = sz; \ - static const char *const m##name1##Strings[] = \ + const unsigned GameModifiers::m##name1##Size = sz; \ + const char *const GameModifiers::m##name1##Strings[] = \ __VA_ARGS__; \ void GameModifiers::change##name1(const bool forward) \ { \ @@ -162,7 +162,7 @@ void GameModifiers::changeMoveType(const bool forward) &GameModifiers::getMoveTypeString, 0, false, forward); } -static const unsigned mCrazyMoveTypeSize = 11; +const unsigned GameModifiers::mCrazyMoveTypeSize = 11; void GameModifiers::changeCrazyMoveType(const bool forward) { @@ -266,7 +266,7 @@ addModifier2(AttackType, attackType, "attackType", 4, N_("(?) attack") }) -const unsigned mQuickDropCounterSize = 31; +const unsigned GameModifiers::mQuickDropCounterSize = 31; changeMethod(QuickDropCounter, quickDropCounter, "quickDropCounter") |