Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Types | Public Member Functions | Static Public Member Functions | List of all members
editor::component::EditMap::AppendLayerAction Class Reference

#include <MapActions.hpp>

Inherits editor::component::EditMap::Action.

Public Types

enum  Location { Bottom , YSort , Top }
 
using Ptr = std::shared_ptr< Action >
 

Public Member Functions

virtual ~AppendLayerAction ()=default
 
virtual bool apply (EditMap &map) override
 
virtual bool undo (EditMap &map) override
 
virtual const char * description () const override
 

Static Public Member Functions

static EditMap::Action::Ptr create (unsigned int level, Location location)
 

Detailed Description

Definition at line 261 of file MapActions.hpp.

Member Typedef Documentation

◆ Ptr

using editor::component::EditMap::Action::Ptr = std::shared_ptr<Action>
inherited

Definition at line 632 of file EditMap.hpp.

Member Enumeration Documentation

◆ Location

Enumerator
Bottom 
YSort 
Top 

Definition at line 263 of file MapActions.hpp.

Constructor & Destructor Documentation

◆ ~AppendLayerAction()

virtual editor::component::EditMap::AppendLayerAction::~AppendLayerAction ( )
virtualdefault

Member Function Documentation

◆ apply()

bool editor::component::EditMap::AppendLayerAction::apply ( EditMap map)
overridevirtual

Definition at line 691 of file MapActions.cpp.

◆ create()

EditMap::Action::Ptr editor::component::EditMap::AppendLayerAction::create ( unsigned int  level,
Location  location 
)
static

Definition at line 683 of file MapActions.cpp.

◆ description()

const char * editor::component::EditMap::AppendLayerAction::description ( ) const
overridevirtual

Definition at line 746 of file MapActions.cpp.

◆ undo()

bool editor::component::EditMap::AppendLayerAction::undo ( EditMap map)
overridevirtual

Definition at line 719 of file MapActions.cpp.


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