/* * QuickRecruitmentWindow.h, part of VCMI engine * * Authors: listed in file AUTHORS in main folder * * License: GNU General Public License v2.0 or later * Full text of license available in license.txt file, in main folder * */ #pragma once #include "../widgets/CGarrisonInt.h" class CButton; class CreatureCostBox; class CreaturePurchaseCard; class CFilledTexture; class QuickRecruitmentWindow : public CWindowObject { public: int getAvailableCreatures(); void updateAllSliders(); QuickRecruitmentWindow(const CGTownInstance * townd, Rect startupPosition); private: void initWindow(Rect startupPosition); void setButtons(); void setCancelButton(); void setBuyButton(); void setMaxButton(); void setCreaturePurchaseCards(); void maxAllCards(std::vector> cards); void maxAllSlidersAmount(std::vector> cards); void purchaseUnits(); const CGTownInstance * town; std::shared_ptr maxButton, buyButton, cancelButton; std::shared_ptr totalCost; std::vector> cards; std::shared_ptr backgroundTexture; std::shared_ptr costBackground; };