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

Method globeHover

src/Geoscape/BuildNewBaseState.cpp:194–199  ·  view source on GitHub ↗

* Processes mouse-hover event for base placement, * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

192 * @param action Pointer to an action.
193 */
194void BuildNewBaseState::globeHover(Action *action)
195{
196 _mousex = (int)floor(action->getAbsoluteXMouse());
197 _mousey = (int)floor(action->getAbsoluteYMouse());
198 if (!_hoverTimer->isRunning()) _hoverTimer->start();
199}
200
201void BuildNewBaseState::hoverRedraw(void)
202{

Callers

nothing calls this directly

Calls 4

getAbsoluteXMouseMethod · 0.80
getAbsoluteYMouseMethod · 0.80
isRunningMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected