Snoke
change.h
Go to the documentation of this file.
1 
11 #ifndef CHANGE_H
12 #define CHANGE_H
13 #include "../Common/common.h"
14 #include <deque>
15 
21 class Change
22 {
23  private:
24  std::deque<Point> queue[2];
25 
26  public:
27  void initQueue();
28  bool addPoint(Point p);
29  bool rmPoint(Point p);
30  bool inAddQueue(Point p);
31  bool inRmQueue(Point p);
32  void getAddQueue(std::deque<Point>* cpChange);
33  void getRmQueue(std::deque<Point>* cpChange);
34 };
35 
36 #endif
void getRmQueue(std::deque< Point > *cpChange)
method to get a copy of removal array
Definition: change.cpp:98
bool addPoint(Point p)
adds Point to addition array if it fits the criteria
Definition: change.cpp:28
void initQueue()
Initializes change array, by resetting it.
Definition: change.cpp:17
bool rmPoint(Point p)
adds Point to removal array if it fits the criteria
Definition: change.cpp:43
void getAddQueue(std::deque< Point > *cpChange)
method to get a copy of addition array
Definition: change.cpp:89
A Support Change class.
Definition: change.h:21
bool inAddQueue(Point p)
Check if Points is in the addition queue.
Definition: change.cpp:57
bool inRmQueue(Point p)
Check if the Point is in the remove queue.
Definition: change.cpp:73
std::deque< Point > queue[2]
Definition: change.h:24
Coordinates and style of the cell in console window.
Definition: common.h:52