forked from dsanno/Klondike-Solver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Pile.h
45 lines (42 loc) · 710 Bytes
/
Pile.h
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
43
44
45
#ifndef Pile_h
#define Pile_h
#include "Card.h"
enum Piles {
WASTE = 0,
TABLEAU1,
TABLEAU2,
TABLEAU3,
TABLEAU4,
TABLEAU5,
TABLEAU6,
TABLEAU7,
STOCK,
FOUNDATION1C,
FOUNDATION2D,
FOUNDATION4H,
FOUNDATION3S
};
class Pile {
private:
Card down[24], up[24];
int size, downSize, upSize;
public:
void AddDown(Card card);
void AddUp(Card card);
void Remove(Pile &to);
void Remove(Pile &to, int count);
void RemoveTalon(Pile &to, int count);
void Flip();
void Reset();
void Initialize();
int HighValue();
int Size();
int DownSize();
int UpSize();
Card operator[](int index);
Card Down(int index);
Card Up(int index);
Card Low();
Card High();
};
#endif