CBattleResultWindow.h 896 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #pragma once
  2. #include "../UIFramework/CIntObject.h"
  3. struct SDL_Surface;
  4. class AdventureMapButton;
  5. class CBattleInterface;
  6. struct SDL_Rect;
  7. struct BattleResult;
  8. /*
  9. * CBattleResultWindow.h, part of VCMI engine
  10. *
  11. * Authors: listed in file AUTHORS in main folder
  12. *
  13. * License: GNU General Public License v2.0 or later
  14. * Full text of license available in license.txt file, in main folder
  15. *
  16. */
  17. /// Class which is responsible for showing the battle result window
  18. class CBattleResultWindow : public CIntObject
  19. {
  20. private:
  21. SDL_Surface *background;
  22. AdventureMapButton *exit;
  23. CBattleInterface *owner;
  24. public:
  25. CBattleResultWindow(const BattleResult &br, const SDL_Rect &pos, CBattleInterface *_owner); //c-tor
  26. ~CBattleResultWindow(); //d-tor
  27. void bExitf(); //exit button callback
  28. void activate();
  29. void deactivate();
  30. void show(SDL_Surface * to = 0);
  31. };