命令模式
2018-03-29 20:56:26 31 举报
命令模式
作者其他创作
大纲/内容
ObjectReceiver
+ obj: GameObject
+ ObjectReceiver(GameObject)+ DoSomething()
Command
+ Execute()+ UnDo()
Invoker
+ list : List+ currentCommand: Command
+ Action(Command)+ Revoke()
JumpCommand
- receiver : Receiver
+ JumpCommand(Reveiver)+ Execute()+ UnDo()
Client
Receiver
+ DoSomething()
MoveCommand
+ MoveCommand(Reveiver)+ Execute()+ UnDo()
0 条评论
下一页