MCPcopy Create free account
hub / github.com/bwapi/bwapi / findDialog

Method findDialog

bwapi/BWAPI/Source/BW/Dialog.cpp:267–283  ·  view source on GitHub ↗

------------------ FIND BY NAME -----------------

Source from the content-addressed store, hash-verified

265 }
266 // ------------------ FIND BY NAME -----------------
267 dialog *dialog::findDialog(const char *pszName)
268 {
269 if ( this )
270 {
271 dialog *parent = this;
272 if ( !parent->isDialog() )
273 parent = parent->parent();
274
275 while ( parent )
276 {
277 if (parent->pszText && _strcmpi(parent->pszText, pszName) == 0 )
278 return parent;
279 parent = parent->next();
280 }
281 }
282 return nullptr;
283 }
284 // --------------------- NEXT ----------------------
285 dialog *dialog::next() const
286 {

Callers 1

FindDialogGlobalFunction · 0.80

Calls 3

isDialogMethod · 0.80
parentMethod · 0.80
nextMethod · 0.80

Tested by

no test coverage detected