- // TODO: this should be related to the enemy's width
- // offset the cursor by 1/8th to the left and bottom
- Vector<int> cursorOffset(cursorIcon->Width() / -8, cursorIcon->Height() / 8);
- Vector<int> indicatorOffset(0, 0);
- vector<Point<int> > positions;
- if (selection->TargetsEnemies()) {
- for (vector<Point<int> >::const_iterator i(battle->MonsterPositions().begin()), end(battle->MonsterPositions().end()); i != end; ++i) {
- positions.push_back(*i);
+ Vector<int> cursorOffset(cursorIcon->Width() / -2, cursorIcon->Height());
+ // offset the indicator by 1/8th to the right and top
+ Vector<int> indicatorOffset(cursorOffset + Vector<int>(cursorIcon->Width() / 8, cursorIcon->Height() / -8));
+ vector<Vector<int> > positions;
+ if (selection->TargetsMonsters()) {
+ for (int i(0), end(battle->MaxMonsters()); i < end; ++i) {
+ positions.push_back(battle->MonsterAt(i).Position());