00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
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