Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef _CARTA
- #define _CARTA
- //#include <string>
- const int N_CARTA = 13;
- const int N_PALS = 4;
- const int CARTA_K = 13;
- const int NUM_MAX_CARTES = 52;
- //const char strPal[]={'D','T','C','P'};
- const char strPal[]={4,5,3,6}; //Diamants,Trèvols,Cors,Piques
- const char strColor[]={'R','N'}; // Roig-Vermell, Negre
- const char strValor[]={'A','2','3','4','5','6','7','8','9','X','J','Q','K'};
- #include <iostream>
- #include <iomanip>
- using namespace std;
- class cCarta
- {
- private:
- int valor;
- int pal;
- int color;
- bool visible; // permet mostrar la carta o no en la visualització
- public:
- cCarta();
- ~cCarta();
- void setCarta(int valor, int pal);
- int getValor();
- int getPal();
- int getColor();
- void mostra();
- void setVisible();
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement