diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2008-11-09 18:53:21 +0000 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2008-11-09 18:53:21 +0000 |
commit | e965d4f6d7cd33c3901a61d9b798dcc5593534c7 (patch) | |
tree | 9d12f796894eabd820a8d2b68462b7123808293b /sigworld/TrainerGraphicsItem.h | |
parent | c54d318ae9b4efa57938e29eac7f13ae75e799e5 (diff) | |
download | sigen-e965d4f6d7cd33c3901a61d9b798dcc5593534c7.tar.gz sigen-e965d4f6d7cd33c3901a61d9b798dcc5593534c7.tar.xz sigen-e965d4f6d7cd33c3901a61d9b798dcc5593534c7.zip |
[FIX] Starting the sigworld library
[FIX] Tile has walkable flag on it
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@310 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'sigworld/TrainerGraphicsItem.h')
-rw-r--r-- | sigworld/TrainerGraphicsItem.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/sigworld/TrainerGraphicsItem.h b/sigworld/TrainerGraphicsItem.h new file mode 100644 index 00000000..920409ed --- /dev/null +++ b/sigworld/TrainerGraphicsItem.h @@ -0,0 +1,52 @@ +/* + * Copyright 2008 Ben Boeckel <MathStuf@gmail.com> + * + * 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 <http://www.gnu.org/licenses/>. + */ + +#ifndef SIGWORLD_TRAINERGRAPHICSITEM +#define SIGWORLD_TRAINERGRAPHICSITEM + +// Sigworld includes +#include "Global.h" + +// Qt includes +#include <QtCore/QObject> +#include <QtGui/QGraphicsPixmapItem> + +// Forward declarations +namespace Sigscript +{ +class MapTrainerWrapper; +} + +namespace Sigworld +{ +class MapScene; + +class SIGWORLD_EXPORT TrainerGraphicsItem : public QObject, public QGraphicsPixmapItem +{ + Q_OBJECT + + public: + TrainerGraphicsItem(Sigscript::MapTrainerWrapper* tile, MapScene* scene); + + QRect boundingRect() const; + QPainterPath shape() const; + public slots: + +}; +} + +#endif |