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

Method toggleSeatVisualDebug

source/game/Seat.cpp:691–704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

689}
690
691void Seat::toggleSeatVisualDebug()
692{
693 if(!mGameMap->isServerGameMap())
694 return;
695
696 // Visual debugging do not work for AI players (otherwise, we would have to use
697 // mTilesStates for them which would be memory consuming)
698 if(mPlayer == nullptr)
699 return;
700 if(!mPlayer->getIsHuman())
701 return;
702
703 mIsDebuggingVision = !mIsDebuggingVision;
704}
705
706void Seat::refreshSeatVisualDebug()
707{

Callers 1

Calls 2

isServerGameMapMethod · 0.80
getIsHumanMethod · 0.80

Tested by

no test coverage detected