1 /* 2 * Copyright 2010-2014 OpenXcom Developers. 3 * 4 * This file is part of OpenXcom. 5 * 6 * OpenXcom is free software: you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 10 * 11 * OpenXcom is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with OpenXcom. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 #ifndef OPENXCOM_PRODUCTIONCOMPLETESTATE_H 20 #define OPENXCOM_PRODUCTIONCOMPLETESTATE_H 21 22 #include <string> 23 #include "../Engine/State.h" 24 #include "../Savegame/Production.h" 25 26 namespace OpenXcom 27 { 28 29 class TextButton; 30 class Window; 31 class Text; 32 class Base; 33 class GeoscapeState; 34 35 /** 36 * Window used to notify the player when 37 * a production is completed. 38 */ 39 class ProductionCompleteState : public State 40 { 41 private: 42 Base *_base; 43 GeoscapeState *_state; 44 45 TextButton *_btnOk, *_btnGotoBase; 46 Window *_window; 47 Text *_txtMessage; 48 productionProgress_e _endType; 49 public: 50 /// Creates the Production Complete state. 51 ProductionCompleteState(Game *game, Base *base, const std::wstring &item, GeoscapeState *state, productionProgress_e endType = PROGRESS_COMPLETE); 52 /// Cleans up the Production Complete state. 53 ~ProductionCompleteState(); 54 /// Handler for clicking the OK button. 55 void btnOkClick(Action *action); 56 /// Handler for clicking the Go To Base button. 57 void btnGotoBaseClick(Action *action); 58 }; 59 60 } 61 62 #endif 63