Design Pattern Examples
Overview of object-oriented design patterns
null_object.py File Reference

Implementation of the MoveProcessor class and the MoveCommand base class, along with the various MoveXX classes used in the Null Object Pattern. More...

Go to the source code of this file.

Classes

class  MoveCommand
 Base class that represents a move command. More...
 
class  MoveCommandLeft
 Represents the Move Left command. More...
 
class  MoveCommandRight
 Represents the Move Right command. More...
 
class  MoveCommandUp
 Represents the Move Up command. More...
 
class  MoveCommandDown
 Represents the Move Down command. More...
 
class  MoveCommandNone
 Represents the Do Nothing command. More...
 
class  MoveProcessor
 Represents the processor that translates the move list into a list of MoveCommand objects then either displays them or executes them. More...
 

Namespaces

namespace  DesignPatternExamples_python
 The DesignPatternExamples_python package, containing 20 examples of design patterns, each in their own namespace.
 
namespace  DesignPatternExamples_python.nullobject
 
namespace  DesignPatternExamples_python.nullobject.null_object
 

Detailed Description

Implementation of the MoveProcessor class and the MoveCommand base class, along with the various MoveXX classes used in the Null Object Pattern.

Definition in file null_object.py.