-
Notifications
You must be signed in to change notification settings - Fork 0
/
state.h
46 lines (36 loc) · 989 Bytes
/
state.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
46
#ifndef __STATE_INCLUDED_H__
#define __STATE_INCLUDED_H__
#include <vector>
#include <string>
#include "muncher.h"
class state {
public:
state (int);
state (const state &);
state (
int red_score,
int blue_score,
int red_left,
std::vector<muncher> red_nanomunchers,
int blue_left,
std::vector<muncher> blue_nanomunchers,
std::vector<int> eaten_nodes );
state& operator= (state &);
int get_red_score () const;
int get_blue_score () const;
int get_red_left () const;
int get_blue_left () const;
std::vector<muncher> get_red_munchers () const;
std::vector<muncher> get_blue_munchers () const;
std::vector<int> get_eaten_nodes () const;
std::string str () const;
private:
int red_score;
int blue_score;
int red_left;
std::vector<muncher> red_nanomunchers;
int blue_left;
std::vector<muncher> blue_nanomunchers;
std::vector<int> eaten_nodes;
};
#endif