summaryrefslogtreecommitdiffstats
path: root/pokemod/Dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/Dialog.cpp')
-rw-r--r--pokemod/Dialog.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/pokemod/Dialog.cpp b/pokemod/Dialog.cpp
index 01463a48..58252431 100644
--- a/pokemod/Dialog.cpp
+++ b/pokemod/Dialog.cpp
@@ -33,19 +33,25 @@ const QStringList Dialog::CommandStr = QStringList() << "Flip Flag" << "Set Flag
const QStringList Dialog::CommandAbbrStr = QStringList() << "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 QList<int> Dialog::CommandNumArgs = QList<int>() << 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;
+Dialog::Dialog(const Dialog& dialog) :
+ Object("Dialog", dialog.pokemod(), dialog.id())
+{
+ *this = dialog;
+}
+
Dialog::Dialog(const Pokemod* pokemod, const int id) :
Object("Dialog", pokemod, id),
m_dialog("")
{
}
-Dialog::Dialog(const Pokemod* pokemod, const Dialog& dialog, const int id) :
+Dialog::Dialog(const Dialog& dialog, const Pokemod* pokemod, const int id) :
Object("Dialog", pokemod, id)
{
*this = dialog;
}
-Dialog::Dialog(const Pokemod* pokemod, const QDomElement& xml, const int id) :
+Dialog::Dialog(const QDomElement& xml, const Pokemod* pokemod, const int id) :
Object("Dialog", pokemod, id)
{
load(xml, id);