7 #ifndef CAFU_COMMAND_CHANGE_TERRAIN_RES_HPP_INCLUDED
8 #define CAFU_COMMAND_CHANGE_TERRAIN_RES_HPP_INCLUDED
10 #include "../../CommandPattern.hpp"
12 #include "Templates/Array.hpp"
41 const unsigned int m_NewResolution;
42 const unsigned int m_PrevResolution;
45 unsigned short BilinearInterpolation(
float x,
float y);
This class represents a CaWE "map" document.
Definition: MapDocument.hpp:45
The TerrainT class represents a terrain in a map.
Definition: MapTerrain.hpp:22
Definition: ChangeTerrainRes.hpp:19
bool Do()
This method executes the command.
Definition: ChangeTerrainRes.cpp:59
void Undo()
This method un-does the command.
Definition: ChangeTerrainRes.cpp:83
This class represents a general command for implementing modifications to the applications document...
Definition: CommandPattern.hpp:30
CommandChangeTerrainResT(MapDocumentT &MapDoc, MapTerrainT *Terrain, unsigned int NewResolution)
Constructor to change a terrain resolution.
Definition: ChangeTerrainRes.cpp:39
wxString GetName() const
Returns the name (a description) of the command.
Definition: ChangeTerrainRes.cpp:105