-
Notifications
You must be signed in to change notification settings - Fork 0
/
Token.h
32 lines (24 loc) · 698 Bytes
/
Token.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
/*
* File: Token.h
* Author: r2d2
*
* Created on July 25, 2016, 6:21 PM
*/
#ifndef TOKEN_H
#define TOKEN_H
/*
* Puede parecer medio innecesario el uso de una clase para tokens, pero esta bueno dejar abierta la posibilidad de modificar
* cosa que no se puede lograr en un arreglo de bools
*
* @Tokens class. A token can only have two sides, head or cross.
* The class has two methods. It was decided to use a class in case we want to add more options in the future
*/
class Token {
public:
Token();
void flip_token(void);
bool token_heads();
protected:
bool pos_heads; //Depending on the side, pos_heads is true or false
};
#endif /* TOKEN_H */