/* * Copyright 2008 Ben Boeckel * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #ifndef __POKESCRIPTING_BADGEWRAPPER__ #define __POKESCRIPTING_BADGEWRAPPER__ // Pokescripting includes #include "ObjectWrapper.h" // Pokemod includes #include "../pokemod/Badge.h" namespace Pokescripting { // Forward declarations class SpriteWrapper; class POKESCRIPTING_EXPORT BadgeWrapper : public ObjectWrapper { Q_OBJECT public: static BadgeWrapper* create(const Pokemod::Badge* badge, PokemodWrapper* parent); Q_SCRIPTABLE QString name() const; Q_SCRIPTABLE SpriteWrapper* face(); Q_SCRIPTABLE SpriteWrapper* badge(); Q_SCRIPTABLE int obey() const; Q_SCRIPTABLE Pokemod::Fraction stat(const Pokemod::Stat stat) const; private: BadgeWrapper(const Pokemod::Badge* badge, PokemodWrapper* parent); BadgeWrapper& operator=(const BadgeWrapper& rhs); const Pokemod::Badge* m_badge; }; } Q_DECLARE_METATYPE(Pokescripting::BadgeWrapper*) #endif