summaryrefslogtreecommitdiffstats
path: root/pokemod/CoinListObject.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-01-21 00:44:23 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-01-21 00:44:23 +0000
commit2b653821cc31f18adb5d50bb0bc19048939670dc (patch)
treed333bbf0d1dde8fe0c1633bea60785b20ac07841 /pokemod/CoinListObject.cpp
parente27ba66952a1e851bb417611e0ed7df1fbf5f945 (diff)
downloadsigen-2b653821cc31f18adb5d50bb0bc19048939670dc.tar.gz
sigen-2b653821cc31f18adb5d50bb0bc19048939670dc.tar.xz
sigen-2b653821cc31f18adb5d50bb0bc19048939670dc.zip
[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) git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@35 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/CoinListObject.cpp')
-rw-r--r--pokemod/CoinListObject.cpp6
1 files changed, 3 insertions, 3 deletions
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;
}