00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #if defined(karteneditor) && !defined(pbpeditor)
00024 #error the mapeditor is not supposed the gui icons !
00025 #endif
00026
00027
00028 #ifndef guifunctionsinterfaceH
00029 #define guifunctionsinterfaceH
00030
00031 #include "guiiconhandler.h"
00032
00033 namespace GuiFunctions {
00034
00035 class Movement : public GuiFunction
00036 {
00037 public:
00038 bool available( const MapCoordinate& pos, ContainerBase* subject, int num );
00039 void execute( const MapCoordinate& pos, ContainerBase* subject, int num );
00040 bool checkForKey( const SDL_KeyboardEvent* key, int modifier, int num );
00041 Surface& getImage( const MapCoordinate& pos, ContainerBase* subject, int num );
00042 ASCString getName( const MapCoordinate& pos, ContainerBase* subject, int num );
00043 };
00044
00045
00046 class Cancel : public GuiFunction
00047 {
00048 public:
00049 bool available( const MapCoordinate& pos, ContainerBase* subject, int num );
00050 void execute( const MapCoordinate& pos, ContainerBase* subject, int num );
00051 bool checkForKey( const SDL_KeyboardEvent* key, int modifier, int num );
00052 Surface& getImage( const MapCoordinate& po, ContainerBase* subject, int nums );
00053 ASCString getName( const MapCoordinate& pos, ContainerBase* subject, int num );
00054 };
00055
00056 }
00057
00058 #endif
00059