IUndoable

The interface for undoable IRules.  Some IRules should be undoable by the user.  By implementing this interface, an IRule can declare that it has the possibility of being undone.  The CanUndo function then gives the actual undoableness of the IRule when queried.

Project

RulesCore

Include

IUndoable.h

Summary
The interface for undoable IRules.
Returns whether the IRule can be undone.
The IUndoable destructor.

Public

Summary
Returns whether the IRule can be undone.

Pure Virtual Functions

CanUndo

virtual bool CanUndo() const=0

Returns whether the IRule can be undone.

Returns

A bool that states if the IRule can be undone.  The value is true if it can be, false if not.

Protected

Summary
The IUndoable destructor.

Destructor

~IUndoable

virtual ~IUndoable()=0

The IUndoable destructor.  It is pure virtual because this class must be derived from in order to be used.

The interface for a single game rule.
virtual bool CanUndo() const=0
Returns whether the IRule can be undone.
virtual ~IUndoable()=0
The IUndoable destructor.
RulesCore is the HOSS of Cities3D.