diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2007-06-02 18:12:48 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2007-06-02 18:12:48 +0000 |
| commit | c9afda3ab74614fb36986f96b7972c082f275eca (patch) | |
| tree | 1b7c0b31950597d6ed562d94158dd3f8701496da /pokemod/Frac.cpp | |
| parent | f71140fae5218ee9839ffcd4ec83abfded5124f4 (diff) | |
| download | sigen-c9afda3ab74614fb36986f96b7972c082f275eca.tar.gz sigen-c9afda3ab74614fb36986f96b7972c082f275eca.tar.xz sigen-c9afda3ab74614fb36986f96b7972c082f275eca.zip | |
Finished off all PokeMod classes, added move validations, fixed up some GUI, various other fixes
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@18 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Frac.cpp')
| -rw-r--r-- | pokemod/Frac.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/pokemod/Frac.cpp b/pokemod/Frac.cpp index f2efc7be..7d919f1b 100644 --- a/pokemod/Frac.cpp +++ b/pokemod/Frac.cpp @@ -23,12 +23,12 @@ #include "Frac.h"
-PokeGen::PokeMod::Frac::Frac(const bool i)
+PokeGen::PokeMod::Frac::Frac(const bool i) :
+ num(1),
+ denom(1),
+ improper(i)
{
Log("Frac: Initializing", PM_DEBUG_DEBUG);
- num = 1;
- denom = 1;
- improper = i;
}
PokeGen::PokeMod::Frac::Frac(const unsigned n, const unsigned d, const bool i)
@@ -135,11 +135,6 @@ float PokeGen::PokeMod::Frac::GetValue() const return (num / denom);
}
-PokeGen::PokeMod::Frac::operator float() const
-{
- return GetValue();
-}
-
void PokeGen::PokeMod::Frac::Reduce()
{
Log(String("Frac: Reducing %u/%u", num, denom), PM_DEBUG_DEBUG);
|
