Make autopackage work
[crack-attack.git] / src / GarbageQueue.h
blob5e48d1cc66f16cc6be473ae94d016d5603074809
1 /*
2 * GarbageQueue.h
3 *
4 * Crack Attack! is the legal property of its developers, whose names
5 * are too numerous to list here. Please refer to the COPYRIGHT file
6 * distributed with this source distribution for a full listing.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 #ifndef _GARBAGE_QUEUE_H
23 #define _GARBAGE_QUEUE_H
25 #include "GarbageQueueElement.h"
27 #include <vector>
29 using namespace std;
31 class GarbageQueue {
32 public:
33 GarbageQueue();
34 ~GarbageQueue();
36 void add ( int height, int width, int flavor );
37 void add ( GarbageQueueElement &element );
39 int height ( );
40 int specialHeight ( );
42 void reset ( );
44 int removeWithSpecials ( );
46 void sendToGenerator ( );
48 private:
50 int cached_height;
51 std::vector<GarbageQueueElement> garbage_queue;
53 int removeToFirst ( int flavor );
56 #endif