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

Method refreshMainUI

source/network/ODClient.cpp:1007–1017  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1005}
1006
1007void ODClient::refreshMainUI(const std::string& goalsString)
1008{
1009 ODFrameListener* frameListener = ODFrameListener::getSingletonPtr();
1010 if (frameListener->getModeManager()->getCurrentModeType() == AbstractModeManager::GAME)
1011 {
1012 GameMode* gm = static_cast<GameMode*>(frameListener->getModeManager()->getCurrentMode());
1013 gm->refreshPlayerGoals(goalsString);
1014 gm->refreshMainUI();
1015 }
1016 // Note: Later, we can handle other modes here if necessary.
1017}
1018
1019bool ODClient::connect(const std::string& host, const int port, uint32_t timeout, const std::string& outputReplayFilename)
1020{

Callers

nothing calls this directly

Calls 4

getModeManagerMethod · 0.80
getCurrentModeMethod · 0.80
refreshPlayerGoalsMethod · 0.80
getCurrentModeTypeMethod · 0.45

Tested by

no test coverage detected