Advertisement
Egor_Vakar

Cards.hpp (coursework)

Dec 26th, 2022
1,191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include <iostream>
  4. #include <SFML/Graphics.hpp>
  5.  
  6. class Cards{
  7.  
  8. public:
  9.     const float CARDS_WIDTH = 61.6, CARDS_HEIGHT = 81;
  10.  
  11.     int card_value = 0;
  12.     int card_id = 0;
  13.     int screenPosition = 0;
  14.  
  15.     sf::Sprite spr;
  16.  
  17. public:
  18.     Cards(sf::Texture&, int cardsPosition, int currentPlayer);
  19.     ~Cards();
  20.  
  21.     // # Draw Object
  22.     sf::Sprite Draw();
  23. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement