fix inheritance of undo()/redo() in cTerrainAction
This commit is contained in:
@@ -41,10 +41,8 @@ public:
|
|||||||
cTerrainAction(std::string name, location out_sec, location where, bool reversed = false);
|
cTerrainAction(std::string name, location out_sec, location where, bool reversed = false);
|
||||||
// Construct cTerrainAction in the current town/outdoor section
|
// Construct cTerrainAction in the current town/outdoor section
|
||||||
cTerrainAction(std::string name, location where, bool reversed = false);
|
cTerrainAction(std::string name, location where, bool reversed = false);
|
||||||
void undo();
|
void undo() override;
|
||||||
void redo();
|
void redo() override;
|
||||||
bool undo_me() = 0;
|
|
||||||
bool redo_me() = 0;
|
|
||||||
private:
|
private:
|
||||||
/// Show where the change happened
|
/// Show where the change happened
|
||||||
void showChangeSite();
|
void showChangeSite();
|
||||||
|
|||||||
@@ -29,10 +29,10 @@ protected:
|
|||||||
public:
|
public:
|
||||||
/// Undoes this action if it has not already been undone.
|
/// Undoes this action if it has not already been undone.
|
||||||
/// If it has already been undone, does nothing.
|
/// If it has already been undone, does nothing.
|
||||||
void undo();
|
virtual void undo();
|
||||||
/// Redoes this action if it has been undone.
|
/// Redoes this action if it has been undone.
|
||||||
/// If it has not been undone, does nothing.
|
/// If it has not been undone, does nothing.
|
||||||
void redo();
|
virtual void redo();
|
||||||
/// Cchecks to see whether the action has been undone.
|
/// Cchecks to see whether the action has been undone.
|
||||||
/// @return false if it the action has been undone.
|
/// @return false if it the action has been undone.
|
||||||
bool isDone() {return done;};
|
bool isDone() {return done;};
|
||||||
|
|||||||
Reference in New Issue
Block a user