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.
|
▼NSadSapphicGames | |
▼NCommandPattern | |
CAlreadyRunningException | This exception indicates an AsyncCommand was executed but its task had yet to complete. Only one CommandTask per instance can be running at a time. Handled by CommandStream. |
CAsyncCommand | The base class of all commands who's execute method involves asynchronous tasks |
CCommand | The base class of all commands |
CCommandStream | This is the object that stores commands to be invoked and executes them when told to by the client. It has no knowledge of the implementation of commands beyond their interfaces. |
CCompositeCommand | A Command that is composed of multiple child commands, all of which are executed together and leave one record in the CommandStream's history. <remark> For more information on this type of object seek external documentation on the composite design pattern </remark> |
CIAsyncCommand | This Interface of the AsyncCommand abstract class, It is strongly recommended you use the AsyncCommand class rather than implement this yourself unless you are very familiar with asynchronous programming |
CICommand | This is the Interface of the Command abstract class, unless you are defining your own base type for commands you should probably inherit from Command over this |
CIFailable | Interface implemented by commands that could fail to execute. Commands that would fail do not have their execute method invoked and are not recorded in the CommandStream's history |
CIrreversibleCompositeFailureException | An exception that indicates a CompositeCommand is executed but one of its children failed and the composite cannot undo its executed commands |
CIUndoable | Indicates a command can be undone |
CNullCommand | A Command that does nothing |
CNullCompositeCommand | Like the NullCommand this is a composite command that does nothing, multiple times. |
CReversibleCompositeFailureException | An exception that indicates a CompositeCommand is executed but one of its children failed, however the composite was able to undo the commands it had executed |
CSimpleComposite | A CompositeCommand created from a collection of Command's that cannot fail |
CSingletonCommandManager | A singleton manager for a single-stream, out of the box implementation of the Command pattern. Once you understand how the package works it is highly recommended create your own CommandStream wrapper tailored to the needs of your project. Executes the next command in the CommandStream every frame. |