game.c 538 B

1234567891011121314151617181920212223242526
  1. #include "game.h"
  2. #include "wave/data_structures/queue.h"
  3. #include "wave/data_structures/list.h"
  4. #include "wave/exception_manager.h"
  5. #include <gui/gui.h>
  6. #include <stdlib.h>
  7. #include <math.h>
  8. Card AllCardsData[NUMBER_OF_CARDS];
  9. const int CARD_NONE = -1;
  10. struct LevelState
  11. {
  12. int cardLocation[NUMBER_OF_CARDS]; // 0 = deck, -1 = discard, 1+ = player index
  13. int playerTurn;
  14. int direction;
  15. int topCard;
  16. CardSuit forcedSuit;
  17. int cardToPlay;
  18. CardSuit forcedSuitToPlay;
  19. int winner;
  20. Queue* shuffleQueue;
  21. };