Advanced Strategic Command
vehicletypeimage.h
Go to the documentation of this file.
1 /***************************************************************************
2  * *
3  * This program is free software; you can redistribute it and/or modify *
4  * it under the terms of the GNU General Public License as published by *
5  * the Free Software Foundation; either version 2 of the License, or *
6  * (at your option) any later version. *
7  * *
8  ***************************************************************************/
9 
10 #ifndef vehicletypeimageH
11 #define vehicletypeimageH
12 
13 #include <pgwidget.h>
14 #include "../graphics/surface.h"
15 
16 class VehicleType;
17 class Player;
18 
19 class VehicleTypeImage: public PG_Widget {
20  const VehicleType* vt;
21  const Player& player;
22  static Surface clippingSurface;
23  Surface& getClippingSurface() { return clippingSurface; };
24  public:
25  VehicleTypeImage( PG_Widget* parent, const PG_Point& pos, const VehicleType* vehicletype, const Player& owningPlayer );
26  void eventBlit ( SDL_Surface * surface, const PG_Rect & src, const PG_Rect & dst );
27  protected:
28  void display( SDL_Surface * surface, const PG_Rect & src, const PG_Rect & dst );
29 };
30 
31 #endif
void eventBlit(SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst)
The class describing properties that are common to all vehicles of a certain kind.
Definition: vehicletype.h:177
VehicleTypeImage(PG_Widget *parent, const PG_Point &pos, const VehicleType *vehicletype, const Player &owningPlayer)
void display(SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst)
the different players in ASC. There may be 8 players (0..7) and neutral units (8) ...
Definition: player.h:99