From 342d0201b07d9030fced2f3baf3ecdefc841879a Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sat, 19 Jan 2008 01:22:22 +0000 Subject: [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 --- pokemod/MapWildListPokemon.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'pokemod/MapWildListPokemon.cpp') 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; -- cgit