UnitsQueue.h 286 B

123456789101112131415
  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. void remove(viterator);
  10. void remove(Unit*);
  11. viterator beginIterator();
  12. viterator endIterator();
  13. };