diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-07-12 01:42:12 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-07-12 01:42:12 +0000 |
| commit | 2034fb953f52534506f17a9d03237eab3a2c2fbb (patch) | |
| tree | 1b96061cb4e45188565c95e3c4f4763bd1017960 /pokemod/Fraction.cpp | |
| parent | 15ad8b9bc075e3d0f7167267ed495a82d4c1a5a8 (diff) | |
| download | sigen-2034fb953f52534506f17a9d03237eab3a2c2fbb.tar.gz sigen-2034fb953f52534506f17a9d03237eab3a2c2fbb.tar.xz sigen-2034fb953f52534506f17a9d03237eab3a2c2fbb.zip | |
[FIX] Separated battle and world scripts for abilities and moves
[ADD] pokescripting library to allow scripts to use Pokemod information
[FIX] Cleaned up examples in documentation
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@224 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Fraction.cpp')
| -rw-r--r-- | pokemod/Fraction.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/pokemod/Fraction.cpp b/pokemod/Fraction.cpp index 2168f162..26e114f9 100644 --- a/pokemod/Fraction.cpp +++ b/pokemod/Fraction.cpp @@ -18,12 +18,6 @@ // Header include #include "Fraction.h" -void Pokemod::Fraction::set(const int numerator, const int denominator) -{ - m_numerator = numerator; - m_denominator = denominator; -} - void Pokemod::Fraction::reduce() { int i = m_numerator; @@ -33,8 +27,3 @@ void Pokemod::Fraction::reduce() m_numerator /= i; m_denominator /= i; } - -bool Pokemod::Fraction::poll() const -{ - return (qrand() % m_denominator) < m_numerator; -} |
