--- trunk/src/selection/SelectionManager.hpp 2005/02/04 22:39:26 288 +++ trunk/src/selection/SelectionManager.hpp 2005/02/11 22:39:03 315 @@ -46,13 +46,14 @@ namespace oopse { #include "primitives/StuntDouble.hpp" namespace oopse { +class SimInfo; /** * @class SelectionManager SelectionManager.hpp "selection/SelectionManager.hpp" * @brief */ class SelectionManager { public: - SelectionManager(int size) {bsSelection_.resize(size);} + SelectionManager(SimInfo* info); void addSelection(StuntDouble* sd) { bsSelection_.setBitOn(sd->getGlobalIndex()); @@ -106,10 +107,18 @@ class SelectionManager { BitSet getSelectionSet() { return bsSelection_; } + + + StuntDouble* beginSelected(int& i); + StuntDouble* nextSelected(int& i); + + StuntDouble* beginUnselected(int& i); + StuntDouble* nextUnSelected(int& i); private: - + SimInfo* info_; BitSet bsSelection_; + std::vector stuntdoubles_; }; }