Fixes for datatype size on amd64.
[crack-attack.git] / src / GarbageQueue.h
bloba1c067eff158c3ba48dc219947db5c1002918f24
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>
30 class GarbageQueue {
31 public:
32 GarbageQueue();
33 ~GarbageQueue();
35 void add ( int height, int width, int flavor );
36 void add ( GarbageQueueElement &element );
38 int height ( );
39 int specialHeight ( );
41 void reset ( );
43 int removeWithSpecials ( );
45 void sendToGenerator ( );
47 private:
49 int cached_height;
50 std::vector<GarbageQueueElement> garbage_queue;
52 int removeToFirst ( int flavor );
55 #endif