00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef vehicletypeimageH
00011 #define vehicletypeimageH
00012
00013 #include <pgwidget.h>
00014 #include "../graphics/surface.h"
00015
00016 class VehicleType;
00017 class Player;
00018
00019 class VehicleTypeImage: public PG_Widget {
00020 const VehicleType* vt;
00021 const Player& player;
00022 static Surface clippingSurface;
00023 Surface& getClippingSurface() { return clippingSurface; };
00024 public:
00025 VehicleTypeImage( PG_Widget* parent, const PG_Point& pos, const VehicleType* vehicletype, const Player& owningPlayer );
00026 void eventBlit ( SDL_Surface * surface, const PG_Rect & src, const PG_Rect & dst );
00027 protected:
00028 void display( SDL_Surface * surface, const PG_Rect & src, const PG_Rect & dst );
00029 };
00030
00031 #endif