MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / top

Method top

src/bzflag/HUDDialogStack.cpp:42–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42HUDDialog* HUDDialogStack::top() const {
43 const int index = (const int)stack.size();
44 if (index == 0) { return NULL; }
45 return stack[index - 1];
46}
47
48void HUDDialogStack::push(HUDDialog* dialog) {
49 if (!dialog) { return; }

Callers 9

resizeMethod · 0.95
keyPressMethod · 0.80
~PlanStackMethod · 0.80
executeMethod · 0.80
callbackMethod · 0.80
keyPressMethod · 0.80
keyPressMethod · 0.80
infixToPrefixMethod · 0.80
evaluateMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected