7 #ifndef CAFU_COMMAND_ADD_PRIMITIVE_HPP_INCLUDED
8 #define CAFU_COMMAND_ADD_PRIMITIVE_HPP_INCLUDED
10 #include "../../CommandPattern.hpp"
11 #include "Templates/Pointer.hpp"
14 namespace MapEditor {
class CompMapEntityT; }
This class represents a CaWE "map" document.
Definition: MapDocument.hpp:45
This class adds no functionality of its own, but only exists for proper type separation.
Definition: MapPrimitive.hpp:21
Definition: Select.hpp:18
CommandAddPrimT(MapDocumentT &MapDoc, MapPrimitiveT *AddPrim, IntrusivePtrT< MapEditor::CompMapEntityT > Parent, wxString Name="new primitive", bool SetSel=true)
The constructor for creating a command for adding a single primitive into the map.
Definition: AddPrim.cpp:17
bool Do()
This method executes the command.
Definition: AddPrim.cpp:53
This class represents a general command for implementing modifications to the applications document...
Definition: CommandPattern.hpp:30
wxString GetName() const
Returns the name (a description) of the command.
Definition: AddPrim.cpp:94
~CommandAddPrimT()
The destructor.
Definition: AddPrim.cpp:43
This is the base class for all elements ("objects") that can exist in a map.
Definition: MapElement.hpp:57
void Undo()
This method un-does the command.
Definition: AddPrim.cpp:74
This class implements a command for adding primitives into the map, as part of their specified parent...
Definition: AddPrim.hpp:23