Crossfire Server, Trunk
AttackMessagePanel.h
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2022 the Crossfire Development Team
5  *
6  * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
7  * welcome to redistribute it under certain conditions. For details, please
8  * see COPYING and LICENSE.
9  *
10  * The authors can be reached via e-mail at <crossfire@metalforge.org>.
11  */
12 
13 #ifndef ATTACK_MESSAGE_PANEL_H
14 #define ATTACK_MESSAGE_PANEL_H
15 
16 #include <QWidget>
17 #include "../assets/AssetWrapperPanel.h"
18 #include "AttackMessagesWrapper.h"
19 
20 class QTableWidget;
21 class QLabel;
22 
26 class AttackMessagePanel : public AssetSWrapperPanel<SingleAttackWrapper> {
27  Q_OBJECT
28 public:
29  AttackMessagePanel(QWidget* parent);
30 
31  virtual void updateItem() override;
32 
33 private slots:
34  void currentCellChanged(int currentRow, int currentColumn, int previousRow, int previousColumn);
35 
36 private:
37  uint8_t myAttackType;
38  QTableWidget *myMessages;
39  QLabel *myForHitter;
40  QLabel *myForVictim;
41 };
42 
43 #endif /* ATTACK_MESSAGE_PANEL_H */
AttackMessagesWrapper.h
AttackMessagePanel::updateItem
virtual void updateItem() override
Definition: AttackMessagePanel.cpp:39
AttackMessagePanel::myMessages
QTableWidget * myMessages
Definition: AttackMessagePanel.h:38
AttackMessagePanel::currentCellChanged
void currentCellChanged(int currentRow, int currentColumn, int previousRow, int previousColumn)
Definition: AttackMessagePanel.cpp:52
AttackMessagePanel::myForVictim
QLabel * myForVictim
Definition: AttackMessagePanel.h:40
AttackMessagePanel::AttackMessagePanel
AttackMessagePanel(QWidget *parent)
Definition: AttackMessagePanel.cpp:20
AssetSWrapperPanel
Definition: AssetWrapperPanel.h:113
AttackMessagePanel::myForHitter
QLabel * myForHitter
Definition: AttackMessagePanel.h:39
AttackMessagePanel::myAttackType
uint8_t myAttackType
Definition: AttackMessagePanel.h:37
AttackMessagePanel
Definition: AttackMessagePanel.h:26