recruitmentscene.h 871 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef RECRUITMENTSCENE_H
  2. #define RECRUITMENTSCENE_H
  3. #include "gui/scene.h"
  4. #include <QWidget>
  5. #include <vector>
  6. class UnitIcon;
  7. class RaceIcon;
  8. class Player;
  9. namespace Ui {
  10. class RecruitmentScene;
  11. }
  12. class RecruitmentScene : public Scene
  13. {
  14. Q_OBJECT
  15. public:
  16. explicit RecruitmentScene(QWidget *parent = 0);
  17. ~RecruitmentScene();
  18. void parseArgs(QString args) override;
  19. void init() override;
  20. private:
  21. void initAvailableRaces();
  22. void initAvailableUnits();
  23. void initChosenUnits();
  24. private slots:
  25. void on_back_button_clicked();
  26. private:
  27. int available_money_;
  28. int current_money_;
  29. int current_player_id_;
  30. Player* current_player_;
  31. Ui::RecruitmentScene *ui;
  32. UnitIcon* available_units_icons_[5];
  33. UnitIcon* chosen_units_icons_[10];
  34. RaceIcon* available_races_icons_[3];
  35. };
  36. #endif // RECRUITMENTSCENE_H