MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / onMinimapClick

Method onMinimapClick

source/modes/GameEditorModeBase.cpp:180–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180bool GameEditorModeBase::onMinimapClick(const CEGUI::EventArgs& arg)
181{
182 const CEGUI::MouseEventArgs& mouseEvt = static_cast<const CEGUI::MouseEventArgs&>(arg);
183
184 ODFrameListener& frameListener = ODFrameListener::getSingleton();
185
186 Ogre::Vector2 cc = mMiniMap->camera_2dPositionFromClick(static_cast<int>(mouseEvt.position.d_x),
187 static_cast<int>(mouseEvt.position.d_y));
188 frameListener.getCameraManager()->onMiniMapClick(cc);
189
190 return true;
191}
192
193void GameEditorModeBase::onFrameStarted(const Ogre::FrameEvent& evt)
194{

Callers

nothing calls this directly

Calls 3

onMiniMapClickMethod · 0.80
getCameraManagerMethod · 0.80

Tested by

no test coverage detected