43 |
|
#define SELECTION_SELECTIONMANAGER_HPP |
44 |
|
|
45 |
|
#include "utils/BitSet.hpp" |
46 |
< |
|
46 |
> |
#include "primitives/StuntDouble.hpp" |
47 |
|
namespace oopse { |
48 |
|
|
49 |
|
/** |
52 |
|
*/ |
53 |
|
class SelectionManager { |
54 |
|
public: |
55 |
< |
SelectionManager(int size) {bsSelection_.resize(size); clearSelection;} |
55 |
> |
SelectionManager(int size) {bsSelection_.resize(size);} |
56 |
|
|
57 |
|
void addSelection(StuntDouble* sd) { |
58 |
|
bsSelection_.setBitOn(sd->getGlobalIndex()); |
100 |
|
} |
101 |
|
|
102 |
|
int getSelectionCount() { |
103 |
< |
bsSelection_.countBits(); |
103 |
> |
return bsSelection_.countBits(); |
104 |
|
} |
105 |
|
|
106 |
|
BitSet getSelectionSet() { |
110 |
|
private: |
111 |
|
|
112 |
|
BitSet bsSelection_; |
113 |
– |
SimInfo* info_; |
113 |
|
}; |
114 |
|
|
115 |
|
} |