MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / getSelectedFacility

Method getSelectedFacility

src/Basescape/BaseView.cpp:125–128  ·  view source on GitHub ↗

* Returns the facility the mouse is currently over. * @return Pointer to base facility (0 if none). */

Source from the content-addressed store, hash-verified

123 * @return Pointer to base facility (0 if none).
124 */
125BaseFacility *BaseView::getSelectedFacility() const
126{
127 return _selFacility;
128}
129
130/**
131 * Prevents any mouseover bugs on dismantling base facilities before setBase has had time to update the base.

Callers 3

viewLeftClickMethod · 0.80
viewRightClickMethod · 0.80
viewMouseOverMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected