explosivemines.h

Go to the documentation of this file.
00001 
00002 /***************************************************************************
00003                           gamemap.h  -  description
00004                              -------------------
00005     begin                : Tue Feb 17 2001
00006     copyright            : (C) 2001 by Martin Bickel
00007     email                : bickel@asc-hq.org
00008  ***************************************************************************/
00009 
00010 /***************************************************************************
00011  *                                                                         *
00012  *   This program is free software; you can redistribute it and/or modify  *
00013  *   it under the terms of the GNU General Public License as published by  *
00014  *   the Free Software Foundation; either version 2 of the License, or     *
00015  *   (at your option) any later version.                                   *
00016  *                                                                         *
00017  ***************************************************************************/
00018 
00019 
00020 #ifndef explosiveminesH
00021  #define explosiveminesH
00022 
00023 
00024  #include "objects.h"
00025  #include "basestreaminterface.h"
00026  
00027 
00028 
00029 
00030 class Mine : public AgeableItem {
00031       Mine();
00032    public:
00033       Mine( MineTypes type, int strength, int player, GameMap* gamemap );
00034 
00035       Mine( MineTypes type, int strength, int player, GameMap* gamemap, int identifier );
00036 
00037       static Mine newFromStream ( tnstream& stream );
00038       
00040       int identifier;
00041       
00042       MineTypes type;
00043 
00045       int strength;
00046 
00048       int player;
00049 
00051       bool attacksunit ( const Vehicle* veh ) const;
00052       
00054       void paint( Surface& surf, SPoint pos ) const;
00055 
00056       void read ( tnstream& stream );
00057       void write ( tnstream& stream ) const;
00058       
00059 };
00060 
00061 
00062 
00063 #endif
00064 

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