Página principal | Lista de namespace | Lista de archivos

impuesto5.h

00001 /***********************************************************************************
00002  *  CLASE IMPUESTO5
00003  *  Clase que representa los impuestos especiales del tablero del Monopoly. Esta clase
00004  *  hereda de la clase base impuesto (que a su vez hereda de casilla). En esta clase se
00005  *  almacena como atributo propio un tanto por ciento (_tpc) que representa el
00006  *  porcentaje sobre el capital que debe pagar el jugador. 
00007  *  El jugador puede elegir entre el porcentaje o pagar la cantidad fija que hereda de
00008  *  la clase impuesto.
00009  *
00010  *  Requiere:
00011  *     - clase impuesto (herencia)
00012  *
00013  *  Autor: Javier Aragón Zabalegui (PFC para la uc3m: street Master's)
00014  *  Contacto: 100039831@alumnos.uc3m.es
00015  *  version 1.0
00016  **********************************************************************************/
00017 
00018 
00019 #ifndef __IMPUESTO5__
00020 #define __IMPUESTO5__
00021 
00022 #include "impuesto.h"
00023 
00024 class impuesto5 : public impuesto {
00025 
00026  private:
00027 
00028   //Atributos
00029   int _tpc;  
00030 
00031  public:
00032 
00033   // Constructor por defecto
00034   impuesto5 ();
00035   
00036   // Constructor explícito
00037   impuesto5 ( int numero, string nombre, string nombreCorto, int cantidad, int tpc );
00038   
00039   // Copy constructor
00040   impuesto5 (const impuesto5& right);
00041 
00042   // Operador de asignación
00043   impuesto5& operator= (const impuesto5& right);
00044 
00045   // Destructor
00046   ~impuesto5 ();
00047 
00048   // Métodos GET 
00049   int  get_tpc () const;  
00050   
00051   // Métodos SET
00052   void set_tpc ( int tpc );
00053   
00067   string mostrar ();
00068 
00075   int accion ( jugador *player ); 
00076 
00082   string dibujarCasillaHorizontal ( int fila, int anchoCasilla );
00083   
00089   string dibujarCasillaVertical ( int fila, int anchoCasilla );
00090 
00100   string dibujarCasillaEnTablero ();
00101 
00106   string leyendaCasilla ( int num, int nombreCorto, int tipo, int nombre, int estado );
00107 
00108 };
00109 
00110 inline int impuesto5::get_tpc () const
00111 {
00112   return _tpc;
00113 }
00114 
00115 inline void impuesto5::set_tpc ( int tpc )
00116 {
00117   _tpc = tpc;
00118 }
00119 
00120 #endif

Generado el Fri Jun 30 12:38:29 2006 para Street Master's por  doxygen 1.3.9.1