summaryrefslogtreecommitdiffstats
path: root/pokemod/Tile.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-01-19 20:23:10 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-01-19 20:23:10 +0000
commite27ba66952a1e851bb417611e0ed7df1fbf5f945 (patch)
tree59ab82cd864e4c190ae2e1edf4d09e74fb9791c9 /pokemod/Tile.cpp
parent342d0201b07d9030fced2f3baf3ecdefc841879a (diff)
downloadsigen-e27ba66952a1e851bb417611e0ed7df1fbf5f945.tar.gz
sigen-e27ba66952a1e851bb417611e0ed7df1fbf5f945.tar.xz
sigen-e27ba66952a1e851bb417611e0ed7df1fbf5f945.zip
[DEL] get*Num/get*Denom methods from Pokemod
[ADD] GUI classes to pokemodr [FIX] AudioCache is trashed right now, but may be salvageable git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@34 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Tile.cpp')
-rw-r--r--pokemod/Tile.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/pokemod/Tile.cpp b/pokemod/Tile.cpp
index 6c4b98d2..60486b9f 100644
--- a/pokemod/Tile.cpp
+++ b/pokemod/Tile.cpp
@@ -30,7 +30,6 @@ PokeMod::Tile::Tile(const Pokemod& par, const unsigned _id) :
Object(par, _id),
name(""),
pic(""),
- isWild(false),
wildChance(1, 1),
hmType(UINT_MAX),
under(UINT_MAX),
@@ -119,7 +118,6 @@ void PokeMod::Tile::load(const QString& fname, const unsigned _id) throw(Excepti
ini.getValue("from-down", from[D_Down], false);
ini.getValue("from-left", from[D_Left], false);
ini.getValue("from-right", from[D_Right], false);
- ini.getValue("isWild", isWild, false);
ini.getValue("wildChance-n", i, 1);
ini.getValue("wildChance-d", j, 1);
wildChance.set(i, j);
@@ -139,7 +137,6 @@ void PokeMod::Tile::save() const throw(Exception)
ini.addField("from-down", from[D_Down]);
ini.addField("from-left", from[D_Left]);
ini.addField("from-right", from[D_Right]);
- ini.addField("isWild", isWild);
ini.addField("wildChance-n", wildChance.getNum());
ini.addField("wildChance-d", wildChance.getDenom());
ini.addField("hmType", hmType);
@@ -168,11 +165,6 @@ void PokeMod::Tile::setFrom(const unsigned d, const bool f) throw(BoundsExceptio
from[d] = f;
}
-void PokeMod::Tile::setIsWild(const bool i)
-{
- isWild = i;
-}
-
void PokeMod::Tile::setWildChance(const unsigned n, const unsigned d) throw(Exception)
{
wildChance.set(n, d);
@@ -236,26 +228,11 @@ bool PokeMod::Tile::getFrom(const unsigned d) const throw(BoundsException)
return from[d];
}
-bool PokeMod::Tile::getIsWild() const
-{
- return isWild;
-}
-
Frac PokeMod::Tile::getWildChance() const
{
return wildChance;
}
-unsigned PokeMod::Tile::getWildChanceNumerator() const
-{
- return wildChance.getNum();
-}
-
-unsigned PokeMod::Tile::getWildChanceDenominator() const
-{
- return wildChance.getDenom();
-}
-
unsigned PokeMod::Tile::getHMType() const
{
return hmType;
@@ -284,7 +261,6 @@ PokeMod::Tile& PokeMod::Tile::operator=(const Tile& rhs)
pic = rhs.pic;
for (unsigned i = 0; i < D_End; ++i)
from[i] = rhs.from[i];
- isWild = rhs.isWild;
wildChance = rhs.wildChance;
hmType = rhs.hmType;
under = rhs.under;