Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

gameevent_dialogs.h

Go to the documentation of this file.
00001 
00005 //     $Id: gameevent_dialogs.h,v 1.6 2007-09-08 14:13:51 mbickel Exp $
00006 
00007 /*
00008     This file is part of Advanced Strategic Command; http://www.asc-hq.de
00009     Copyright (C) 1994-1999  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 "mappolygons.h"
00032 #include "gameevents.h"
00033 #include "dlg_box.h"
00034 #include "research.h"
00035 
00036 #include "dialogs/fieldmarker.h"
00037 
00039     class NewVehicleTypeDetection  {
00040                     bool*  buf;
00041                 public:
00042                     NewVehicleTypeDetection( );
00043 
00045                     void evalbuffer( void );
00046 
00047                     ~NewVehicleTypeDetection();
00048                };
00049 
00051      class   tshownewtanks : public tdialogbox {
00052                          public:
00053                            void          init ( bool*      buf2 );
00054                            virtual void  run  ( void );
00055                            virtual void  buttonpressed ( int id );
00056                          protected:
00057                            bool*      buf;
00058                            int           status;
00059                         };
00060 
00061 
00062 extern void showtechnology( const Technology* t);
00063 extern void selectFields( FieldAddressing::Fields& fields );
00064 extern bool chooseWeather( int& weather );
00065 extern bool chooseTerrain( int& terrainID );
00066 extern bool chooseObject ( int& objectID );
00067 extern void editpolygon (Poly_gon& poly);
00068 extern void getxy_building(int *x,int *y);
00069 extern int selectunit ( int unitnetworkid );
00070 extern void playerselall( int *playerbitmap);
00071 extern bool chooseVehicleType( int& vehicleTypeID );
00072 
00073 class ReinforcementSelector : public SelectFromMap {
00074    private:
00075       tmemorystreambuf& buf;
00076       int& objectNum;
00077    protected:
00078       bool mark();
00079    public:
00080       ReinforcementSelector( CoordinateList& list, GameMap* map, tmemorystreambuf& buffer, int& objNum ) : SelectFromMap( list, map ), buf( buffer), objectNum(objNum) {};
00081 };
00082 
00083 
00084 class BitMapEditor : public ASC_PG_Dialog {
00085    public:
00086       typedef int BitType;
00087    private:
00088       BitType& reference;
00089       PG_PropertyEditor* propertyEditor;
00090       bool values[64];
00091       int bitCount;
00092 
00093       bool ok();
00094 
00095    public:
00096       BitMapEditor( BitType& value, const ASCString& title, const vector<ASCString>& names );
00097 };
00098 
00099 
00100 #endif

Generated on Tue Jun 24 01:27:42 2008 for Advanced Strategic Command by  doxygen 1.4.2