![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Section of the map area with the map itself and related controls. More...
#include <MapArea.hpp>
Public Member Functions | |
MapArea (const component::EditMap::PositionCb &clickCb, const component::EditMap::ActionCb &syncCb, core::system::Systems &systems) | |
Construct a new Map Area. More... | |
component::EditMap & | editMap () |
Returns the contained map. More... | |
bl::gui::Element::Ptr | getContent () |
Returns the GUI element to pack. More... | |
void | enableControls () |
Enables the map controls. More... | |
void | disableControls () |
Disables the map controls when a dialog is opened or the map tab is inactive. More... | |
Section of the map area with the map itself and related controls.
Definition at line 16 of file MapArea.hpp.
editor::page::MapArea::MapArea | ( | const component::EditMap::PositionCb & | clickCb, |
const component::EditMap::ActionCb & | syncCb, | ||
core::system::Systems & | systems | ||
) |
Construct a new Map Area.
clickCb | Callback when the map itself is clicked |
syncCb | Callback when the GUI should be updated |
systems | The main game systems |
Definition at line 9 of file MapArea.cpp.
void editor::page::MapArea::disableControls | ( | ) |
Disables the map controls when a dialog is opened or the map tab is inactive.
Definition at line 107 of file MapArea.cpp.
component::EditMap & editor::page::MapArea::editMap | ( | ) |
Returns the contained map.
Definition at line 65 of file MapArea.cpp.
void editor::page::MapArea::enableControls | ( | ) |
Enables the map controls.
Definition at line 102 of file MapArea.cpp.
bl::gui::Element::Ptr editor::page::MapArea::getContent | ( | ) |
Returns the GUI element to pack.
Definition at line 67 of file MapArea.cpp.