diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-06-02 01:50:47 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-06-02 01:50:47 +0000 |
| commit | 87bc8b43600937a3d83cbdf8345e23a484755e3a (patch) | |
| tree | 661131614ed841f68ab8cc23ea372983d49fbe20 /pokemod/Trainer.cpp | |
| parent | f3e081acd87439efadd5ff4181916e06cc07f051 (diff) | |
| download | sigen-87bc8b43600937a3d83cbdf8345e23a484755e3a.tar.gz sigen-87bc8b43600937a3d83cbdf8345e23a484755e3a.tar.xz sigen-87bc8b43600937a3d83cbdf8345e23a484755e3a.zip | |
[FIX] Modified Rules a bit
[FIX] Updated Rules widget to match up with Rules
[FIX] Reorganized the Rules widget
[FIX] Using KStandardDirs rather than hardcoded ones
[FIX] Cleaned up some minor things with KListWidgets
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@188 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Trainer.cpp')
| -rw-r--r-- | pokemod/Trainer.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/pokemod/Trainer.cpp b/pokemod/Trainer.cpp index ad09adf2..c9413005 100644 --- a/pokemod/Trainer.cpp +++ b/pokemod/Trainer.cpp @@ -24,6 +24,8 @@ // Qt includes #include <QBuffer> +const QStringList Trainer::IntelligenceStr = QStringList() << "Ignorant" << "Remember" << "Deduce" << "Cheating"; + Trainer::Trainer(const Trainer& trainer) : Object("Trainer", trainer.parent(), trainer.id()) { @@ -101,15 +103,6 @@ void Trainer::setSkin(const QPixmap& skin) emit(changed()); } -// void Trainer::setAi(const QString& fileName) -// { -// QFile file(ai()); -// if (file.exists() && !file.remove()) -// throw(ReplaceException(className(), file.fileName())); -// if (!QFile::copy(fileName, ai())) -// throw(SaveException(className(), file.fileName())); -// } - QString Trainer::name() const { return m_name; @@ -125,11 +118,6 @@ QPixmap Trainer::skin() const return m_skin; } -// QString Trainer::ai() const -// { -// return QString("%1/trainer/%2/ai.pai").arg(static_cast<const Pokemod*>(pokemod())->path(), m_name); -// } - Trainer& Trainer::operator=(const Trainer& rhs) { if (this == &rhs) |
