summaryrefslogtreecommitdiffstats
path: root/pokemod/Object.h
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/Object.h
parentd017d90324a439dfb4bd3f25d30deb672bc40fd4 (diff)
downloadsigen-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/Object.h')
-rw-r--r--pokemod/Object.h71
1 files changed, 34 insertions, 37 deletions
diff --git a/pokemod/Object.h b/pokemod/Object.h
index 4f579419..9ac559ad 100644
--- a/pokemod/Object.h
+++ b/pokemod/Object.h
@@ -26,45 +26,42 @@
#include <QFile>
#include "../general/Ini.h"
-namespace PokeGen
+namespace PokeMod
{
- namespace PokeMod
+ class Pokemod;
+
+ class Object
{
- class Pokemod;
-
- class Object
- {
- public:
- Object(const Pokemod& par, const unsigned _id) :
- id(_id),
- pokemod(par)
- {
- }
- virtual ~Object();
- virtual void load(const QString& fname, const unsigned _id) throw(Exception);
-
- unsigned getId() const
- {
- return id;
- }
- bool isValid() const
- {
- if (isGood())
- return validate();
- return false;
- }
- bool isGood() const
- {
- return (id != UINT_MAX);
- }
- protected:
- virtual bool validate() const;
-
- unsigned id;
-
- const Pokemod& pokemod;
- };
- }
+ public:
+ Object(const Pokemod& par, const unsigned _id) :
+ id(_id),
+ pokemod(par)
+ {
+ }
+ virtual ~Object();
+ virtual void load(const QString& fname, const unsigned _id) throw(Exception);
+
+ unsigned getId() const
+ {
+ return id;
+ }
+ bool isValid() const
+ {
+ if (isGood())
+ return validate();
+ return false;
+ }
+ bool isGood() const
+ {
+ return (id != UINT_MAX);
+ }
+ protected:
+ virtual bool validate() const;
+
+ unsigned id;
+
+ const Pokemod& pokemod;
+ };
}
#endif