ManaPlus
src
gui
popups
skillpopup.h
Go to the documentation of this file.
1
/*
2
* The ManaPlus Client
3
* Copyright (C) 2008 The Legend of Mazzeroth Development Team
4
* Copyright (C) 2008-2009 The Mana World Development Team
5
* Copyright (C) 2009-2010 The Mana Developers
6
* Copyright (C) 2011-2019 The ManaPlus Developers
7
* Copyright (C) 2019-2021 Andrei Karas
8
*
9
* This file is part of The ManaPlus Client.
10
*
11
* This program is free software; you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation; either version 2 of the License, or
14
* any later version.
15
*
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU General Public License for more details.
20
*
21
* You should have received a copy of the GNU General Public License
22
* along with this program. If not, see <http://www.gnu.org/licenses/>.
23
*/
24
25
#ifndef GUI_POPUPS_SKILLPOPUP_H
26
#define GUI_POPUPS_SKILLPOPUP_H
27
28
#include "
gui/widgets/popup.h
"
29
30
#include "
enums/resources/skill/casttype.h
"
31
32
class
Label
;
33
class
TextBox
;
34
35
struct
SkillInfo
;
36
40
class
SkillPopup
final
:
public
Popup
41
{
42
public
:
46
SkillPopup
();
47
48
A_DELETE_COPY
(
SkillPopup
)
49
50
53
~SkillPopup
()
override
final
;
54
55
void
postInit
()
override
final
;
56
60
void
show
(
const
SkillInfo
*
const
skill
,
61
const
int
level,
62
const
CastTypeT
type,
63
const
int
offsetX,
64
const
int
offsetY);
65
66
void
mouseMoved
(
MouseEvent
&event)
override
final
;
67
68
void
reset
();
69
70
private
:
71
Label
*
mSkillName
A_NONNULLPOINTER
;
72
TextBox
*
mSkillDesc
A_NONNULLPOINTER
;
73
TextBox
*
mSkillEffect
A_NONNULLPOINTER
;
74
TextBox
*
mSkillLevel
A_NONNULLPOINTER
;
75
TextBox
*
mSkillCastType
A_NONNULLPOINTER
;
76
CastTypeT
mCastType
;
77
unsigned
int
mLastId
;
78
int
mLastLevel
;
79
int
mOffsetX
;
80
int
mOffsetY
;
81
};
82
83
extern
SkillPopup
*
skillPopup
;
84
85
#endif
// GUI_POPUPS_SKILLPOPUP_H
casttype.h
CastTypeT
CastType ::T CastTypeT
Definition:
casttype.h:34
Label
Definition:
label.h:91
MouseEvent
Definition:
mouseevent.h:81
Popup
Definition:
popup.h:52
SkillPopup
Definition:
skillpopup.h:41
SkillPopup::mSkillName
Label * mSkillName
Definition:
skillpopup.h:71
SkillPopup::mSkillLevel
TextBox * mSkillLevel
Definition:
skillpopup.h:74
SkillPopup::mSkillDesc
TextBox * mSkillDesc
Definition:
skillpopup.h:72
SkillPopup::mSkillCastType
TextBox * mSkillCastType
Definition:
skillpopup.h:75
SkillPopup::mCastType
CastTypeT mCastType
Definition:
skillpopup.h:76
SkillPopup::mOffsetX
int mOffsetX
Definition:
skillpopup.h:79
SkillPopup::postInit
void postInit()
Definition:
skillpopup.cpp:90
SkillPopup::~SkillPopup
~SkillPopup()
Definition:
skillpopup.cpp:102
SkillPopup::mLastId
unsigned int mLastId
Definition:
skillpopup.h:77
SkillPopup::mLastLevel
int mLastLevel
Definition:
skillpopup.h:78
SkillPopup::mSkillEffect
TextBox * mSkillEffect
Definition:
skillpopup.h:73
SkillPopup::SkillPopup
SkillPopup()
Definition:
skillpopup.cpp:44
SkillPopup::mOffsetY
int mOffsetY
Definition:
skillpopup.h:80
SkillPopup::mouseMoved
void mouseMoved(MouseEvent &event)
Definition:
skillpopup.cpp:240
SkillPopup::reset
void reset()
Definition:
skillpopup.cpp:249
SkillPopup::show
void show(const SkillInfo *const skill, const int level, const CastTypeT type, const int offsetX, const int offsetY)
Definition:
skillpopup.cpp:106
TextBox
Definition:
textbox.h:89
A_NONNULLPOINTER
#define A_NONNULLPOINTER
Definition:
localconsts.h:266
final
#define final
Definition:
localconsts.h:46
A_DELETE_COPY
#define A_DELETE_COPY(func)
Definition:
localconsts.h:53
Actions::skill
bool skill(InputEvent &event)
Definition:
commands.cpp:97
popup.h
skillPopup
SkillPopup * skillPopup
Definition:
skillpopup.cpp:42
SkillInfo
Definition:
skillinfo.h:51
Generated on Wed Mar 17 2021 19:19:06 for ManaPlus by
1.9.1