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

Method mouseOver

src/Basescape/MiniBaseView.cpp:158–162  ·  view source on GitHub ↗

* Selects the base the mouse is over. * @param action Pointer to an action. * @param state State that the action handlers belong to. */

Source from the content-addressed store, hash-verified

156 * @param state State that the action handlers belong to.
157 */
158void MiniBaseView::mouseOver(Action *action, State *state)
159{
160 _hoverBase = (int)floor(action->getRelativeXMouse() / ((MINI_SIZE + 2) * action->getXScale()));
161 InteractiveSurface::mouseOver(action, state);
162}
163
164}

Callers

nothing calls this directly

Calls 2

getRelativeXMouseMethod · 0.80
getXScaleMethod · 0.45

Tested by

no test coverage detected