PumpkinBrush
|
#include <Draw.hpp>
Public Member Functions | |
bool | execute () |
Execute the command to draw pixels. More... | |
bool | undo () |
Undo command to undo the pixel creation. More... | |
void | setOriginalColor () |
Get the original color of each pixel. More... | |
Draw (sf::Vector2f coordinate, App *app, int flag, std::string command) | |
Constructor of draw command. More... | |
![]() | |
Command (int cmdFlag, std::string m_commandDescriptionP) | |
virtual | ~Command () |
N/A. More... | |
std::string | getCommand () |
Additional Inherited Members | |
![]() | |
int | m_cmdFlag |
Draw::Draw | ( | sf::Vector2f | coordinate, |
App * | app, | ||
int | cmdFlag, | ||
std::string | command | ||
) |
Constructor of draw command.
|
virtual |
Execute the command to draw pixels.
Implements Command.
void Draw::setOriginalColor | ( | ) |
Get the original color of each pixel.
|
virtual |
Undo command to undo the pixel creation.
Implements Command.