summaryrefslogtreecommitdiffstats
path: root/pokemod/MapWildListPokemon.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-01-19 01:22:22 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-01-19 01:22:22 +0000
commit342d0201b07d9030fced2f3baf3ecdefc841879a (patch)
treef0715cc7b267e2ce2bc93971d9e95c7e0c9b2b62 /pokemod/MapWildListPokemon.cpp
parentd017d90324a439dfb4bd3f25d30deb672bc40fd4 (diff)
[DEL] Removed PokeGen namespace
[ADD] general/AudioCache.h completed [DEL] VERSION removed from subdir .pro files [DEL] audio/ git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@33 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/MapWildListPokemon.cpp')
-rw-r--r--pokemod/MapWildListPokemon.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/pokemod/MapWildListPokemon.cpp b/pokemod/MapWildListPokemon.cpp
index 23ac9625..046c18c3 100644
--- a/pokemod/MapWildListPokemon.cpp
+++ b/pokemod/MapWildListPokemon.cpp
@@ -22,7 +22,7 @@
#include "MapWildListPokemon.h"
-PokeGen::PokeMod::MapWildListPokemon::MapWildListPokemon(const Pokemod& par, const unsigned _id) :
+PokeMod::MapWildListPokemon::MapWildListPokemon(const Pokemod& par, const unsigned _id) :
Object(par, _id),
species(UINT_MAX),
level(1),
@@ -30,19 +30,19 @@ PokeGen::PokeMod::MapWildListPokemon::MapWildListPokemon(const Pokemod& par, con
{
}
-PokeGen::PokeMod::MapWildListPokemon::MapWildListPokemon(const Pokemod& par, const MapWildListPokemon& p, const unsigned _id) :
+PokeMod::MapWildListPokemon::MapWildListPokemon(const Pokemod& par, const MapWildListPokemon& p, const unsigned _id) :
Object(par, _id)
{
*this = p;
}
-PokeGen::PokeMod::MapWildListPokemon::MapWildListPokemon(const Pokemod& par, const QString& fname, const unsigned _id) :
+PokeMod::MapWildListPokemon::MapWildListPokemon(const Pokemod& par, const QString& fname, const unsigned _id) :
Object(par, _id)
{
load(fname, _id);
}
-bool PokeGen::PokeMod::MapWildListPokemon::validate() const
+bool PokeMod::MapWildListPokemon::validate() const
{
bool valid = true;
pokemod.validationMsg(QString("---------Pokémon with id %1---").arg(id), Pokemod::V_Msg);
@@ -64,7 +64,7 @@ bool PokeGen::PokeMod::MapWildListPokemon::validate() const
return valid;
}
-void PokeGen::PokeMod::MapWildListPokemon::load(const QString& fname, const unsigned _id) throw(Exception)
+void PokeMod::MapWildListPokemon::load(const QString& fname, const unsigned _id) throw(Exception)
{
Ini ini(fname);
if (_id == UINT_MAX)
@@ -76,7 +76,7 @@ void PokeGen::PokeMod::MapWildListPokemon::load(const QString& fname, const unsi
ini.getValue("weight", weight, 1);
}
-void PokeGen::PokeMod::MapWildListPokemon::save(const QString& map, const unsigned listId) const throw(Exception)
+void PokeMod::MapWildListPokemon::save(const QString& map, const unsigned listId) const throw(Exception)
{
Ini ini;
ini.addField("id", id);
@@ -86,43 +86,43 @@ void PokeGen::PokeMod::MapWildListPokemon::save(const QString& map, const unsign
ini.save(QString("%1/map/%2/wildlist/%3/pokemon/%4.pini").arg(pokemod.getPath()).arg(map).arg(listId).arg(id));
}
-void PokeGen::PokeMod::MapWildListPokemon::setSpecies(const unsigned s) throw(BoundsException)
+void PokeMod::MapWildListPokemon::setSpecies(const unsigned s) throw(BoundsException)
{
if (pokemod.getSpeciesByID(s) == UINT_MAX)
throw(BoundsException("MapWildListPokemon", "species"));
species = s;
}
-void PokeGen::PokeMod::MapWildListPokemon::setLevel(const unsigned l) throw(BoundsException)
+void PokeMod::MapWildListPokemon::setLevel(const unsigned l) throw(BoundsException)
{
if (!level || (pokemod.getRules().getMaxLevel() <= level))
throw(BoundsException("MapWildListPokemon", "level"));
level = l;
}
-void PokeGen::PokeMod::MapWildListPokemon::setWeight(const unsigned w) throw(BoundsException)
+void PokeMod::MapWildListPokemon::setWeight(const unsigned w) throw(BoundsException)
{
if (!w)
throw(BoundsException("MapWildListPokemon", "weight"));
weight = w;
}
-unsigned PokeGen::PokeMod::MapWildListPokemon::getSpecies() const
+unsigned PokeMod::MapWildListPokemon::getSpecies() const
{
return species;
}
-unsigned PokeGen::PokeMod::MapWildListPokemon::getLevel() const
+unsigned PokeMod::MapWildListPokemon::getLevel() const
{
return level;
}
-unsigned PokeGen::PokeMod::MapWildListPokemon::getWeight() const
+unsigned PokeMod::MapWildListPokemon::getWeight() const
{
return weight;
}
-PokeGen::PokeMod::MapWildListPokemon& PokeGen::PokeMod::MapWildListPokemon::operator=(const MapWildListPokemon& rhs)
+PokeMod::MapWildListPokemon& PokeMod::MapWildListPokemon::operator=(const MapWildListPokemon& rhs)
{
if (this == &rhs)
return *this;