summaryrefslogtreecommitdiffstats
path: root/pokescripting/MapEffectWrapper.h
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-08-04 03:27:13 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-08-04 03:27:13 +0000
commit373e686bf4ecaaabcf80544e74f017eebe05213f (patch)
treecddf7a223f16944b0380386e568f2606f634c366 /pokescripting/MapEffectWrapper.h
parent63417b1c5057d22bd853e92cd3a25aa812b8d917 (diff)
downloadsigen-373e686bf4ecaaabcf80544e74f017eebe05213f.tar.gz
sigen-373e686bf4ecaaabcf80544e74f017eebe05213f.tar.xz
sigen-373e686bf4ecaaabcf80544e74f017eebe05213f.zip
[FIX] Cleaned up the RC file
[FIX] Script editing is getting there (still a little weird...) [FIX] Cleaned up the main file a bit [FIX] Added the Skin class [FIX] All sprites and skins are internally linked now [FIX] No more image restraints (tiles are still enforced so that map editing works) [FIX] Cleaned up checking for valid values when setting in pokemod [FIX] Removed FileDialog files git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@233 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokescripting/MapEffectWrapper.h')
-rw-r--r--pokescripting/MapEffectWrapper.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/pokescripting/MapEffectWrapper.h b/pokescripting/MapEffectWrapper.h
index 161838e2..bf2bb127 100644
--- a/pokescripting/MapEffectWrapper.h
+++ b/pokescripting/MapEffectWrapper.h
@@ -20,6 +20,7 @@
// Pokescripting includes
#include "ObjectWrapper.h"
+#include "SkinWrapper.h"
// Pokemod includes
#include "../pokemod/MapEffect.h"
@@ -34,7 +35,7 @@ class POKESCRIPTING_EXPORT MapEffectWrapper : public ObjectWrapper
MapEffectWrapper(const Pokemod::MapEffect* effect, QObject* parent);
public slots:
QString name() const;
- QPixmap skin() const;
+ const SkinWrapper* skin() const;
bool isGhost() const;
private:
MapEffectWrapper& operator=(const MapEffectWrapper& rhs);
@@ -53,9 +54,9 @@ inline QString MapEffectWrapper::name() const
return m_effect->name();
}
-inline QPixmap MapEffectWrapper::skin() const
+inline const Pokescripting::SkinWrapper* MapEffectWrapper::skin() const
{
- return m_effect->skin();
+ return new SkinWrapper(pokemod()->skinById(m_effect->skin()), const_cast<MapEffectWrapper*>(this));
}
inline bool MapEffectWrapper::isGhost() const