summaryrefslogtreecommitdiffstats
path: root/pokemod/Time.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-01-21 17:13:11 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-01-21 17:13:11 +0000
commita1fff27395d1930820e6c007fdedd8e9dc58f0b3 (patch)
treef61c6b86b4a415fdc2bd0f7d6ca9bfdbfd8e8b64 /pokemod/Time.cpp
parent342fa6879e9fd8a757ebabe0a30370137b8d83a7 (diff)
downloadsigen-a1fff27395d1930820e6c007fdedd8e9dc58f0b3.tar.gz
sigen-a1fff27395d1930820e6c007fdedd8e9dc58f0b3.tar.xz
sigen-a1fff27395d1930820e6c007fdedd8e9dc58f0b3.zip
[FIX] PokeMod namespace removed
[ADD] MoveEffect editing form for PokéModr git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@38 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Time.cpp')
-rw-r--r--pokemod/Time.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/pokemod/Time.cpp b/pokemod/Time.cpp
index c33d0381..b8e3215d 100644
--- a/pokemod/Time.cpp
+++ b/pokemod/Time.cpp
@@ -23,7 +23,7 @@
#include "Pokemod.h"
#include "Time.h"
-PokeMod::Time::Time(const Pokemod& par, const unsigned _id) :
+Time::Time(const Pokemod& par, const unsigned _id) :
Object(par, _id),
name(""),
startHour(0),
@@ -31,19 +31,19 @@ PokeMod::Time::Time(const Pokemod& par, const unsigned _id) :
{
}
-PokeMod::Time::Time(const Pokemod& par, const Time& t, const unsigned _id) :
+Time::Time(const Pokemod& par, const Time& t, const unsigned _id) :
Object(par, _id)
{
*this = t;
}
-PokeMod::Time::Time(const Pokemod& par, const QString& fname, const unsigned _id) :
+Time::Time(const Pokemod& par, const QString& fname, const unsigned _id) :
Object(par, _id)
{
load(fname, _id);
}
-bool PokeMod::Time::validate() const
+bool Time::validate() const
{
bool valid = true;
pokemod.validationMsg(QString("---Time \"%1\" with id %2---").arg(name).arg(id), Pokemod::V_Msg);
@@ -65,7 +65,7 @@ bool PokeMod::Time::validate() const
return valid;
}
-void PokeMod::Time::load(const QString& fname, const unsigned _id) throw(Exception)
+void Time::load(const QString& fname, const unsigned _id) throw(Exception)
{
Ini ini(fname);
if (_id == UINT_MAX)
@@ -77,7 +77,7 @@ void PokeMod::Time::load(const QString& fname, const unsigned _id) throw(Excepti
ini.getValue("startMinute", startMinute, 0);
}
-void PokeMod::Time::save() const throw(Exception)
+void Time::save() const throw(Exception)
{
Ini ini;
ini.addField("id", id);
@@ -87,41 +87,41 @@ void PokeMod::Time::save() const throw(Exception)
ini.save(QString("%1/time/%2.pini").arg(pokemod.getPath()).arg(name));
}
-void PokeMod::Time::setName(const QString& n)
+void Time::setName(const QString& n)
{
name = n;
}
-void PokeMod::Time::setStartHour(const unsigned h) throw(BoundsException)
+void Time::setStartHour(const unsigned h) throw(BoundsException)
{
if (24 <= h)
throw(BoundsException("Time", "startHour"));
startHour = h;
}
-void PokeMod::Time::setStartMinute(const unsigned m) throw(BoundsException)
+void Time::setStartMinute(const unsigned m) throw(BoundsException)
{
if (60 <= m)
throw(BoundsException("Time", "startMinute"));
startMinute = m;
}
-QString PokeMod::Time::getName() const
+QString Time::getName() const
{
return name;
}
-unsigned PokeMod::Time::getStartHour() const
+unsigned Time::getStartHour() const
{
return startHour;
}
-unsigned PokeMod::Time::getStartMinute() const
+unsigned Time::getStartMinute() const
{
return startMinute;
}
-PokeMod::Time& PokeMod::Time::operator=(const Time& rhs)
+Time& Time::operator=(const Time& rhs)
{
if (this == &rhs)
return *this;