Crossfire Server, Trunk  R20513
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 <QtGui>
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 type definitions and header inclusions.
The archetype structure is a set of rules on how to generate and manipulate objects which point to ar...
Definition: object.h:465