diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2008-01-19 01:22:22 +0000 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2008-01-19 01:22:22 +0000 |
commit | 342d0201b07d9030fced2f3baf3ecdefc841879a (patch) | |
tree | f0715cc7b267e2ce2bc93971d9e95c7e0c9b2b62 /pokemod/Time.cpp | |
parent | d017d90324a439dfb4bd3f25d30deb672bc40fd4 (diff) | |
download | sigen-342d0201b07d9030fced2f3baf3ecdefc841879a.tar.gz sigen-342d0201b07d9030fced2f3baf3ecdefc841879a.tar.xz sigen-342d0201b07d9030fced2f3baf3ecdefc841879a.zip |
[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/Time.cpp')
-rw-r--r-- | pokemod/Time.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/pokemod/Time.cpp b/pokemod/Time.cpp index 9f180524..f9f0e174 100644 --- a/pokemod/Time.cpp +++ b/pokemod/Time.cpp @@ -22,7 +22,7 @@ #include "Time.h" -PokeGen::PokeMod::Time::Time(const Pokemod& par, const unsigned _id) : +PokeMod::Time::Time(const Pokemod& par, const unsigned _id) : Object(par, _id), name(""), startHour(0), @@ -30,19 +30,19 @@ PokeGen::PokeMod::Time::Time(const Pokemod& par, const unsigned _id) : { } -PokeGen::PokeMod::Time::Time(const Pokemod& par, const Time& t, const unsigned _id) : +PokeMod::Time::Time(const Pokemod& par, const Time& t, const unsigned _id) : Object(par, _id) { *this = t; } -PokeGen::PokeMod::Time::Time(const Pokemod& par, const QString& fname, const unsigned _id) : +PokeMod::Time::Time(const Pokemod& par, const QString& fname, const unsigned _id) : Object(par, _id) { load(fname, _id); } -bool PokeGen::PokeMod::Time::validate() const +bool PokeMod::Time::validate() const { bool valid = true; pokemod.validationMsg(QString("---Time \"%1\" with id %2---").arg(name).arg(id), Pokemod::V_Msg); @@ -64,7 +64,7 @@ bool PokeGen::PokeMod::Time::validate() const return valid; } -void PokeGen::PokeMod::Time::load(const QString& fname, const unsigned _id) throw(Exception) +void PokeMod::Time::load(const QString& fname, const unsigned _id) throw(Exception) { Ini ini(fname); if (_id == UINT_MAX) @@ -76,7 +76,7 @@ void PokeGen::PokeMod::Time::load(const QString& fname, const unsigned _id) thro ini.getValue("startMinute", startMinute, 0); } -void PokeGen::PokeMod::Time::save() const throw(Exception) +void PokeMod::Time::save() const throw(Exception) { Ini ini; ini.addField("id", id); @@ -86,41 +86,41 @@ void PokeGen::PokeMod::Time::save() const throw(Exception) ini.save(QString("%1/time/%2.pini").arg(pokemod.getPath()).arg(name)); } -void PokeGen::PokeMod::Time::setName(const QString& n) +void PokeMod::Time::setName(const QString& n) { name = n; } -void PokeGen::PokeMod::Time::setStartHour(const unsigned h) throw(BoundsException) +void PokeMod::Time::setStartHour(const unsigned h) throw(BoundsException) { if (24 <= h) throw(BoundsException("Time", "startHour")); startHour = h; } -void PokeGen::PokeMod::Time::setStartMinute(const unsigned m) throw(BoundsException) +void PokeMod::Time::setStartMinute(const unsigned m) throw(BoundsException) { if (60 <= m) throw(BoundsException("Time", "startMinute")); startMinute = m; } -QString PokeGen::PokeMod::Time::getName() const +QString PokeMod::Time::getName() const { return name; } -unsigned PokeGen::PokeMod::Time::getStartHour() const +unsigned PokeMod::Time::getStartHour() const { return startHour; } -unsigned PokeGen::PokeMod::Time::getStartMinute() const +unsigned PokeMod::Time::getStartMinute() const { return startMinute; } -PokeGen::PokeMod::Time& PokeGen::PokeMod::Time::operator=(const Time& rhs) +PokeMod::Time& PokeMod::Time::operator=(const Time& rhs) { if (this == &rhs) return *this; |