gameevent_dialogs.h

Go to the documentation of this file.
00001 
00005 //     $Id: gameevent_dialogs.h,v 1.10 2010-04-05 12:48:49 mbickel Exp $
00006 
00007 /*
00008     This file is part of Advanced Strategic Command; http://www.asc-hq.de
00009     Copyright (C) 1994-2010  Martin Bickel  and  Marc Schellenberger
00010 
00011     This program is free software; you can redistribute it and/or modify
00012     it under the terms of the GNU General Public License as published by
00013     the Free Software Foundation; either version 2 of the License, or
00014     (at your option) any later version.
00015 
00016     This program is distributed in the hope that it will be useful,
00017     but WITHOUT ANY WARRANTY; without even the implied warranty of
00018     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019     GNU General Public License for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with this program; see the file COPYING. If not, write to the
00023     Free Software Foundation, Inc., 59 Temple Place, Suite 330,
00024     Boston, MA  02111-1307  USA
00025 */
00026 
00027 
00028 #ifndef gameevent_dialogsH
00029 #define gameevent_dialogsH
00030 
00031 #include <list>
00032 
00033 #include "mappolygons.h"
00034 #include "gameevents.h"
00035 #include "dlg_box.h"
00036 #include "research.h"
00037 #include "researchexecution.h"
00038 
00039 #include "dialogs/fieldmarker.h"
00040 
00041 
00042 class ShowNewTechnology : public TechnologyPresenter {
00043    public:
00044       virtual void showTechnology( const Technology* tech, const Gadgets& newGadgetsAvailable );
00045 };
00046 
00047 extern void selectFields( FieldAddressing::Fields& fields );
00048 extern bool chooseWeather( int& weather );
00049 extern bool chooseTerrain( int& terrainID );
00050 extern bool chooseObject ( int& objectID );
00051 extern void editpolygon (Poly_gon& poly);
00052 extern void getxy_building(int *x,int *y);
00053 extern int selectunit ( int unitnetworkid );
00054 extern void playerselall( int *playerbitmap);
00055 extern bool chooseVehicleType( int& vehicleTypeID );
00056 
00057 class ReinforcementSelector : public SelectFromMap {
00058    private:
00059       MemoryStreamStorage& buf;
00060       int& objectNum;
00061       void cut( const MapCoordinate& pos );
00062       CoordinateList cutPositions;
00063 
00064    protected:
00065       bool mark();
00066       virtual bool isOk();
00067    public:
00068       ReinforcementSelector( CoordinateList& list, GameMap* map, MemoryStreamStorage& buffer, int& objNum ) : SelectFromMap( list, map ), buf( buffer), objectNum(objNum) {};
00069 };
00070 
00071 
00072 class BitMapEditor : public ASC_PG_Dialog {
00073    public:
00074       typedef int BitType;
00075    private:
00076       BitType& reference;
00077       PG_PropertyEditor* propertyEditor;
00078       bool values[64];
00079       int bitCount;
00080 
00081       bool ok();
00082 
00083    public:
00084       BitMapEditor( BitType& value, const ASCString& title, const vector<ASCString>& names );
00085 };
00086 
00087 
00088 #endif

Generated on Mon May 21 01:26:33 2012 for Advanced Strategic Command by  doxygen 1.5.1