00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef __IMPUESTO__
00017 #define __IMPUESTO__
00018
00019 #include "casilla.h"
00020
00021 #include <ctype.h>
00022 #include <iostream>
00023 using namespace std;
00024
00025 class impuesto : public casilla {
00026
00027 private:
00028
00029
00030 int _cantidad;
00031
00032 public:
00033
00034
00035 impuesto ();
00036
00037
00038 impuesto ( int numero, string nombre, string nombreCorto, int cantidad );
00039
00040
00041 impuesto (const impuesto& right);
00042
00043
00044 impuesto& operator= (const impuesto& right);
00045
00046
00047 ~impuesto ();
00048
00049
00050 int get_cantidad () const;
00051
00052
00053 void set_cantidad ( int cantidad );
00054
00067 virtual string mostrar ();
00068
00074 virtual int accion ( jugador* player );
00075
00081 virtual string dibujarCasillaHorizontal ( int fila, int anchoCasilla );
00082
00088 virtual string dibujarCasillaVertical ( int fila, int anchoCasilla );
00089
00098 virtual string dibujarCasillaEnTablero ();
00099
00104 virtual string leyendaCasilla ( int num, int nombreCorto, int tipo, int nombre, int estado );
00105
00106 };
00107
00108 inline int impuesto::get_cantidad () const
00109 {
00110 return _cantidad;
00111 }
00112
00113 inline void impuesto::set_cantidad ( int cantidad )
00114 {
00115 _cantidad = cantidad;
00116 }
00117
00118 #endif