summaryrefslogtreecommitdiffstats
path: root/pokescripting/TileWrapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'pokescripting/TileWrapper.h')
-rw-r--r--pokescripting/TileWrapper.h27
1 files changed, 4 insertions, 23 deletions
diff --git a/pokescripting/TileWrapper.h b/pokescripting/TileWrapper.h
index 0bf72ed2..57722df3 100644
--- a/pokescripting/TileWrapper.h
+++ b/pokescripting/TileWrapper.h
@@ -20,13 +20,15 @@
// Pokescripting includes
#include "ObjectWrapper.h"
-#include "SpriteWrapper.h"
// Pokemod includes
#include "../pokemod/Tile.h"
namespace Pokescripting
{
+// Forward declarations
+class SpriteWrapper;
+
class POKESCRIPTING_EXPORT TileWrapper : public ObjectWrapper
{
Q_OBJECT
@@ -42,34 +44,13 @@ class POKESCRIPTING_EXPORT TileWrapper : public ObjectWrapper
QString name() const;
SpriteWrapper* sprite();
bool from(const int direction) const;
+ Pokemod::Script script() const;
private:
TileWrapper(const Pokemod::Tile* tile, QObject* parent);
TileWrapper& operator=(const TileWrapper& rhs);
const Pokemod::Tile* m_tile;
};
-
-inline TileWrapper::TileWrapper(const Pokemod::Tile* tile, QObject* parent) :
- ObjectWrapper(tile, parent),
- m_tile(tile)
-{
-}
-
-inline QString TileWrapper::name() const
-{
- return m_tile->name();
-}
-
-inline Pokescripting::SpriteWrapper* TileWrapper::sprite()
-{
- return SpriteWrapper::create(pokemod()->spriteById(m_tile->sprite()), this);
-}
-
-inline bool TileWrapper::from(const int direction) const
-{
- return m_tile->from(direction);
-}
-
}
#endif