diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-05-23 22:39:56 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-05-23 22:39:56 +0000 |
| commit | 0fe749eb04515ff7ee28cdc5d14c7be6f6fdeca4 (patch) | |
| tree | 61da8fe050b81a477c24fc481e5d6cb39f928e2f /pokemod/Pokemod.cpp | |
| parent | 793f2e539316e796968103617025320870f8c3ce (diff) | |
| download | sigen-0fe749eb04515ff7ee28cdc5d14c7be6f6fdeca4.tar.gz sigen-0fe749eb04515ff7ee28cdc5d14c7be6f6fdeca4.tar.xz sigen-0fe749eb04515ff7ee28cdc5d14c7be6f6fdeca4.zip | |
[ADD] Added UI classes for GlobalScript
[FIX] Script support is now in pokemodr
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@168 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Pokemod.cpp')
| -rw-r--r-- | pokemod/Pokemod.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/pokemod/Pokemod.cpp b/pokemod/Pokemod.cpp index 0f52af1f..a0e86ced 100644 --- a/pokemod/Pokemod.cpp +++ b/pokemod/Pokemod.cpp @@ -65,8 +65,6 @@ Pokemod::Pokemod() : m_flySkin(192, 128), m_fishSkin(192, 128), m_surfFishSkin(192, 128), - m_superPCUname(""), - m_superPCPasswd(""), m_typeChart(0, 0), m_rules(new Rules(this)) { @@ -107,10 +105,6 @@ void Pokemod::validate() if (mapById(m_startMap)->warpIndex(m_startWarp) == INT_MAX) emit(error("Invalid starting warp")); } - if (m_superPCUname.isEmpty()) - emit(warning("Super PC username not defined")); - if (m_superPCPasswd.isEmpty()) - emit(warning("Super PC password not defined")); if ((m_typeChart.width() != typeCount()) || (m_typeChart.height() != typeCount())) emit(error("Type chart is invalid")); m_rules->validate(); @@ -395,8 +389,6 @@ void Pokemod::load(const QDomElement& xml, const int) LOAD(QPixmap, flySkin); LOAD(QPixmap, fishSkin); LOAD(QPixmap, surfFishSkin); - LOAD(QString, superPCUname); - LOAD(QString, superPCPasswd); LOAD(Rules, rules); LOAD_SUB(newAbility, Ability); LOAD_SUB(newAuthor, Author); @@ -433,8 +425,6 @@ QDomElement Pokemod::save() const SAVE(QPixmap, flySkin); SAVE(QPixmap, fishSkin); SAVE(QPixmap, surfFishSkin); - SAVE(QString, superPCUname); - SAVE(QString, superPCPasswd); SAVE_Rules(rules); SAVE_MATRIX(Fraction, typeChart); SAVE_SUB(Ability, abilities); @@ -569,16 +559,6 @@ void Pokemod::setSurfFishSkin(const QPixmap& surfFishSkin) emit(changed()); } -void Pokemod::setSuperPCUname(const QString& superPCUname) -{ - CHECK(superPCUname); -} - -void Pokemod::setSuperPCPasswd(const QString& superPCPasswd) -{ - CHECK(superPCPasswd); -} - void Pokemod::setTypeChart(const int attack, const int defense, const Fraction& multiplier) { CHECK_ARRAY(typeChart(attack, defense), multiplier); @@ -649,16 +629,6 @@ QPixmap Pokemod::surfFishSkin() const return m_surfFishSkin; } -QString Pokemod::superPCUname() const -{ - return m_superPCUname; -} - -QString Pokemod::superPCPasswd() const -{ - return m_superPCPasswd; -} - const Matrix<Fraction>* Pokemod::typeChart() const { return &m_typeChart; @@ -2166,8 +2136,6 @@ Pokemod& Pokemod::operator=(const Pokemod& rhs) COPY(description); COPY(startMap); COPY(startWarp); - COPY(superPCUname); - COPY(superPCPasswd); COPY(typeChart); COPY_Rules(rules); COPY_SUB(Ability, abilities); |
