From b3e1495f7a626bb4429ff5e4f3ad39ae9654f23b Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Fri, 17 Oct 2008 05:46:40 +0000 Subject: [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 --- sigmod/Sigmod.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sigmod/Sigmod.cpp') 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::Sigmod::typechart() const +const Sigcore::Matrix* Sigmod::Sigmod::typechart() const { return &m_typechart; } -Sigmod::Matrix* Sigmod::Sigmod::typechart() +Sigcore::Matrix* 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) -- cgit