diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-05-29 02:25:28 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-05-29 02:25:28 +0000 |
| commit | 539cee929d3a04a655a4f63801de1ab6d392886a (patch) | |
| tree | 7f0474c935ba76cf070263916228b8f4c06b6bfa /pokemodr/MoveUI.cpp | |
| parent | f3364b56398a4c93243459d565080c78a19ad377 (diff) | |
| download | sigen-539cee929d3a04a655a4f63801de1ab6d392886a.tar.gz sigen-539cee929d3a04a655a4f63801de1ab6d392886a.tar.xz sigen-539cee929d3a04a655a4f63801de1ab6d392886a.zip | |
[FIX] Moves cleaned up
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@185 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/MoveUI.cpp')
| -rw-r--r-- | pokemodr/MoveUI.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/pokemodr/MoveUI.cpp b/pokemodr/MoveUI.cpp index 652b2491..4ce9216c 100644 --- a/pokemodr/MoveUI.cpp +++ b/pokemodr/MoveUI.cpp @@ -21,7 +21,6 @@ // Pokemod includes #include "../pokemod/Move.h" #include "../pokemod/Pokemod.h" -#include "../pokemod/Rules.h" #include "../pokemod/Type.h" MoveUI::MoveUI(Move* move, QWidget* parent) : @@ -35,12 +34,6 @@ MoveUI::~MoveUI() { } -void MoveUI::initGui() -{ - varTarget->addItems(Move::TargetStr); - varTargetChoice->addItems(Move::ChoiceStr); -} - void MoveUI::refreshGui() { varType->clear(); @@ -49,7 +42,6 @@ void MoveUI::refreshGui() const Type* type = pokemod()->type(i); varType->addItem(type->name(), type->id()); } - varNumTargets->setMaximum(pokemod()->rules()->maxFight() * pokemod()->rules()->maxPlayers()); } void MoveUI::setGui() @@ -58,10 +50,7 @@ void MoveUI::setGui() varAccuracy->setValue(static_cast<Move*>(modified())->accuracy()); varPower->setValue(static_cast<Move*>(modified())->power()); varType->setCurrentIndex(varType->findData(static_cast<Move*>(modified())->type())); - varTarget->setCurrentIndex(static_cast<Move*>(modified())->target()); - varTargetChoice->setCurrentIndex(static_cast<Move*>(modified())->targetChoice()); varPowerPoints->setValue(static_cast<Move*>(modified())->powerPoints()); - varNumTargets->setValue(static_cast<Move*>(modified())->numTargets()); varSpecial->setChecked(static_cast<Move*>(modified())->special() ? Qt::Checked : Qt::Unchecked); varOverworld->setChecked(static_cast<Move*>(modified())->overworld() ? Qt::Checked : Qt::Unchecked); varDescription->setText(static_cast<Move*>(modified())->description()); @@ -108,21 +97,6 @@ void MoveUI::on_varPowerPoints_valueChanged(const int powerPoints) static_cast<Move*>(modified())->setPowerPoints(powerPoints); } -void MoveUI::on_varTarget_activated(const int target) -{ - static_cast<Move*>(modified())->setTarget(target); -} - -void MoveUI::on_varNumTargets_valueChanged(const int numTargets) -{ - static_cast<Move*>(modified())->setNumTargets(numTargets); -} - -void MoveUI::on_varTargetChoice_activated(const int targetChoice) -{ - static_cast<Move*>(modified())->setTargetChoice(targetChoice); -} - void MoveUI::on_varSpecial_toggled(const bool special) { static_cast<Move*>(modified())->setSpecial(special); |
