1 | // |
2 | // KBlackBox |
3 | // |
4 | // A simple game inspired by an emacs module |
5 | // |
6 | /*************************************************************************** |
7 | * Copyright (c) 1999-2000, Robert Cimrman * |
8 | * cimrman3@students.zcu.cz * |
9 | * * |
10 | * Copyright (c) 2007, Nicolas Roffet * |
11 | * nicolas-kde@roffet.com * |
12 | * * |
13 | * * |
14 | * This program is free software; you can redistribute it and/or modify * |
15 | * it under the terms of the GNU General Public License as published by * |
16 | * the Free Software Foundation; either version 2 of the License, or * |
17 | * (at your option) any later version. * |
18 | * * |
19 | * This program is distributed in the hope that it will be useful, * |
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
22 | * GNU General Public License for more details. * |
23 | * * |
24 | * You should have received a copy of the GNU General Public License * |
25 | * along with this program; if not, write to the * |
26 | * Free Software Foundation, Inc., * |
27 | * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * |
28 | ***************************************************************************/ |
29 | |
30 | |
31 | |
32 | #ifndef KBBGRAPHICSITEMINTERACTIONINFO_H |
33 | #define KBBGRAPHICSITEMINTERACTIONINFO_H |
34 | |
35 | |
36 | |
37 | |
38 | |
39 | #include "kbbgraphicsitem.h" |
40 | class KBBScalableGraphicWidget; |
41 | class KBBThemeManager; |
42 | |
43 | |
44 | |
45 | /** |
46 | * @brief Interaction information around a ball on the scalable graphic widget |
47 | * |
48 | * Some signs around the ball the player is pointing on are been displayed to show how a laser ray interacts with the ball. |
49 | */ |
50 | class KBBGraphicsItemInteractionInfo : public KBBGraphicsItem |
51 | { |
52 | public: |
53 | /** |
54 | * @brief Constructor |
55 | */ |
56 | KBBGraphicsItemInteractionInfo(KBBScalableGraphicWidget* widget, KBBThemeManager* themeManager, KBBScalableGraphicWidget::itemType type, const qreal x, const qreal y, const int rotation); |
57 | |
58 | void setType(KBBScalableGraphicWidget::itemType type); |
59 | |
60 | |
61 | private: |
62 | QString m_elementIdBase; |
63 | KBBThemeManager* m_themeManager; |
64 | }; |
65 | |
66 | #endif // KBBGRAPHICSITEMINTERACTIONINFO_H |
67 | |