CBattleOptionsWindow.h 1001 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #pragma once
  2. #include "../UIFramework/CIntObject.h"
  3. class CBattleInterface;
  4. class CPicture;
  5. class AdventureMapButton;
  6. class CHighlightableButton;
  7. class CHighlightableButtonsGroup;
  8. class CLabel;
  9. struct SDL_Rect;
  10. /*
  11. * CBattleOptionsWindow.h, part of VCMI engine
  12. *
  13. * Authors: listed in file AUTHORS in main folder
  14. *
  15. * License: GNU General Public License v2.0 or later
  16. * Full text of license available in license.txt file, in main folder
  17. *
  18. */
  19. /// Class which manages the battle options window
  20. class CBattleOptionsWindow : public CIntObject
  21. {
  22. private:
  23. CBattleInterface *myInt;
  24. CPicture *background;
  25. AdventureMapButton *setToDefault, *exit;
  26. CHighlightableButton *viewGrid, *movementShadow, *mouseShadow;
  27. CHighlightableButtonsGroup *animSpeeds;
  28. std::vector<CLabel*> labels;
  29. public:
  30. CBattleOptionsWindow(const SDL_Rect &position, CBattleInterface *owner); //c-tor
  31. void bDefaultf(); //default button callback
  32. void bExitf(); //exit button callback
  33. };