7 #ifndef CAFU_COMMAND_MODIFY_TERRAIN_HPP_INCLUDED
8 #define CAFU_COMMAND_MODIFY_TERRAIN_HPP_INCLUDED
10 #include "../../CommandPattern.hpp"
44 const wxPoint m_Offset;
45 const unsigned int m_SizeX;
46 const unsigned int m_SizeY;
This class represents a CaWE "map" document.
Definition: MapDocument.hpp:45
bool Do()
This method executes the command.
Definition: ModifyTerrain.cpp:26
CommandModifyTerrainT(MapDocumentT &MapDoc, MapTerrainT *Terrain, const ArrayT< unsigned short > &NewHeightData, const wxPoint &Position, unsigned int SizeX, unsigned int SizeY)
Constructor to modify a terrain with given new height data.
Definition: ModifyTerrain.cpp:15
Definition: ModifyTerrain.hpp:17
The TerrainT class represents a terrain in a map.
Definition: MapTerrain.hpp:22
wxString GetName() const
Returns the name (a description) of the command.
Definition: ModifyTerrain.cpp:85
This class represents a general command for implementing modifications to the applications document...
Definition: CommandPattern.hpp:30
void Undo()
This method un-does the command.
Definition: ModifyTerrain.cpp:62