summaryrefslogtreecommitdiffstats
path: root/general/Ref.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'general/Ref.cpp')
-rw-r--r--general/Ref.cpp25
1 files changed, 8 insertions, 17 deletions
diff --git a/general/Ref.cpp b/general/Ref.cpp
index cad1b624..9424cf93 100644
--- a/general/Ref.cpp
+++ b/general/Ref.cpp
@@ -22,26 +22,17 @@
#include "Ref.h"
-unsigned findIn(const unsigned end, const QString& str, const char* array[])
-{
- unsigned i = 0;
- for (; i < end; ++i)
- {
- if (str == array[i])
- break;
- }
- return i;
-}
+const QStringList StatRBYStr = QStringList() << "HP", "Attack", "Defense", "Speed", "Special", "Special", "Accuracy", "Evasion";
+const QStringList StatGSCStr = QStringList() << "HP", "Attack", "Defense", "Speed", "Special Attack", "Special Defense", "Accuracy", "Evasion";
-const char* StatRBYStr[ST_End_Battle] = {"HP", "Attack", "Defense", "Speed", "Special", "Special", "Accuracy", "Evasion"};
-const char* StatGSCStr[ST_End_Battle] = {"HP", "Attack", "Defense", "Speed", "Special Attack", "Special Defense", "Accuracy", "Evasion"};
+const QStringList BattleMemberStr = QStringList() << "Player", "Enemy";
-const char* BattleMemberStr[BM_End] = {"Player", "Enemy"};
+const QStringList WeatherStr = QStringList() << "Ice", "Rain", "Sun", "Sand", "All";
-const char* WeatherStr[W_End_All] = {"Ice", "Rain", "Sun", "Sand", "All"};
+const QStringList DirectionStr = QStringList() << "Up", "Down", "Left", "Right", "None";
-const char* DirectionStr[D_End_None] = {"Up", "Down", "Left", "Right", "None"};
+const QStringList RelativeStr = QStringList() << "Less", "Less or Equal", "Equal", "Greater or Equal", "Greater", "Not Equal";
-const char* RelativeStr[REL_End] = {"Less", "Less or Equal", "Equal", "Greater or Equal", "Greater", "Not Equal"};
+const QStringList StatusStr = QStringList() << "Freeze", "Paralyze", "Sleep", "Poison", "Toxic Poison", "Burn", "Any";
-const char* StatusStr[STS_End] = {"Freeze", "Paralyze", "Sleep", "Poison", "Toxic Poison", "Burn", "Any"};
+const QStringList HMStr = QStringList() << "Cut" << "Fly" << "Surf" << "Strength" << "Flash" << "Whirlpool" << "Waterfall" << "Dive" << "Headbutt" << "Rock Smash" << "Defog" << "Rock Climb";