Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include "Card.h"
- enum Cards { CardTen, CardEleven, CaedTwelve, CardThirteen, CardFourteen };
- class CardsFromTentoFourteen : public Card
- {
- private:
- float CardPrice, FeesToPay;
- Cards d[5];
- public:
- void SetCardPrice(float ActualCardPrice)
- {
- CardPrice = (ActualCardPrice > 0) ? ActualCardPrice : 0;
- }
- void SetFeesToPay(float ActualFeesToPay)
- {
- FeesToPay = (ActualFeesToPay > 0) ? ActualFeesToPay : 0;
- }
- float GetCardPrice()
- {
- return CardPrice;
- }
- float GetFeesToPay()
- {
- return FeesToPay;
- }
- void SetCards(Cards c[])
- {
- for (size_t i=0;i<5;i++)
- {
- d[i] = c[i];
- }
- }
- int w= pPlayer->GetWallet();
- if (w > CardPrice)
- {
- WalletAmount = pPlayer->GetWallet() - CardPrice;
- }
- ~CardsFromTentoFourteen() {}
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement