unitsqueue.h 345 B

123456789101112131415161718
  1. #include <vector>
  2. class Unit;
  3. class UnitsQueue{
  4. private:
  5. std::vector<Unit*> queue_;
  6. typedef std::vector<Unit*>::iterator viterator;
  7. public:
  8. void add(Unit*);
  9. Unit* front();
  10. void pop();
  11. void remove(viterator);
  12. void remove(Unit*);
  13. viterator beginIterator();
  14. viterator endIterator();
  15. void recalcQueue();
  16. };