summaryrefslogtreecommitdiffstats
path: root/pokemod/Object.h
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/Object.h')
-rw-r--r--pokemod/Object.h44
1 files changed, 41 insertions, 3 deletions
diff --git a/pokemod/Object.h b/pokemod/Object.h
index 6c64b455..9b4a7a2f 100644
--- a/pokemod/Object.h
+++ b/pokemod/Object.h
@@ -21,11 +21,45 @@
// Qt includes
#include <QDomElement>
#include <QObject>
+#include <QStringList>
#include <QTextStream>
// C includes
#include <climits>
+namespace Pokemod
+{
+enum Stat
+{
+ ST_HP = 0,
+ ST_No_HP_Start = 1,
+ 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
+};
+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";
+
+enum Direction
+{
+ D_Up = 0,
+ D_Down = 1,
+ D_Left = 2,
+ D_Right = 3,
+ D_End = 4,
+ D_None = 4,
+ D_End_None = 5
+};
+const QStringList DirectionStr = QStringList() << "Up" << "Down" << "Left" << "Right" << "None";
+
class Object : public QObject
{
Q_OBJECT
@@ -33,9 +67,7 @@ class Object : public QObject
public:
Object(const Object& object);
Object(const QString& className, const Object* parent, const int id);
- virtual ~Object()
- {
- }
+ virtual ~Object();
const Object* parent() const;
const Object* pokemod() const;
@@ -75,6 +107,12 @@ class Object : public QObject
const Object* m_parent;
};
+inline Object::~Object()
+{
+}
+
+}
+
#define LOAD_NODE(variable) xml.firstChildElement(variable)
#define LOAD_DATA(node) node.firstChild().toText().data()
#define LOAD_ID() \