diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-01-19 20:23:10 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-01-19 20:23:10 +0000 |
| commit | e27ba66952a1e851bb417611e0ed7df1fbf5f945 (patch) | |
| tree | 59ab82cd864e4c190ae2e1edf4d09e74fb9791c9 /pokemod/MapEffect.cpp | |
| parent | 342d0201b07d9030fced2f3baf3ecdefc841879a (diff) | |
| download | sigen-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/MapEffect.cpp')
| -rw-r--r-- | pokemod/MapEffect.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pokemod/MapEffect.cpp b/pokemod/MapEffect.cpp index 7c835e78..252c456a 100644 --- a/pokemod/MapEffect.cpp +++ b/pokemod/MapEffect.cpp @@ -35,7 +35,7 @@ PokeMod::MapEffect::MapEffect(const Pokemod& par, const unsigned _id) : val1(UINT_MAX), val2(UINT_MAX), direction(UINT_MAX), - isTransparent(false), + isGhost(false), canMove(false), dialog(UINT_MAX) { @@ -136,7 +136,7 @@ void PokeMod::MapEffect::load(const QString& fname, const unsigned _id) throw(Ex ini.getValue("val1", val1); ini.getValue("val2", val2); ini.getValue("direction", direction); - ini.getValue("isTransparent", isTransparent); + ini.getValue("isGhost", isGhost); ini.getValue("canMove", canMove); ini.getValue("dialog", dialog); } @@ -155,7 +155,7 @@ void PokeMod::MapEffect::save(const QString& map) const throw(Exception) ini.addField("val1", val1); ini.addField("val2", val2); ini.addField("direction", direction); - ini.addField("isTransparent", isTransparent); + ini.addField("isGhost", isGhost); ini.addField("canMove", canMove); ini.addField("dialog", dialog); ini.save(QString("%1/map/%2/effect/%3.pini").arg(pokemod.getPath()).arg(map).arg(name)); @@ -250,9 +250,9 @@ void PokeMod::MapEffect::setDirection(const unsigned d) throw(BoundsException) direction = d; } -void PokeMod::MapEffect::setIsTransparent(const bool i) +void PokeMod::MapEffect::setIsGhost(const bool i) { - isTransparent = i; + isGhost = i; } void PokeMod::MapEffect::setCanMove(const bool c) @@ -327,9 +327,9 @@ unsigned PokeMod::MapEffect::getDirection() const return direction; } -bool PokeMod::MapEffect::getIsTransparent() const +bool PokeMod::MapEffect::getIsGhost() const { - return isTransparent; + return isGhost; } bool PokeMod::MapEffect::getCanMove() const @@ -354,7 +354,7 @@ PokeMod::MapEffect& PokeMod::MapEffect::operator=(const MapEffect& rhs) val1 = rhs.val1; val2 = rhs.val2; direction = rhs.direction; - isTransparent = rhs.isTransparent; + isGhost = rhs.isGhost; canMove = rhs.canMove; dialog = rhs.dialog; return *this; |
