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

Method unselectAllTiles

source/modes/GameMode.cpp:1652–1663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1650}
1651
1652void GameMode::unselectAllTiles()
1653{
1654 Player* player = mGameMap->getLocalPlayer();
1655 // Compute selected tiles
1656 for (int jj = 0; jj < mGameMap->getMapSizeY(); ++jj)
1657 {
1658 for (int ii = 0; ii < mGameMap->getMapSizeX(); ++ii)
1659 {
1660 mGameMap->getTile(ii, jj)->setSelected(false, player);
1661 }
1662 }
1663}
1664
1665void GameMode::displayText(const Ogre::ColourValue& txtColour, const std::string& txt)
1666{

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 5

getLocalPlayerMethod · 0.80
getMapSizeYMethod · 0.80
getMapSizeXMethod · 0.80
setSelectedMethod · 0.80
getTileMethod · 0.45

Tested by

no test coverage detected