- Fixed gui bug where unchecking extremely low undid low
[crack-attack.git] / src / GarbageQueue.h
blob49bc2f9b356614b9b7e96d2beb8d650fcb908f4b
1 #ifndef _GARBAGE_QUEUE_H
2 #define _GARBAGE_QUEUE_H
4 #include "GarbageQueueElement.h"
6 #include <vector>
8 using namespace std;
10 class GarbageQueue {
11 public:
12 GarbageQueue();
13 ~GarbageQueue();
15 void add ( int height, int width, int flavor );
16 void add ( GarbageQueueElement &element );
18 int height ( );
19 int specialHeight ( );
21 void reset ( );
23 int removeWithSpecials ( );
25 void sendToGenerator ( );
27 private:
29 int cached_height;
30 std::vector<GarbageQueueElement> garbage_queue;
32 int removeToFirst ( int flavor );
35 #endif