Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.76 KB | None | 0 0
  1. #pragma once
  2. #include "Card.h"
  3. enum Cards { CardTen, CardEleven, CaedTwelve, CardThirteen, CardFourteen };
  4. class CardsFromTentoFourteen : public Card
  5. {
  6. private:
  7.     float CardPrice, FeesToPay;
  8.     Cards d[5];
  9. public:
  10.     void SetCardPrice(float ActualCardPrice)
  11.     {
  12.         CardPrice = (ActualCardPrice > 0) ? ActualCardPrice : 0;
  13.     }
  14.     void SetFeesToPay(float ActualFeesToPay)
  15.     {
  16.         FeesToPay = (ActualFeesToPay > 0) ? ActualFeesToPay : 0;
  17.     }
  18.     float GetCardPrice()
  19.     {
  20.         return CardPrice;
  21.     }
  22.     float GetFeesToPay()
  23.     {
  24.         return FeesToPay;
  25.     }
  26.     void SetCards(Cards c[])
  27.     {
  28.         for (size_t i=0;i<5;i++)
  29.         {
  30.             d[i] = c[i];
  31.         }
  32.     }
  33.     int w= pPlayer->GetWallet();
  34.     if (w > CardPrice)
  35.     {
  36.         WalletAmount = pPlayer->GetWallet() - CardPrice;
  37.     }
  38.     ~CardsFromTentoFourteen() {}
  39. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement