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

Method clearTilesWithVision

source/game/Seat.cpp:228–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228void Seat::clearTilesWithVision()
229{
230 if(mPlayer == nullptr)
231 return;
232 if(!mPlayer->getIsHuman())
233 return;
234
235 for(std::vector<TileStateNotified>& vec : mTilesStates)
236 {
237 for(TileStateNotified& p : vec)
238 {
239 p.mVisionTurnLast = p.mVisionTurnCurrent;
240 p.mVisionTurnCurrent = false;
241 }
242 }
243}
244
245void Seat::notifyVisionOnTile(Tile* tile)
246{

Callers 1

doMiscUpkeepMethod · 0.80

Calls 1

getIsHumanMethod · 0.80

Tested by

no test coverage detected