mirror of
https://github.com/crazybber/awesome-patterns.git
synced 2025-04-05 06:03:37 +03:00
command pattern
This commit is contained in:
parent
644fd81d3e
commit
af1573a1d9
1 changed files with 1 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
// 命令模式(command pattern)主要解耦了行为和接收者,使之可以任意组合为一个完整的命令,并在合适的时候被调用
|
||||
// 主要分为四个部分,command ,ConcreteCommand ,receiver ,invoker.
|
||||
// 分别对应以下GameCommand ,(CommandAttack|CommandEscape) ,GamePlayer ,Invoker.
|
||||
package main
|
||||
|
|
Loading…
Add table
Reference in a new issue