diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-10-17 05:46:40 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-10-17 05:46:40 +0000 |
| commit | b3e1495f7a626bb4429ff5e4f3ad39ae9654f23b (patch) | |
| tree | 8a188df964484e7dcf630e792dccfa1766c2f8f0 /sigmod/Sigmod.cpp | |
| parent | 47428274a07bce9be5e62f82aeeb7e57aa21037f (diff) | |
[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/Sigmod.cpp')
| -rw-r--r-- | sigmod/Sigmod.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sigmod/Sigmod.cpp b/sigmod/Sigmod.cpp index 5d143173..11915177 100644 --- a/sigmod/Sigmod.cpp +++ b/sigmod/Sigmod.cpp @@ -389,7 +389,7 @@ void Sigmod::Sigmod::setStartWarp(const int startWarp) CHECK(startWarp); } -void Sigmod::Sigmod::setTypechart(const int attack, const int defense, const Fraction& multiplier) +void Sigmod::Sigmod::setTypechart(const int attack, const int defense, const Sigcore::Fraction& multiplier) { CHECK_ARRAY(typechart(attack, defense), multiplier); } @@ -434,17 +434,17 @@ int Sigmod::Sigmod::startWarp() const return m_startWarp; } -const Sigmod::Matrix<Sigmod::Fraction>* Sigmod::Sigmod::typechart() const +const Sigcore::Matrix<Sigcore::Fraction>* Sigmod::Sigmod::typechart() const { return &m_typechart; } -Sigmod::Matrix<Sigmod::Fraction>* Sigmod::Sigmod::typechart() +Sigcore::Matrix<Sigcore::Fraction>* Sigmod::Sigmod::typechart() { return &m_typechart; } -Sigmod::Fraction Sigmod::Sigmod::typechart(const int attack, const int defense) const +Sigcore::Fraction Sigmod::Sigmod::typechart(const int attack, const int defense) const { return m_typechart(attack, defense); } @@ -2074,7 +2074,7 @@ Sigmod::Type* Sigmod::Sigmod::newType(const Type& type) Sigmod::Type* Sigmod::Sigmod::newType(Type* type) { m_types.append(type); - m_typechart.resize(typeCount(), typeCount(), Fraction(1, 1)); + m_typechart.resize(typeCount(), typeCount(), Sigcore::Fraction(1, 1)); return type; } @@ -2083,7 +2083,7 @@ void Sigmod::Sigmod::deleteType(const int index) Q_ASSERT(index < typeCount()); delete m_types[index]; m_types.removeAt(index); - m_typechart.resize(typeCount(), typeCount(), Fraction(1, 1)); + m_typechart.resize(typeCount(), typeCount(), Sigcore::Fraction(1, 1)); } void Sigmod::Sigmod::deleteTypeById(const int id) |
