summaryrefslogtreecommitdiffstats
path: root/pokemod/Dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/Dialog.cpp')
-rw-r--r--pokemod/Dialog.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/pokemod/Dialog.cpp b/pokemod/Dialog.cpp
index 3f2a0dfb..d934d4ae 100644
--- a/pokemod/Dialog.cpp
+++ b/pokemod/Dialog.cpp
@@ -22,29 +22,29 @@
#include "Dialog.h"
-const char* PokeGen::PokeMod::Dialog::CommandStr[PokeGen::PokeMod::Dialog::End] = {"Flip Flag", "Set Flag", "Unset Flag", "Randomize Flag", "Test Flag", "Dialog", "Yes/No", "Item Shop", "Give Item", "Take Item", "Check Item", "Coin List", "Teach Move", "Delete Move", "Give Pokemon", "Take Pokemon", "Show Pokemon", "View Pokemon", "Give Money", "Take Money", "Move Effect", "Turn Effect", "Check Direction", "Check Roster", "Check Levels", "Check Species", "Check Held Items", "Check Money", "Trade", "Daycare", "Battle", "Badge", "Warp", "Name", "Music", "Sound Effect", "Timer", "Map Sign", "Wild Scope", "Safari", "Heal Party", "Refresh", "Clear", "Pause", "New Line", "Exit", "Menu"};
-const char* PokeGen::PokeMod::Dialog::CommandAbbrStr[PokeGen::PokeMod::Dialog::End] = {"FF", "SF", "UF", "RF", "TF", "D", "YN", "ItS", "GIt", "TIt", "CIt", "CL", "TMv", "DMv", "GPk", "TPk", "SPk", "VPk", "G$", "T$", "MvEf", "TEf", "CD", "CR", "CLv", "CS", "CHIt", "C$", "T", "Dc", "Bat", "Bdg", "W", "N", "Ms", "SFX", "Tmr", "MS", "WS", "S", "HP", "R", "C", "P", "NL", "X", "M"};
-const unsigned PokeGen::PokeMod::Dialog::CommandNumArgs[PokeGen::PokeMod::Dialog::Menu] = {1, 1, 1, 1, 3, 2, 2, 1, 4, 4, 4, 1, 5, 3, 7, 4, 1, 4, 1, 4, 6, 3, 6, 5, 5, 4, 4, 5, 6, 1, 2, 1, 2, 1, 2, 1, 3, 1, 1, 3, 0, 0, 0, 0, 0, 0};
+const char* PokeMod::Dialog::CommandStr[PokeMod::Dialog::End] = {"Flip Flag", "Set Flag", "Unset Flag", "Randomize Flag", "Test Flag", "Dialog", "Yes/No", "Item Shop", "Give Item", "Take Item", "Check Item", "Coin List", "Teach Move", "Delete Move", "Give Pokemon", "Take Pokemon", "Show Pokemon", "View Pokemon", "Give Money", "Take Money", "Move Effect", "Turn Effect", "Check Direction", "Check Roster", "Check Levels", "Check Species", "Check Held Items", "Check Money", "Trade", "Daycare", "Battle", "Badge", "Warp", "Name", "Music", "Sound Effect", "Timer", "Map Sign", "Wild Scope", "Safari", "Heal Party", "Refresh", "Clear", "Pause", "New Line", "Exit", "Menu"};
+const char* PokeMod::Dialog::CommandAbbrStr[PokeMod::Dialog::End] = {"FF", "SF", "UF", "RF", "TF", "D", "YN", "ItS", "GIt", "TIt", "CIt", "CL", "TMv", "DMv", "GPk", "TPk", "SPk", "VPk", "G$", "T$", "MvEf", "TEf", "CD", "CR", "CLv", "CS", "CHIt", "C$", "T", "Dc", "Bat", "Bdg", "W", "N", "Ms", "SFX", "Tmr", "MS", "WS", "S", "HP", "R", "C", "P", "NL", "X", "M"};
+const unsigned PokeMod::Dialog::CommandNumArgs[PokeMod::Dialog::Menu] = {1, 1, 1, 1, 3, 2, 2, 1, 4, 4, 4, 1, 5, 3, 7, 4, 1, 4, 1, 4, 6, 3, 6, 5, 5, 4, 4, 5, 6, 1, 2, 1, 2, 1, 2, 1, 3, 1, 1, 3, 0, 0, 0, 0, 0, 0};
-PokeGen::PokeMod::Dialog::Dialog(const Pokemod& par, const unsigned _id) :
+PokeMod::Dialog::Dialog(const Pokemod& par, const unsigned _id) :
Object(par, _id),
dialog("")
{
}
-PokeGen::PokeMod::Dialog::Dialog(const Pokemod& par, const Dialog& d, const unsigned _id) :
+PokeMod::Dialog::Dialog(const Pokemod& par, const Dialog& d, const unsigned _id) :
Object(par, _id)
{
*this = d;
}
-PokeGen::PokeMod::Dialog::Dialog(const Pokemod& par, const QString& fname, const unsigned _id) :
+PokeMod::Dialog::Dialog(const Pokemod& par, const QString& fname, const unsigned _id) :
Object(par, _id)
{
load(fname, _id);
}
-bool PokeGen::PokeMod::Dialog::validate() const
+bool PokeMod::Dialog::validate() const
{
bool valid = true;
pokemod.validationMsg(QString("---Dialog with id %1---").arg(id), Pokemod::V_Msg);
@@ -652,7 +652,7 @@ bool PokeGen::PokeMod::Dialog::validate() const
return valid;
}
-void PokeGen::PokeMod::Dialog::load(const QString& fname, const unsigned _id) throw(Exception)
+void PokeMod::Dialog::load(const QString& fname, const unsigned _id) throw(Exception)
{
Ini ini(fname);
if (_id == UINT_MAX)
@@ -662,7 +662,7 @@ void PokeGen::PokeMod::Dialog::load(const QString& fname, const unsigned _id) th
ini.getValue("dialog", dialog);
}
-void PokeGen::PokeMod::Dialog::save() const throw(Exception)
+void PokeMod::Dialog::save() const throw(Exception)
{
Ini ini;
ini.addField("id", id);
@@ -670,24 +670,24 @@ void PokeGen::PokeMod::Dialog::save() const throw(Exception)
ini.save(QString("%1/dialog/%2.pini").arg(pokemod.getPath()).arg(id));
}
-void PokeGen::PokeMod::Dialog::setDialog(const QString& d)
+void PokeMod::Dialog::setDialog(const QString& d)
{
dialog = d;
}
-QString PokeGen::PokeMod::Dialog::getDialog() const
+QString PokeMod::Dialog::getDialog() const
{
return dialog;
}
-void PokeGen::PokeMod::Dialog::insertDialogCommand(const QString& cmd, const long pos) throw(BoundsException)
+void PokeMod::Dialog::insertDialogCommand(const QString& cmd, const long pos) throw(BoundsException)
{
if (dialog.length() < pos)
throw(BoundsException("Dialog" , "command"));
dialog.insert(pos, cmd);
}
-PokeGen::PokeMod::Dialog& PokeGen::PokeMod::Dialog::operator=(const Dialog& rhs)
+PokeMod::Dialog& PokeMod::Dialog::operator=(const Dialog& rhs)
{
if (this == &rhs)
return *this;