summaryrefslogtreecommitdiffstats
path: root/sigmod/Badge.h
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-10-17 05:46:40 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-10-17 05:46:40 +0000
commitb3e1495f7a626bb4429ff5e4f3ad39ae9654f23b (patch)
tree8a188df964484e7dcf630e792dccfa1766c2f8f0 /sigmod/Badge.h
parent47428274a07bce9be5e62f82aeeb7e57aa21037f (diff)
downloadsigen-b3e1495f7a626bb4429ff5e4f3ad39ae9654f23b.tar.gz
sigen-b3e1495f7a626bb4429ff5e4f3ad39ae9654f23b.tar.xz
sigen-b3e1495f7a626bb4429ff5e4f3ad39ae9654f23b.zip
[FIX] Moved Hat, Fraction, Matrix, and Script to sigcore
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@281 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'sigmod/Badge.h')
-rw-r--r--sigmod/Badge.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/sigmod/Badge.h b/sigmod/Badge.h
index e6a54ff0..509da0dd 100644
--- a/sigmod/Badge.h
+++ b/sigmod/Badge.h
@@ -22,8 +22,10 @@
#ifndef SIGMOD_BADGE
#define SIGMOD_BADGE
+// Sigcore includes
+#include "../sigcore/Fraction.h"
+
// Sigmod includes
-#include "Fraction.h"
#include "Object.h"
namespace Sigmod
@@ -122,7 +124,7 @@ class SIGMOD_EXPORT Badge : public Object
* \param stat The stat to set the multiplier for.
* \param multiplier The multiplier for the stat once the badge is obtained.
*/
- void setStat(const Stat stat, const Fraction& multiplier);
+ void setStat(const Stat stat, const Sigcore::Fraction& multiplier);
/**
* \sa setName
@@ -155,17 +157,17 @@ class SIGMOD_EXPORT Badge : public Object
*
* \return The multiplier for the \p stat.
*/
- Fraction stat(const Stat stat) const;
+ Sigcore::Fraction stat(const Stat stat) const;
Badge& operator=(const Badge& rhs);
private:
- void setStat(const Fraction& multiplier);
+ void setStat(const Sigcore::Fraction& multiplier);
QString m_name;
int m_face;
int m_badge;
int m_obey;
- QVarLengthArray<Fraction, ST_SpecialDefense - ST_Attack + 1> m_stat;
+ QVarLengthArray<Sigcore::Fraction, ST_SpecialDefense - ST_Attack + 1> m_stat;
};
}