recruitmentscene.h 673 B

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