File indexing completed on 2024-09-15 03:43:42
0001 /* 0002 KBlackBox - A simple game inspired by an emacs module 0003 0004 SPDX-FileCopyrightText: 1999-2000 Robert Cimrman <cimrman3@students.zcu.cz> 0005 SPDX-FileCopyrightText: 2007 Nicolas Roffet <nicolas-kde@roffet.com> 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 0010 0011 0012 #ifndef KBBGRAPHICSITEMINTERACTIONINFO_H 0013 #define KBBGRAPHICSITEMINTERACTIONINFO_H 0014 0015 0016 0017 0018 0019 #include "kbbgraphicsitem.h" 0020 class KBBScalableGraphicWidget; 0021 class KBBThemeManager; 0022 0023 0024 0025 /** 0026 * @brief Interaction information around a ball on the scalable graphic widget 0027 * 0028 * Some signs around the ball the player is pointing on are been displayed to show how a laser ray interacts with the ball. 0029 */ 0030 class KBBGraphicsItemInteractionInfo : public KBBGraphicsItem 0031 { 0032 public: 0033 /** 0034 * @brief Constructor 0035 */ 0036 KBBGraphicsItemInteractionInfo(KBBScalableGraphicWidget* widget, KBBThemeManager* themeManager, KBBScalableGraphicWidget::itemType type, const qreal x, const qreal y, const int rotation); 0037 0038 void setType(KBBScalableGraphicWidget::itemType type); 0039 0040 0041 private: 0042 QString m_elementIdBase; 0043 KBBThemeManager* m_themeManager; 0044 }; 0045 0046 #endif // KBBGRAPHICSITEMINTERACTIONINFO_H