summaryrefslogtreecommitdiffstats
path: root/pokescripting/TrainerWrapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'pokescripting/TrainerWrapper.h')
-rw-r--r--pokescripting/TrainerWrapper.h58
1 files changed, 4 insertions, 54 deletions
diff --git a/pokescripting/TrainerWrapper.h b/pokescripting/TrainerWrapper.h
index ba24d105..e55497cb 100644
--- a/pokescripting/TrainerWrapper.h
+++ b/pokescripting/TrainerWrapper.h
@@ -18,15 +18,17 @@
#ifndef __POKESCRIPTING_TRAINERWRAPPER__
#define __POKESCRIPTING_TRAINERWRAPPER__
-// Pokemod includes
+// Pokescripting includes
#include "ObjectWrapper.h"
-#include "SkinWrapper.h"
// Pokemod includes
#include "../pokemod/Trainer.h"
namespace Pokescripting
{
+// Forward declarations
+class SkinWrapper;
+
class POKESCRIPTING_EXPORT TrainerWrapper : public ObjectWrapper
{
Q_OBJECT
@@ -54,58 +56,6 @@ class POKESCRIPTING_EXPORT TrainerWrapper : public ObjectWrapper
const Pokemod::Trainer* m_trainer;
};
-
-inline TrainerWrapper::TrainerWrapper(const Pokemod::Trainer* trainer, QObject* parent) :
- ObjectWrapper(trainer, parent),
- m_trainer(trainer)
-{
-}
-
-inline QString TrainerWrapper::TrainerWrapper::name() const
-{
- return m_trainer->name();
-}
-
-inline int TrainerWrapper::TrainerWrapper::moneyFactor() const
-{
- return m_trainer->moneyFactor();
-}
-
-inline Pokescripting::SkinWrapper* TrainerWrapper::TrainerWrapper::skin()
-{
- return SkinWrapper::create(pokemod()->skinById(m_trainer->skin()), this);
-}
-
-inline int TrainerWrapper::TrainerWrapper::depth() const
-{
- return m_trainer->depth();
-}
-
-inline int TrainerWrapper::TrainerWrapper::teamIntel() const
-{
- return m_trainer->teamIntel();
-}
-
-inline int TrainerWrapper::TrainerWrapper::moveIntel() const
-{
- return m_trainer->moveIntel();
-}
-
-inline int TrainerWrapper::TrainerWrapper::itemIntel() const
-{
- return m_trainer->itemIntel();
-}
-
-inline int TrainerWrapper::TrainerWrapper::abilityIntel() const
-{
- return m_trainer->abilityIntel();
-}
-
-inline int TrainerWrapper::TrainerWrapper::statIntel() const
-{
- return m_trainer->statIntel();
-}
-
}
#endif