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

Method selectSquaredTiles

source/modes/GameMode.cpp:1632–1639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1630}
1631
1632void GameMode::selectSquaredTiles(int tileX1, int tileY1, int tileX2, int tileY2)
1633{
1634 // Loop over the tiles in the rectangular selection region and set their setSelected flag accordingly.
1635 std::vector<Tile*> affectedTiles = mGameMap->rectangularRegion(tileX1,
1636 tileY1, tileX2, tileY2);
1637
1638 selectTiles(affectedTiles);
1639}
1640
1641void GameMode::selectTiles(const std::vector<Tile*> tiles)
1642{

Callers 15

checkSpellCastMethod · 0.45
checkSpellCastMethod · 0.45
checkSpellCastMethod · 0.45
checkSpellCastMethod · 0.45
checkSpellCastMethod · 0.45
checkSpellCastMethod · 0.45
checkSpellCastMethod · 0.45
checkSpellCastMethod · 0.45
checkSpellCastMethod · 0.45
checkSpellCastMethod · 0.45
checkBuildTrapMethod · 0.45
checkBuildTrapEditorMethod · 0.45

Calls 1

rectangularRegionMethod · 0.80

Tested by

no test coverage detected