MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / selectSquaredTiles

Method selectSquaredTiles

source/modes/EditorMode.cpp:970–977  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

968}
969
970void EditorMode::selectSquaredTiles(int tileX1, int tileY1, int tileX2, int tileY2)
971{
972 // Loop over the tiles in the rectangular selection region and set their setSelected flag accordingly.
973 std::vector<Tile*> affectedTiles = mGameMap->rectangularRegion(tileX1,
974 tileY1, tileX2, tileY2);
975
976 selectTiles(affectedTiles);
977}
978
979void EditorMode::selectTiles(const std::vector<Tile*> tiles)
980{

Callers

nothing calls this directly

Calls 1

rectangularRegionMethod · 0.80

Tested by

no test coverage detected