From cf49a16b29ac412cfea125f7216a0e51e79aa4de Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 5 Aug 2008 06:10:55 +0000 Subject: [FIX] List members of pokemod classes now can be returned in their entirety [FIX] Reworked pokescripting for ease of use [FIX] Now (selected) pokemod values can be overridden in pokescripting git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@237 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokescripting/StoreWrapper.h | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) (limited to 'pokescripting/StoreWrapper.h') diff --git a/pokescripting/StoreWrapper.h b/pokescripting/StoreWrapper.h index 09132982..c6ee315c 100644 --- a/pokescripting/StoreWrapper.h +++ b/pokescripting/StoreWrapper.h @@ -26,6 +26,9 @@ namespace Pokescripting { +// Forward declarations +class ItemWrapper; + class POKESCRIPTING_EXPORT StoreWrapper : public ObjectWrapper { Q_OBJECT @@ -39,30 +42,13 @@ class POKESCRIPTING_EXPORT StoreWrapper : public ObjectWrapper } public slots: QString name() const; - bool item(const int item) const; + QList items(); private: StoreWrapper(const Pokemod::Store* store, QObject* parent); StoreWrapper& operator=(const StoreWrapper& rhs); const Pokemod::Store* m_store; }; - -inline StoreWrapper::StoreWrapper(const Pokemod::Store* store, QObject* parent) : - ObjectWrapper(store, parent), - m_store(store) -{ -} - -inline QString StoreWrapper::name() const -{ - return m_store->name(); -} - -inline bool StoreWrapper::item(const int item) const -{ - return m_store->item(item); -} - } #endif -- cgit