summaryrefslogtreecommitdiffstats
path: root/general/Ref.h
diff options
context:
space:
mode:
Diffstat (limited to 'general/Ref.h')
-rw-r--r--general/Ref.h153
1 files changed, 75 insertions, 78 deletions
diff --git a/general/Ref.h b/general/Ref.h
index 12508aed..89875f4f 100644
--- a/general/Ref.h
+++ b/general/Ref.h
@@ -25,84 +25,81 @@
#include <QString>
-namespace PokeGen
+unsigned findIn(const unsigned end, const QString& str, const char* array[]);
+
+enum EnumStat
+{
+ ST_HP = 0,
+ ST_Attack = 1,
+ ST_Defense = 2,
+ ST_Speed = 3,
+ ST_Special = 4,
+ ST_End_RBY = 5,
+ ST_SpecialAttack = 4,
+ ST_SpecialDefense = 5,
+ ST_End_GSC = 6,
+ ST_Accuracy = 6,
+ ST_Evasion = 7,
+ ST_End_Battle = 8,
+};
+extern const char* StatRBYStr[ST_End_Battle];
+extern const char* StatGSCStr[ST_End_Battle];
+
+enum EnumBattleMember
+{
+ BM_Player = 0,
+ BM_Enemy = 1,
+ BM_End = 2
+};
+extern const char* BattleMemberStr[BM_End];
+
+enum EnumWeather
+{
+ W_Ice = 0,
+ W_Rain = 1,
+ W_Sun = 2,
+ W_Sand = 3,
+ W_End_Real = 4,
+ W_All = 4,
+ W_End_All = 5
+};
+extern const char* WeatherStr[W_End_All];
+
+enum EnumDirection
+{
+ D_Up = 0,
+ D_Down = 1,
+ D_Left = 2,
+ D_Right = 3,
+ D_End = 4,
+ D_None = 4,
+ D_End_None = 5
+};
+extern const char* DirectionStr[D_End_None];
+
+enum EnumRelative
+{
+ REL_Less = 0,
+ REL_LessOrEqual = 1,
+ REL_Equal = 2,
+ REL_GreaterOrEqual = 3,
+ REL_Greater = 4,
+ REL_NotEqual = 5,
+ REL_End = 6
+};
+extern const char* RelativeStr[REL_End];
+
+enum EnumStatus
{
- unsigned findIn(const unsigned end, const QString& str, const char* array[]);
-
- enum EnumStat
- {
- ST_HP = 0,
- ST_Attack = 1,
- ST_Defense = 2,
- ST_Speed = 3,
- ST_Special = 4,
- ST_End_RBY = 5,
- ST_SpecialAttack = 4,
- ST_SpecialDefense = 5,
- ST_End_GSC = 6,
- ST_Accuracy = 6,
- ST_Evasion = 7,
- ST_End_Battle = 8,
- };
- extern const char* StatRBYStr[ST_End_Battle];
- extern const char* StatGSCStr[ST_End_Battle];
-
- enum EnumBattleMember
- {
- BM_Player = 0,
- BM_Enemy = 1,
- BM_End = 2
- };
- extern const char* BattleMemberStr[BM_End];
-
- enum EnumWeather
- {
- W_Ice = 0,
- W_Rain = 1,
- W_Sun = 2,
- W_Sand = 3,
- W_End_Real = 4,
- W_All = 4,
- W_End_All = 5
- };
- extern const char* WeatherStr[W_End_All];
-
- enum EnumDirection
- {
- D_Up = 0,
- D_Down = 1,
- D_Left = 2,
- D_Right = 3,
- D_End = 4,
- D_None = 4,
- D_End_None = 5
- };
- extern const char* DirectionStr[D_End_None];
-
- enum EnumRelative
- {
- REL_Less = 0,
- REL_LessOrEqual = 1,
- REL_Equal = 2,
- REL_GreaterOrEqual = 3,
- REL_Greater = 4,
- REL_NotEqual = 5,
- REL_End = 6
- };
- extern const char* RelativeStr[REL_End];
-
- enum EnumStatus
- {
- STS_Freeze = 0,
- STS_Paralyze = 1,
- STS_Sleep = 2,
- STS_Poison = 3,
- STS_ToxicPoison = 4,
- STS_Burn = 5,
- STS_Any = 6,
- STS_End = 7
- };
- extern const char* StatusStr[STS_End];
-}
+ STS_Freeze = 0,
+ STS_Paralyze = 1,
+ STS_Sleep = 2,
+ STS_Poison = 3,
+ STS_ToxicPoison = 4,
+ STS_Burn = 5,
+ STS_Any = 6,
+ STS_End = 7
+};
+extern const char* StatusStr[STS_End];
#endif