summaryrefslogtreecommitdiffstats
path: root/pokescripting/TrainerWrapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'pokescripting/TrainerWrapper.h')
-rw-r--r--pokescripting/TrainerWrapper.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/pokescripting/TrainerWrapper.h b/pokescripting/TrainerWrapper.h
index 766cc030..963e153f 100644
--- a/pokescripting/TrainerWrapper.h
+++ b/pokescripting/TrainerWrapper.h
@@ -20,6 +20,7 @@
// Pokemod includes
#include "ObjectWrapper.h"
+#include "SkinWrapper.h"
// Pokemod includes
#include "../pokemod/Trainer.h"
@@ -35,7 +36,7 @@ class POKESCRIPTING_EXPORT TrainerWrapper : public ObjectWrapper
public slots:
QString name() const;
int moneyFactor() const;
- QPixmap skin() const;
+ const SkinWrapper* skin() const;
int depth() const;
int teamIntel() const;
int moveIntel() const;
@@ -64,9 +65,9 @@ inline int TrainerWrapper::TrainerWrapper::moneyFactor() const
return m_trainer->moneyFactor();
}
-inline QPixmap TrainerWrapper::TrainerWrapper::skin() const
+inline const Pokescripting::SkinWrapper* TrainerWrapper::TrainerWrapper::skin() const
{
- return m_trainer->skin();
+ return new SkinWrapper(pokemod()->skinById(m_trainer->skin()), const_cast<TrainerWrapper*>(this));
}
inline int TrainerWrapper::TrainerWrapper::depth() const