Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Member Functions | List of all members
editor::page::MapArea Class Reference

Section of the map area with the map itself and related controls. More...

#include <MapArea.hpp>

+ Inheritance diagram for editor::page::MapArea:

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::EditMapeditMap ()
 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...
 

Detailed Description

Section of the map area with the map itself and related controls.

Definition at line 16 of file MapArea.hpp.

Constructor & Destructor Documentation

◆ MapArea()

editor::page::MapArea::MapArea ( const component::EditMap::PositionCb clickCb,
const component::EditMap::ActionCb syncCb,
core::system::Systems systems 
)

Construct a new Map Area.

Parameters
clickCbCallback when the map itself is clicked
syncCbCallback when the GUI should be updated
systemsThe main game systems

Definition at line 9 of file MapArea.cpp.

Member Function Documentation

◆ disableControls()

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.

◆ editMap()

component::EditMap & editor::page::MapArea::editMap ( )

Returns the contained map.

Definition at line 65 of file MapArea.cpp.

◆ enableControls()

void editor::page::MapArea::enableControls ( )

Enables the map controls.

Definition at line 102 of file MapArea.cpp.

◆ getContent()

bl::gui::Element::Ptr editor::page::MapArea::getContent ( )

Returns the GUI element to pack.

Definition at line 67 of file MapArea.cpp.


The documentation for this class was generated from the following files: