CCastleInterface.h 697 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include "global.h"
  3. #include "SDL.h"
  4. #include "CPlayerInterface.h"
  5. class CGTownInstance;
  6. template <typename T> class AdventureMapButton;
  7. class CBuildingRect : public MotionInterested, public ClickableL, public ClickableR, public TimeInterested
  8. {
  9. void activate();
  10. void deactivate();
  11. };
  12. class CCastleInterface
  13. {
  14. public:
  15. SDL_Surface * townInt;
  16. SDL_Surface * cityBg;
  17. const CGTownInstance * town;
  18. CDefHandler *hall,*fort,
  19. *bigTownPic, *flag;
  20. AdventureMapButton<CCastleInterface> * exit;
  21. CCastleInterface(const CGTownInstance * Town, bool Activate=true);
  22. ~CCastleInterface();
  23. void show();
  24. void close();
  25. void activate();
  26. void deactivate();
  27. };