Open cxlove opened 8 years ago
Step 1: A simple remote control assemble single command
We build a Command Interface with a public method called execute(). And implement it by packaging the action and receiver.
And the controller can assemble the command object to call the execute method.
Step 2: Multiple remote control with multiple command
Step 3: add undo button, using a stack to record action have been executed
RT