CommandPattern 1.0.0
This package contains a collection of classes and interfaces to allow for quick and consistent implementation of the command pattern across projects.
Public Member Functions | List of all members
SadSapphicGames.CommandPattern.NullCommand Class Reference

A Command that does nothing More...

Inheritance diagram for SadSapphicGames.CommandPattern.NullCommand:
SadSapphicGames.CommandPattern.Command SadSapphicGames.CommandPattern.IUndoable SadSapphicGames.CommandPattern.ICommand

Public Member Functions

override void Execute ()
 Does Nothing More...
 
ICommand GetUndoCommand ()
 Since the command doesn't do anything it returns itself More...
 
abstract void Execute ()
 Executes the command, do not invoke directly, instead use a CommandStream. More...
 
abstract void Execute ()
 Executes the function of the command More...
 
ICommand GetUndoCommand ()
 Creates a command to revert the changes of the implementing command More...
 

Detailed Description

A Command that does nothing

Member Function Documentation

◆ Execute()

override void SadSapphicGames.CommandPattern.NullCommand.Execute ( )
virtual

Does Nothing

Implements SadSapphicGames.CommandPattern.Command.

◆ GetUndoCommand()

ICommand SadSapphicGames.CommandPattern.NullCommand.GetUndoCommand ( )

Since the command doesn't do anything it returns itself

Returns
The same null command object

Implements SadSapphicGames.CommandPattern.IUndoable.


The documentation for this class was generated from the following file: