-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCardScript.h
More file actions
42 lines (32 loc) · 725 Bytes
/
Copy pathCardScript.h
File metadata and controls
42 lines (32 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
#include "Script.h"
#include "GameManager.h"
using namespace std;
class GameManager;
class CardScript : public Script
{
using Script::Script;
public:
void tickScript(float deltaTime) override;
void assignIdAndPos(int cardList, int xpos, int ypos);
void flipCard();
void unflipCard();
int getId() {
return id;
}
bool getFlipped() {
return flipped;
}
void setGameManagerRef(GameManager* gmr);
void turnVisible(bool visibility);
private:
int xpos;
int ypos;
int id;
int card_clicked = -1;
bool flipped = false;
bool paired = false;
bool keepUp = false;
//void assignId(int cardList);
GameManager* gameRef;
};