1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-10-31 00:07:39 +02:00

Zone shapes & terrains work nicely.

This commit is contained in:
DjWarmonger
2014-05-24 14:06:08 +02:00
parent 27dcf70b1a
commit d2fd71d087
7 changed files with 126 additions and 38 deletions

View File

@@ -98,6 +98,12 @@ void CTerrainSelection::deselectRange(const MapRect & rect)
});
}
void CTerrainSelection::setSelection(std::vector<int3> & vec)
{
for (auto pos : vec)
this->select(pos);
}
void CTerrainSelection::selectAll()
{
selectRange(MapRect(int3(0, 0, 0), getMap()->width, getMap()->height));

View File

@@ -91,6 +91,7 @@ public:
void deselectRange(const MapRect & rect) override;
void selectAll() override;
void clearSelection() override;
void setSelection(std::vector<int3> & vec);
};
/// Selection class to select objects.