diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-09-07 18:49:29 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-09-07 18:49:29 +0000 |
| commit | f80268eb885e28c603cc88523cfce2751d1448e1 (patch) | |
| tree | d3e0a8b482f7d2a4bd177ecc300aa407177a42de /sigscript/MapEffectWrapper.cpp | |
| parent | 48f9e57b1638ba047ca2dcd6d3251ee90bf9ef69 (diff) | |
| download | sigen-f80268eb885e28c603cc88523cfce2751d1448e1.tar.gz sigen-f80268eb885e28c603cc88523cfce2751d1448e1.tar.xz sigen-f80268eb885e28c603cc88523cfce2751d1448e1.zip | |
[FIX] Added a static poll method to Fraction
[FIX] More Arena stuff fleshed out
[FIX] Added priority scripts to Ability and Move
[FIX] A SigmodWrapper pointer is now passed around the containments
[FIX] Config now has templated methods for retrieving values
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@253 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'sigscript/MapEffectWrapper.cpp')
| -rw-r--r-- | sigscript/MapEffectWrapper.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sigscript/MapEffectWrapper.cpp b/sigscript/MapEffectWrapper.cpp index 03ebb30f..52bd4de9 100644 --- a/sigscript/MapEffectWrapper.cpp +++ b/sigscript/MapEffectWrapper.cpp @@ -42,8 +42,8 @@ QString Sigscript::MapEffectWrapper::name() const QPoint Sigscript::MapEffectWrapper::coordinate() const { - if (value("coordinate").canConvert<QPoint>()) - return value("coordinate").toPoint(); + if (hasValueOfType<QPoint>("coordinate")) + return valueOfType<QPoint>("coordinate"); return m_effect->coordinate(); } @@ -54,8 +54,8 @@ Sigscript::SkinWrapper* Sigscript::MapEffectWrapper::skin() bool Sigscript::MapEffectWrapper::isGhost() const { - if (value("ghost").canConvert<bool>()) - return value("ghost").toBool(); + if (hasValueOfType<bool>("ghost")) + return valueOfType<bool>("ghost"); return m_effect->isGhost(); } |
