From 2b653821cc31f18adb5d50bb0bc19048939670dc Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 21 Jan 2008 00:44:23 +0000 Subject: [ADD] More GUI classes (only MoveEffect left) [FIX] Polished up GUI classes [FIX] renamed methods get*ByID -> get*Index instead for more logical get*ByID [FIX] Renaming in pokemod to remove mention of Pokémon [FIX] minor .pro fixes (aesthetic mainly) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@35 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemod/CoinListObject.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pokemod/CoinListObject.cpp') diff --git a/pokemod/CoinListObject.cpp b/pokemod/CoinListObject.cpp index 74f09878..d29a8061 100644 --- a/pokemod/CoinListObject.cpp +++ b/pokemod/CoinListObject.cpp @@ -51,7 +51,7 @@ bool PokeMod::CoinListObject::validate() const pokemod.validationMsg(QString("------Object with id %1---").arg(id), Pokemod::V_Msg); if (type == Item) { - if (pokemod.getItemByID(object) == UINT_MAX) + if (pokemod.getItemIndex(object) == UINT_MAX) { pokemod.validationMsg("Invalid item"); valid = false; @@ -59,7 +59,7 @@ bool PokeMod::CoinListObject::validate() const } else if (type == Pokemon) { - if (pokemod.getSpeciesByID(object) == UINT_MAX) + if (pokemod.getSpeciesIndex(object) == UINT_MAX) { pokemod.validationMsg("Invalid Species"); valid = false; @@ -112,7 +112,7 @@ void PokeMod::CoinListObject::setType(const unsigned t) throw(BoundsException) void PokeMod::CoinListObject::setObject(const unsigned o) throw(BoundsException) { - if (((type == Item) && (pokemod.getItemByID(object) == UINT_MAX)) || ((type == Pokemon) && (pokemod.getSpeciesByID(object) == UINT_MAX))) + if (((type == Item) && (pokemod.getItemIndex(object) == UINT_MAX)) || ((type == Pokemon) && (pokemod.getSpeciesIndex(object) == UINT_MAX))) throw(BoundsException("CoinListObject", "object")); object = o; } -- cgit