From fc3046a7e917458e024d76fd37ec531ce7efe217 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sun, 24 Feb 2008 02:38:08 +0000 Subject: [FIX] Include cleanup [FIX] Consolidate skins into Pokemod UI forms [FIX] Now using KMainWindow [FIX] Some code for the tree set up git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@79 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemod/MapTrainer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pokemod/MapTrainer.cpp') diff --git a/pokemod/MapTrainer.cpp b/pokemod/MapTrainer.cpp index 306b50ec..cd6b4c98 100644 --- a/pokemod/MapTrainer.cpp +++ b/pokemod/MapTrainer.cpp @@ -69,7 +69,7 @@ bool MapTrainer::validate() const pokemod->validationMsg("Name is not defined"); valid = false; } - if (!QFile::exists(QString("%1/image/skin/%2.png").arg(pokemod->getPath()).arg(skin))) + if (!QFile::exists(getSkin())) { pokemod->validationMsg("Skin could't be found"); valid = false; @@ -84,7 +84,7 @@ bool MapTrainer::validate() const pokemod->validationMsg("Invalid number of Pokémon for a fight"); valid = false; } - if (!QFile::exists(QString("%1/ai/%2.pai").arg(pokemod->getPath()).arg(ai))) + if (!QFile::exists(getAI())) { pokemod->validationMsg("AI file couldn\'t be found"); valid = false; @@ -314,7 +314,7 @@ Point MapTrainer::getCoordinate() const QString MapTrainer::getSkin() const { - return skin; + return QString("%1/image/skin/%2.png").arg(pokemod->getPath()).arg(skin); } int MapTrainer::getSight() const @@ -334,7 +334,7 @@ int MapTrainer::getNumFight() const QString MapTrainer::getAI() const { - return ai; + return QString("%1/ai/%2.pai").arg(pokemod->getPath()).arg(ai); } Flag MapTrainer::getAppearFlag() const -- cgit