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

Editor subpage for selecting catch tiles to place. More...

#include <Catchables.hpp>

Public Member Functions

 Catchables (component::EditMap &map)
 Construct a new Catchables GUI. More...
 
void setGUI (bl::gui::GUI *gui)
 Sets the parent GUI object. More...
 
bl::gui::Element::Ptr getContent ()
 Returns the GUI element to pack. More...
 
std::uint8_t selected () const
 Returns the currently selected catch type. More...
 
void refresh ()
 Refreshes GUI elements. More...
 

Static Public Member Functions

static sf::Color getColor (std::uint8_t index)
 Returns the color to use for the given catch region. More...
 

Detailed Description

Editor subpage for selecting catch tiles to place.

Definition at line 23 of file Catchables.hpp.

Constructor & Destructor Documentation

◆ Catchables()

editor::page::Catchables::Catchables ( component::EditMap map)

Construct a new Catchables GUI.

Parameters
guiThe main gui object
mapThe map being edited

Definition at line 27 of file Catchables.cpp.

Member Function Documentation

◆ getColor()

sf::Color editor::page::Catchables::getColor ( std::uint8_t  index)
static

Returns the color to use for the given catch region.

Definition at line 59 of file Catchables.cpp.

◆ getContent()

Element::Ptr editor::page::Catchables::getContent ( )

Returns the GUI element to pack.

Definition at line 55 of file Catchables.cpp.

◆ refresh()

void editor::page::Catchables::refresh ( )

Refreshes GUI elements.

Definition at line 63 of file Catchables.cpp.

◆ selected()

std::uint8_t editor::page::Catchables::selected ( ) const

Returns the currently selected catch type.

Definition at line 57 of file Catchables.cpp.

◆ setGUI()

void editor::page::Catchables::setGUI ( bl::gui::GUI *  gui)

Sets the parent GUI object.

Definition at line 53 of file Catchables.cpp.


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