vehicletypeimage.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                                                         *
00003  *   This program is free software; you can redistribute it and/or modify  *
00004  *   it under the terms of the GNU General Public License as published by  *
00005  *   the Free Software Foundation; either version 2 of the License, or     *
00006  *   (at your option) any later version.                                   *
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

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