Crossfire Server, Trunk
CRECombatSimulator.h
Go to the documentation of this file.
1 #ifndef CRECOMBATSIMULATOR_H
2 #define CRECOMBATSIMULATOR_H
3 
4 #include <QWidget>
5 #include <QDialog>
6 #include <QtWidgets>
7 
8 
9 extern "C" {
10 #include "global.h"
11 }
12 
13 class QComboBox;
14 class QSpinBox;
15 
16 class CRECombatSimulator : public QDialog
17 {
18  Q_OBJECT
19 
20  public:
22  virtual ~CRECombatSimulator();
23 
24  protected slots:
25  void fight();
26 
27  private:
28  void fight(const archetype* first, const archetype* second);
29 
30  QComboBox* myFirst;
31  QComboBox* mySecond;
32  QSpinBox* myCombats;
33  QSpinBox* myMaxRounds;
34  QLabel* myResultLabel;
35  QLabel* myResult;
36 
43 };
44 
45 #endif /* CRECOMBATSIMULATOR_H */
global.h
CRECombatSimulator::fight
void fight()
Definition: CRECombatSimulator.cpp:135
spell_arrow.archetype
archetype
Definition: spell_arrow.py:11
CRECombatSimulator::mySecondMaxHp
int mySecondMaxHp
Definition: CRECombatSimulator.h:42
CRECombatSimulator::myCombats
QSpinBox * myCombats
Definition: CRECombatSimulator.h:32
CRECombatSimulator::myFirstVictories
int myFirstVictories
Definition: CRECombatSimulator.h:37
CRECombatSimulator::CRECombatSimulator
CRECombatSimulator()
Definition: CRECombatSimulator.cpp:11
CRECombatSimulator::myResultLabel
QLabel * myResultLabel
Definition: CRECombatSimulator.h:34
CRECombatSimulator::mySecond
QComboBox * mySecond
Definition: CRECombatSimulator.h:31
CRECombatSimulator::~CRECombatSimulator
virtual ~CRECombatSimulator()
Definition: CRECombatSimulator.cpp:61
CRECombatSimulator::myFirst
QComboBox * myFirst
Definition: CRECombatSimulator.h:30
CRECombatSimulator::myFirstMaxHp
int myFirstMaxHp
Definition: CRECombatSimulator.h:39
CRECombatSimulator::myMaxRounds
QSpinBox * myMaxRounds
Definition: CRECombatSimulator.h:33
CRECombatSimulator::myFirstMinHp
int myFirstMinHp
Definition: CRECombatSimulator.h:38
CRECombatSimulator::mySecondVictories
int mySecondVictories
Definition: CRECombatSimulator.h:40
CRECombatSimulator::myResult
QLabel * myResult
Definition: CRECombatSimulator.h:35
CRECombatSimulator::mySecondMinHp
int mySecondMinHp
Definition: CRECombatSimulator.h:41
CRECombatSimulator
Definition: CRECombatSimulator.h:16