123456789101112131415161718 |
- #include <vector>
- class Unit;
- class UnitsQueue{
- private:
- std::vector<Unit*> queue_;
- typedef std::vector<Unit*>::iterator viterator;
- public:
- void add(Unit*);
- Unit* front();
- void pop();
- void remove(viterator);
- void remove(Unit*);
- viterator beginIterator();
- viterator endIterator();
- void recalcQueue();
- };
|